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)
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

nicholasThompson - November 4, 2008 - 23:21

Will investigate... Likely a PHP E_ALL error... Thanks!

#2

nicholasThompson - November 5, 2008 - 13:41
Status:active» postponed (maintainer needs more info)

When does this appear?

#3

nicholasThompson - November 5, 2008 - 13:46

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

Flying Drupalist - November 5, 2008 - 15:11

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

nicholasThompson - November 6, 2008 - 13:54

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

Flying Drupalist - November 7, 2008 - 00:22

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

nicholasThompson - November 7, 2008 - 22:54
Title:Some error» Undefined variable on line 409

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

Flying Drupalist - November 9, 2008 - 15:19

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

nicholasThompson - December 16, 2008 - 06:15
Version:6.x-1.2» 6.x-1.4

Is this error still present in 6.x-1.4?

 
 

Drupal is a registered trademark of Dries Buytaert.