Closed (fixed)
Project:
Drupal SEO Friend (Tools & Reports)
Version:
6.x-1.x-dev
Component:
Code
Priority:
Minor
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
16 Apr 2012 at 14:41 UTC
Updated:
11 Jan 2026 at 23:50 UTC
Jump to comment: Most recent
Comments
Comment #1
kristen polI just committed a change to check if the value was empty before trimming. It will be in the next dev release when that is packaged by drupal.org... check the timestamp.
Thanks,
Kristen
Comment #3
simone.girlanda commentedstill having error even if dev version installed
warning: trim() expects parameter 1 to be string, array given in /var/www-drupal-6.26/sites/all/modules/seo_friend/seo_friend.module on line 494.
Comment #4
simone.girlanda commentedProblem still presente.
changed status from closed to active (is this correct ?)
Comment #5
kristen polIf you know how to edit the file (which it looks like you do based on our comment), try putting in:
echo "The variable value is: " . $tag_value;
echo "The variable type is: " . gettype($tag_value);
Before the line in question. If it's not a string and not null, I have no idea *what* it is :)
Comment #6
miccelito commentedAny solution yet? I get the same error messages.
I suppose the line 493:
if (! empty($tag_value)) {should be changed, but I have poor php knowledges..
if (! empty($tag_value) && is_string($tag_value)) {would be totally wrong?
Comment #7
kristen polI have updated 6.x-1.x-dev so you can try that and see if it fixes. I have noticed that nodewords has changed a lot again... sigh... so I'm not getting nodewords duplicates showing up with the latest nodewords...
Comment #8
kristen polComment #9
kristen polComment #10
miccelito commentedI did try again after your fix. Those error messages are gone :)
Comment #12
kristen polcleaning up my issues list