I'm building a small portfolio site for someone. It's in a multisite environment and uses a contrib theme that's been modified somewhat.

At some point during development (not sure after what change) the site began throwing off the below errors, below the site's footer. The site appears to operate fine despite the error.

They also appear within /admin when using Garland as the admin theme, but NOT within /admin when using RootCandy as the admin theme. Weird. RootCandy is in the same sites/domain/themes/ directory as the frontend theme (aBeesParadise_1024).

I don't see these errors on the other [multi]sites who share the same D6.14 core.

The allegedly missing core files are all present and in the right place. AFAIK my VPS host hasn't changed any PHP settings. Again, the other [multi]sites don't throw this error.

Apache logs show some requests that looks fishy to me. E.g. Line 2417: [my ipaddress was here] - - [21/Jan/2010:14:25:13 -0600] "GET /modules/system/system.css?9 HTTP/1.1" 200 10020 "http://www.domain.com/user/function.require-once" "Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.1.7) Gecko/20091221 Firefox/3.5.7 (.NET CLR 3.5.30729)"

I've been digging for hints of a solution for several hours now.

Thanks to any and all who can offer help, before I torch the thing and start with a clean database + theme.

- - - -

Warning: include_once(modules/block/block.admin.inc) [function.include-once]: failed to open stream: No such file or directory in /home/accountname/public_html/includes/theme.inc on line 283

Warning: include_once() [function.include]: Failed opening 'modules/block/block.admin.inc' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/accountname/public_html/includes/theme.inc on line 283

Warning: include_once(modules/filter/filter.admin.inc) [function.include-once]: failed to open stream: No such file or directory in /home/accountname/public_html/includes/theme.inc on line 283

Warning: include_once() [function.include]: Failed opening 'modules/filter/filter.admin.inc' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/accountname/public_html/includes/theme.inc on line 283

Warning: include_once(modules/filter/filter.admin.inc) [function.include-once]: failed to open stream: No such file or directory in /home/accountname/public_html/includes/theme.inc on line 283

Warning: include_once() [function.include]: Failed opening 'modules/filter/filter.admin.inc' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/accountname/public_html/includes/theme.inc on line 283

Warning: include_once(modules/filter/filter.pages.inc) [function.include-once]: failed to open stream: No such file or directory in /home/accountname/public_html/includes/theme.inc on line 283

Warning: include_once() [function.include]: Failed opening 'modules/filter/filter.pages.inc' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/accountname/public_html/includes/theme.inc on line 283

Warning: include_once(modules/menu/menu.admin.inc) [function.include-once]: failed to open stream: No such file or directory in /home/accountname/public_html/includes/theme.inc on line 283

Warning: include_once() [function.include]: Failed opening 'modules/menu/menu.admin.inc' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/accountname/public_html/includes/theme.inc on line 283

Warning: include_once(modules/node/node.admin.inc) [function.include-once]: failed to open stream: No such file or directory in /home/accountname/public_html/includes/theme.inc on line 283

Warning: include_once() [function.include]: Failed opening 'modules/node/node.admin.inc' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/accountname/public_html/includes/theme.inc on line 283

Warning: include_once(modules/node/node.admin.inc) [function.include-once]: failed to open stream: No such file or directory in /home/accountname/public_html/includes/theme.inc on line 283

Warning: include_once() [function.include]: Failed opening 'modules/node/node.admin.inc' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/accountname/public_html/includes/theme.inc on line 283

Warning: include_once(modules/node/node.admin.inc) [function.include-once]: failed to open stream: No such file or directory in /home/accountname/public_html/includes/theme.inc on line 283

Warning: include_once() [function.include]: Failed opening 'modules/node/node.admin.inc' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/accountname/public_html/includes/theme.inc on line 283

Warning: include_once(modules/node/node.pages.inc) [function.include-once]: failed to open stream: No such file or directory in /home/accountname/public_html/includes/theme.inc on line 283

Warning: include_once() [function.include]: Failed opening 'modules/node/node.pages.inc' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/accountname/public_html/includes/theme.inc on line 283

Warning: include_once(modules/node/node.pages.inc) [function.include-once]: failed to open stream: No such file or directory in /home/accountname/public_html/includes/theme.inc on line 283

Warning: include_once() [function.include]: Failed opening 'modules/node/node.pages.inc' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/accountname/public_html/includes/theme.inc on line 283

Warning: include_once(modules/node/node.pages.inc) [function.include-once]: failed to open stream: No such file or directory in /home/accountname/public_html/includes/theme.inc on line 283

Warning: include_once() [function.include]: Failed opening 'modules/node/node.pages.inc' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/accountname/public_html/includes/theme.inc on line 283

Warning: include_once(modules/search/search.pages.inc) [function.include-once]: failed to open stream: No such file or directory in /home/accountname/public_html/includes/theme.inc on line 283

Warning: include_once() [function.include]: Failed opening 'modules/search/search.pages.inc' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/accountname/public_html/includes/theme.inc on line 283

Warning: include_once(modules/search/search.pages.inc) [function.include-once]: failed to open stream: No such file or directory in /home/accountname/public_html/includes/theme.inc on line 283

Warning: include_once() [function.include]: Failed opening 'modules/search/search.pages.inc' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/accountname/public_html/includes/theme.inc on line 283

Warning: include_once(modules/system/system.admin.inc) [function.include-once]: failed to open stream: No such file or directory in /home/accountname/public_html/includes/theme.inc on line 283

Warning: include_once() [function.include]: Failed opening 'modules/system/system.admin.inc' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/accountname/public_html/includes/theme.inc on line 283

Warning: include_once(modules/system/system.admin.inc) [function.include-once]: failed to open stream: No such file or directory in /home/accountname/public_html/includes/theme.inc on line 283

Warning: include_once() [function.include]: Failed opening 'modules/system/system.admin.inc' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/accountname/public_html/includes/theme.inc on line 283

Warning: include_once(modules/system/system.admin.inc) [function.include-once]: failed to open stream: No such file or directory in /home/accountname/public_html/includes/theme.inc on line 283

Warning: include_once() [function.include]: Failed opening 'modules/system/system.admin.inc' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/accountname/public_html/includes/theme.inc on line 283

Warning: include_once(modules/system/system.admin.inc) [function.include-once]: failed to open stream: No such file or directory in /home/accountname/public_html/includes/theme.inc on line 283

Warning: include_once() [function.include]: Failed opening 'modules/system/system.admin.inc' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/accountname/public_html/includes/theme.inc on line 283

Warning: include_once(modules/system/system.admin.inc) [function.include-once]: failed to open stream: No such file or directory in /home/accountname/public_html/includes/theme.inc on line 283

Warning: include_once() [function.include]: Failed opening 'modules/system/system.admin.inc' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/accountname/public_html/includes/theme.inc on line 283

Warning: include_once(modules/system/system.admin.inc) [function.include-once]: failed to open stream: No such file or directory in /home/accountname/public_html/includes/theme.inc on line 283

Warning: include_once() [function.include]: Failed opening 'modules/system/system.admin.inc' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/accountname/public_html/includes/theme.inc on line 283

Warning: include_once(modules/system/system.admin.inc) [function.include-once]: failed to open stream: No such file or directory in /home/accountname/public_html/includes/theme.inc on line 283

Warning: include_once() [function.include]: Failed opening 'modules/system/system.admin.inc' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/accountname/public_html/includes/theme.inc on line 283

Warning: include_once(modules/system/system.admin.inc) [function.include-once]: failed to open stream: No such file or directory in /home/accountname/public_html/includes/theme.inc on line 283

Warning: include_once() [function.include]: Failed opening 'modules/system/system.admin.inc' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/accountname/public_html/includes/theme.inc on line 283

Warning: include_once(modules/system/system.admin.inc) [function.include-once]: failed to open stream: No such file or directory in /home/accountname/public_html/includes/theme.inc on line 283

Warning: include_once() [function.include]: Failed opening 'modules/system/system.admin.inc' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/accountname/public_html/includes/theme.inc on line 283

Warning: include_once(modules/user/user.pages.inc) [function.include-once]: failed to open stream: No such file or directory in /home/accountname/public_html/includes/theme.inc on line 283

Warning: include_once() [function.include]: Failed opening 'modules/user/user.pages.inc' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/accountname/public_html/includes/theme.inc on line 283

Warning: include_once(modules/user/user.pages.inc) [function.include-once]: failed to open stream: No such file or directory in /home/accountname/public_html/includes/theme.inc on line 283

Warning: include_once() [function.include]: Failed opening 'modules/user/user.pages.inc' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/accountname/public_html/includes/theme.inc on line 283

Warning: include_once(modules/user/user.pages.inc) [function.include-once]: failed to open stream: No such file or directory in /home/accountname/public_html/includes/theme.inc on line 283

Warning: include_once() [function.include]: Failed opening 'modules/user/user.pages.inc' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/accountname/public_html/includes/theme.inc on line 283

Warning: include_once(modules/user/user.admin.inc) [function.include-once]: failed to open stream: No such file or directory in /home/accountname/public_html/includes/theme.inc on line 283

Warning: include_once() [function.include]: Failed opening 'modules/user/user.admin.inc' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/accountname/public_html/includes/theme.inc on line 283

Warning: include_once(modules/user/user.admin.inc) [function.include-once]: failed to open stream: No such file or directory in /home/accountname/public_html/includes/theme.inc on line 283

Warning: include_once() [function.include]: Failed opening 'modules/user/user.admin.inc' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/accountname/public_html/includes/theme.inc on line 283

Warning: include_once(modules/user/user.admin.inc) [function.include-once]: failed to open stream: No such file or directory in /home/accountname/public_html/includes/theme.inc on line 283

Warning: include_once() [function.include]: Failed opening 'modules/user/user.admin.inc' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/accountname/public_html/includes/theme.inc on line 283

Warning: include_once(modules/user/user.admin.inc) [function.include-once]: failed to open stream: No such file or directory in /home/accountname/public_html/includes/theme.inc on line 283

Warning: include_once() [function.include]: Failed opening 'modules/user/user.admin.inc' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/accountname/public_html/includes/theme.inc on line 283

Warning: include_once(modules/user/user.admin.inc) [function.include-once]: failed to open stream: No such file or directory in /home/accountname/public_html/includes/theme.inc on line 283

Warning: include_once() [function.include]: Failed opening 'modules/user/user.admin.inc' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/accountname/public_html/includes/theme.inc on line 283

Warning: require_once(./sites/all/modules/cck/theme/theme.inc) [function.require-once]: failed to open stream: No such file or directory in /home/accountname/public_html/sites/all/modules/cck/content.module on line 177

Fatal error: require_once() [function.require]: Failed opening required './sites/all/modules/cck/theme/theme.inc' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/accountname/public_html/sites/all/modules/cck/content.module on line 177

Comments

maratonia’s picture

I had a similar problem to yours and it did not have anything to do with the files.

The problem was solved when I increased the memory for Drupal. Depending on your hosting provider, you can do this through the control panel, php.ini or httaccess file.

Check how much you have and if not enough, assign a minimum 96M, but you may need more if you are talking about multi site.

Hope this helps.

andrewbenkard’s picture

First, thank you.

I was already at 96M and pushed it to 120M. The error remained.

FWIW This multisite shares space on a VPS with some other relatively low-traffic sites of mine.

andrewbenkard’s picture

The text of that offending error message somehow crept into the Footer field in Site Information. Crikey. Deleted it, and now the "error" is gone.

Breathe deeply. Do not slit wrists.

I think I'll take a nice peaceful walk with the dog now.

dambrisco’s picture

If there's anything I've learned from using Drupal in the past 8 months or so, it's that taking a few hours off when you hit a roadblock can really be a health-, relationship-, and life-saver.

andrewbenkard’s picture

There are many approaches to troubleshooting, and it's too easy to get locked into one or two. Bang bang bang with the hammer.

Wait a while, and you're in a different frame of mind.

GenerationA’s picture

I'm having the same issue.

Tried bumping memory in .htaccess: no success.
Checked fields in site info/; hasn't been added anywhere.

I've only noticed this happening when I have Theme Developer running, and even then only on some pages:

Below are some tallies for how often it happens

Create content: 2
My Account: 8
Admin: 26

andrewbenkard’s picture

Grab bag of thoughts, though I am not familiar with this error.

Run cron and check status report (you've prob done that)
run update.php
what modules failed to open? consider disabling and then reinstalling them.
check apache error log for hints.

mmatsoo’s picture

I had a similar problem that was being caused by the Theme Developer module. Uninstalling the module got rid of the error. Of course, if you depend on that module for your work, then this doesn't really help.

To really solve it, you'd need to get your include_path variable for php in order because the system is looking for files to include and it can't find them. Changing the include_path tells the system, "if you can't find the files from here, also look for them here and here...". A quick and dirty way is to add an ini_set statement to Drupal's index.php file where all the inaccessible file paths are added.

For example, the error above can't find files in module subfolders for block, filter, system, menu etc. The include_path would need to include these so for block and filter

Windows would be something like
ini_set('include_path', '.;c:\path\to_your\drupal_folder\modules\block;c:\path\to_your\drupal_folder\modules\filter');

*NIX something like "/path1:/path2"
ini_set('include_path', '.:/path/to_your/drupal_folder/modules/block:/path/to_your/drupal_folder/modules/filter');

Again, it's not really solving the problem but this should get rid of reams of error messages in your development environment.

yan’s picture

I had the same problem and solved it setting ini_set('include_path', '.'); in settings.php.

margaux’s picture

I was having this problem too (Drupal 7), and was also able to fix it by adding to settings.php:
ini_set('include_path', '.');

Thanks yan!

jwgreen1974’s picture

Sorry for resurrecting this old thread, but I was having this issue awhile ago while migrating a site to another hosted server, and found that safe_mode was on, and the permissions weren't correctly set up for that. So you might want to check that in php.ini.

familymangreg’s picture

I had the same problem, turns out I had named my theme with the same name as a module I was developing, which in Drupal 7 is a no no.

Renaming the theme sorted the issue.

:wq

dipesh989’s picture

I have moved my drupal website from one server to another i have set up all file..but then this Error comes

Fatal error: require_once(): Failed opening required '/home/ambee/public_html/mywebsite/sites/all/modules/commerce_discount/includes/commerce_discount.controller.inc' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/ambee/public_html/mywebsite/includes/bootstrap.inc on line 3139

Can any one tell me what is the problem???

jaypan’s picture

re-upload the commerce_discount module overtop the existing version (at /home/ambee/public_html/mywebsite/sites/all/modules/commerce_discount).

Contact me to contract me for D7 -> D10/11 migrations.