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
CommentFileSizeAuthor
#6 761312.patch5.19 KBmvc
#3 trace.module.diff1.79 KBluti

Comments

cangeceiro’s picture

I am also getting this error

boline’s picture

As am I

luti’s picture

StatusFileSize
new1.79 KB

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.

luti’s picture

Sorry, it doesn't help. Sometimes, the WSOD is still coming up. Sometimes it doesn't. Weird...

lionstone’s picture

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.

mvc’s picture

Title: Constans are not initialized » Constants are not initialized
Status: Active » Needs review
StatusFileSize
new5.19 KB

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.

doublejosh’s picture

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.

doublejosh’s picture

Status: Needs review » Needs work

Luckily this error does not effect the admin/build/modules page.