Lots of failed include_once errors

blender1968 - February 11, 2009 - 16:51
Project:Memcache API and Integration
Version:6.x-1.2
Component:Code
Category:support request
Priority:normal
Assigned:Unassigned
Status:active
Description

Hi All,

I'm getting lots of failed include_once errors. They are like:

include_once() [function.include]: Failed opening 'modules/block/block.admin.inc' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/includes/theme.inc on line 283.
Severity error

These are written to watchdog (dblog) and emailed to us which is very annoying.

Everything seems to work fine but these errors occur quite frequently.

Has anyone else seen this? I can't say with certainty that the memcache module is to blame but it does seems correlated with our deployment of it. What's worse is I don't know what triggers it and therefore cannot provide a reproducible test case.

Things that don't seem to be involved in producing the errors:

- version of PECL memcache. Have tried 3.0.3 and 2.2.4
- theme: see the errors with stock drupal/garland and zen

This is with Drupal 6.9

Any ideas or suggestions welcome.

Thanks!

Jason

#1

blender1968 - February 13, 2009 - 20:55
Title:Lots of failed include_once errors» Seems to have been the Memcache Admin Stats

I don't have any hard proof but it seems that disabling the "Show memcache statistics at the bottom of each page" has stopped the include_once errors from being thrown.

Cheers

#2

blender1968 - February 13, 2009 - 20:56
Title:Seems to have been the Memcache Admin Stats» Lots of failed include_once errors

#3

jaydub - April 30, 2009 - 18:44

this is likely due to the fact that the block admin page in d6 uses AHAH and since the 'show stats at bottom of page' uses javascript as well there seems to be a conflict there. Possibly related issue: #319697: file uploads file when memcache statistics are written to page footer - easy fix

#4

Estrangheros - May 10, 2009 - 18:46

Dear community,

I also receive very similar error messages:

warning: include_once() [function.include]: Failed opening '/' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php:/home/latincof/public_html/modules/activitystream/PEAR') in /mySite/includes/theme.inc on line 286.

arning: include_once(/) [function.include-once]: failed to open stream: Success in /mySite/includes/theme.inc on line 286.
in a massive amount repeated.

Ayway, I checked that line 286 in "theme.inc", and it shows: include_once($info['./.'] .'/'. $info['. /.']);

So I tried to include the path, but the error message still persists. The weird thing on it is, that since hat happens, my sidemenu totally disappeared! I can't even move to any page anymore - just only when going directly per link adjustment. I've readen some issues related to that, but there was no really solution available since now :-(! It would be great, someone who know well about it, could help me with that issue, please!

#5

budda - June 23, 2009 - 10:30

Yes, I've also seeing the same errors. Most common is:

Failed opening required './sites/all/modules/cck/theme/theme.inc'

The error only occurs for users who have permissions to see the memcache stats. As blender1968 says, things continue to work, but the watchdog log fills with these errors.

It only occurs on certain url calls too.

#6

tetsuo2501 - August 20, 2009 - 10:38

I confirm, that disabling the "Show memcache statistics at the bottom of each page" option in /admin/settings/memcache makes the error go away.

 
 

Drupal is a registered trademark of Dries Buytaert.