I am running Drupal Version 6.15 packaged in a pressflow installation with CCK 6.x-2.6. I am getting an error message inside all backend editors. For example if you select Administer>>Site Information you will see the following error message in both the Mission and Footer Message Box. I am trying to find out what is causing this error and would greatly appreciate any help as I am new to Drupal. I have attached an image as well.

Thank You Chules

Below is the error message
Fatal error: require_once() [function.require]: Failed opening required './sites/all/modules/cck/theme/theme.inc' (include_path='.:/usr/share/php:/usr/share/pear') in /var/www/pressflow/sites/all/modules/cck/content.module on line 177

Error.jpg75.11 KBchules


Equinger’s picture


joestewart’s picture


erikwebb’s picture

Issue tags:+pressflow

Do you have the Path Alias Cache module enabled? I was having the same problem, but disabling it seems to have resolved the issue temporarily.

I'll try and take a look at the underlying issue next week when I have some more free time.


vega’s picture

I am having a similar issue. Cron also seems to never finish, in between each reset of cron, I have this error in my dblog
require_once(./sites/all/modules/cck/theme/theme.inc) [function.require-once]: failed to open stream: No such file or directory in ...snip.../sites/all/modules/cck/content.module on line 177.

vega’s picture

I figured out what I had done - so this is for those of you who may have this happen.

What I had done, is I made a form that auto submitted on load. I think it was this in combination with boost (with pre-caching enabled) that caused - on cron - to fetch this page with this auto-submitting form. Then (I'm guessing here), the form would trigger the loading of the theme.inc file. I guess this was from the wrong directory, as the above comments suggest. I didn't investigate further to find out. What I did to fix it was: I made the form not auto submit in a way that the boost-crawler would ask for it. Then, the problem went away.

Hope this helps someone!

royerd’s picture

I have the same problem as you indicate in #4 but no such form as you do so I can't try your fix. Does anyone have any other ideas? I can't get my cron to complete because of this error. require_once(./sites/all/modules/cck/theme/theme.inc)  etc.