I've migrated the Drupal CMS from a test directory (and updated the settings.php), one level up to htdocs root. Since then I have these notices reported in my php_error_log, but no such notices in Watchdog:

[19-Jun-2005 11:33:22] PHP Notice:  Undefined index:  messages in /www/htdocs/includes/bootstrap.inc on line 624
[19-Jun-2005 11:33:22] PHP Notice:  Undefined index:  module in /www/htdocs/includes/bootstrap.inc on line 335
[19-Jun-2005 11:33:22] PHP Notice:  Undefined index:  module in /www/htdocs/includes/bootstrap.inc on line 86
[19-Jun-2005 11:33:22] PHP Notice:  Undefined index:  filter in /www/htdocs/includes/bootstrap.inc on line 93
[19-Jun-2005 11:33:22] PHP Notice:  Undefined index:  system in /www/htdocs/includes/bootstrap.inc on line 335
[19-Jun-2005 11:33:22] PHP Notice:  Undefined index:  system in /www/htdocs/includes/bootstrap.inc on line 93
[19-Jun-2005 11:33:22] PHP Notice:  Undefined index:  user in /www/htdocs/includes/bootstrap.inc on line 335
[19-Jun-2005 11:33:22] PHP Notice:  Undefined index:  user in /www/htdocs/includes/bootstrap.inc on line 93
[19-Jun-2005 11:33:22] PHP Notice:  Undefined index:  watchdog in /www/htdocs/includes/bootstrap.inc on line 335
[19-Jun-2005 11:33:22] PHP Notice:  Undefined index:  watchdog in /www/htdocs/includes/bootstrap.inc on line 93

The notices seem to appear for lines 86, 93, 335 and 624 of bootstrap.inc only. It also appears that the group of notices in the above snippet are the only kind of notices I am getting.

Otherwise, my site works normally.

Comments

Bèr Kessels’s picture

Category: bug » support

please searh before posting. This problem, and solutions for it can be found here: http://drupal.org/node/14662. lpease close this issue, if that is what you were lookinf for.

CoR-1’s picture

Ah, I've searched and have seen that post, but did not find any relevant suggestions for my problem.

Still, I've found the problem: the caching. I've turned it off and now I don't have the notices, but I don't think that "solves" the problem... I'll see with my hosting provider which version of PHP (4.3.1 I think) and optimizer they got.

Bèr Kessels’s picture

what about clearing the cache? Most probably the "error reports" where cached too, not?

CoR-1’s picture

No, clearing the cache did not solve it. And the error reports showed up only in php_error_log - nothing it Watchdog.

CoR-1’s picture

Ok, I just got a word from my hosting provider. We have PHP 4.3.10 and Zend optimizer 2.5.7. But that was installed before I installed Drupal. Still, the problems I am having are not the ones mentioned in the article you suggested (serialize).

But, could I be doing something wrong? Note that I don't have cron support, and all I did was enabling the cache in Settings panel.

hruodland’s picture

Any further development with this? I have pretty much the same issue with Drupal 4.6.4 and php 4.4.1, except the messages relate to a broader selection of lines in bootstrap.inc. So far as I can tell the error messages only relate to cached pages and whatever causes them doesn't affect function, so I'm not inclined to turn off caching.

Comments?

jmrukkers’s picture

This notice is pretty harmless, since the code is still preforming as intended (as far as I can tell). Some additional variable existence checking in the bootstrap.inc could get probably around this. The quick fix is to set error_reporting = E_ALL & ~E_NOTICE in your php.ini file, which will stop the logging of the notices in your error log.

dlr’s picture

I'm not sure the best way to solve a problem is to hide it.... Errors and messages may slow down servers .

I found a problem with caching and statistic module. This one perform a 'timer_read' which causes an "undefined index time" notice but i don't understand why.

Hope it helps.
Regards

kiev1.org’s picture

Version: 4.6.1 » 4.7.0

It is necessary to replace function
http: // api.drupal.org/api/4.7/function/timer_read
on
http: // api.drupal.org/api/HEAD/function/timer_read