Lots of failed include_once errors
| Project: | Memcache API and Integration |
| Version: | 6.x-1.2 |
| Component: | Code |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
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
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
#3
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
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
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
I confirm, that disabling the "Show memcache statistics at the bottom of each page" option in /admin/settings/memcache makes the error go away.