Posted by Sam Dark on November 25, 2009 at 2:46pm
7 followers
| Project: | Trace |
| Version: | 6.x-1.0 |
| Component: | Code |
| Category: | bug report |
| Priority: | critical |
| Assigned: | Unassigned |
| Status: | needs work |
Issue Summary
Getting this just after enabling trace and going to /admin/.
Fatal error: require_once() [function.require]: Failed opening required 'TRACE_PATH/drivers/TRACE_OUTPUT.inc' (include_path='.;w:/usr/local/php5/PEAR') in W:\home\guideviews\www\sites\all\modules\trace\trace.module on line 238
Comments
#1
I am also getting this error
#2
As am I
#3
This seems to be related to #732064: "Call to undefined function lock_acquire", locale module.
According to post #5, there seems to be a problem that locale module is loaded before lock.inc.
So, I've added a line to call DRUPAL_BOOTSTRAP_LATE_PAGE_CACHE before DRUPAL_BOOTSTRAP_FULL, as in the patch attached. It seems to work well for me (there are some other minor / cosmetic changes to satisfy Coder, only the 1st addition is related to thsi issue...).
Hope it helps.
#4
Sorry, it doesn't help. Sometimes, the WSOD is still coming up. Sometimes it doesn't. Weird...
#5
I can confirm the same issue. Occasional WSODs on admin/ pages with no apparent explanation. The log error I get is
PHP Fatal error: require_once() [<a href='function.require'>function.require</a>]: Failed opening required 'TRACE_PATH/drivers/TRACE_OUTPUT.inc' (include_path='.:/opt/php/pear') in [detail-removed]/sites/all/modules/trace/trace.module on line 237, referer: [detail-removed]Error goes away when trace is disabled. I have trace logging to a file output and it seems to work fine, except for this bug. Might try applying some patches unless anyone else has a better idea.
#6
I'm using trace.module with APC and boost. I got the above message as Sam Dark and lionstone on all pages after enabling trace and clearing the cache. LUTi's patch in #3 above doesn't seem to help. The problem was clearly that constants weren't getting defined before trace_trace() was called. I don't really understand how this could happen but as a workaround I put them into a separate file, trace.defines.inc, which is included via require_once() both at the same point as the constants were previously defined, and within trace_trace(). Traces now work for me, and I believe my change will not break any sites. If anyone continues to have problems, I suggest changing require_once() to require() at lines 18 and 211.
Note: I did not use the constant TRACE_PATH in my patch because that constant was also missing.
In my opinion this is unrelated to #732064: "Call to undefined function lock_acquire", locale module although I also had to apply patch #92 from that issue to get traces working. This patch also includes some unrelated syntax cleanups from LUTi.
#7
I've got this error and actually can't even disable the module via drush because the error blocks me :(
Can visit normal page though. Sure I can find a away around it even though it might be the DB.
#8
Luckily this error does not effect the admin/build/modules page.