Undefined variable on line 409
Flying Drupalist - November 4, 2008 - 21:24
| Project: | Relevant Content |
| Version: | 6.x-1.4 |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | postponed (maintainer needs more info) |
Jump to:
Description
Notice: Undefined variable: nodes in /home2/public_html/sites/all/modules/relevant_content/relevant_content.module on line 368
Notice: Undefined variable: header in /home2/public_html/sites/all/modules/relevant_content/relevant_content.module on line 368

#1
Will investigate... Likely a PHP E_ALL error... Thanks!
#2
When does this appear?
#3
Ah - you might need to remove and re-add the block due to array configuration changes which aren't handled by any update hooks (my mistake for not adding any, but I dont have any data to play with... Will have to do this in 1.3...)
#4
Hi, sorry I can't tell you where I'm getting this exactly. I've seen it on a number of pages, nodes, admin, and sometimes I dont' see it. I only see the error after turning on
php_flag display_errors on
php_value error_reporting 2047
and not otherwise. But I'm glad to hear that you've identified the problem. I hope the fix comes out soon.
#5
I cannot replicate this on my system. Its possible there is an issue with the upgrade path being broken...
You probably need to just delete the block and add it back again.
#6
Hi, deleting the block and adding it again doesn't help. I updated the module and the error is now this:
Notice: Undefined variable: nodes in /home2/public_html/sites/all/modules/relevant_content/relevant_content.module on line 409
Notice: Undefined variable: header in /home2/public_html/sites/all/modules/relevant_content/relevant_content.module on line 409
I don't see the error unless I WSOD for unrelated reasons, then the error is part of my logs, otherwise the error isn't visible. I'm not overly bothered by this but I just thought that you should know.
#7
Humm... This is very odd! I cannot replicate this....
Could you give me a little more info about your server setup please - maybe this hold a key... Any other relevant modules (no pun intended!)?
#8
Hi, thanks for your help. I'm using:
I'm using:
Apache 1.3.41 Linux
PHP 5.2.6
MySQLi 4.1.22
Drupal 6.6
Not sure what other relevant modules I have. I used to have similar by terms but I had deleted that in preference for this one.
#9
Is this error still present in 6.x-1.4?