Needs work
Project:
Trace
Version:
6.x-1.0
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
25 Nov 2009 at 14:46 UTC
Updated:
7 Jul 2011 at 18:23 UTC
Jump to comment: Most recent file
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
| Comment | File | Size | Author |
|---|---|---|---|
| #6 | 761312.patch | 5.19 KB | mvc |
| #3 | trace.module.diff | 1.79 KB | luti |
Comments
Comment #1
cangeceiro commentedI am also getting this error
Comment #2
boline commentedAs am I
Comment #3
luti commentedThis 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.
Comment #4
luti commentedSorry, it doesn't help. Sometimes, the WSOD is still coming up. Sometimes it doesn't. Weird...
Comment #5
lionstone commentedI can confirm the same issue. Occasional WSODs on admin/ pages with no apparent explanation. The log error I get is
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.
Comment #6
mvcI'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.
Comment #7
doublejosh commentedI'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.
Comment #8
doublejosh commentedLuckily this error does not effect the admin/build/modules page.