On clean install and applying theme from 2.x-dev or git, after flushing cache:

Fatal error: include_once() [<a href='function.include-once'>function.include-once</a>]: Cannot redeclare class insertquery_mysql in /home/dx_/bootstrap.dx.rs/themes/engines/phptemplate/phptemplate.engine on line 14

and site wrecks.

Any clue?

Comments

Docc’s picture

Status: Active » Closed (fixed)

Closing

mlheisterman’s picture

I'm getting a closely related error on 2.x-dev. The site stays up for about an hour but then crashes with this error:

[Sat Feb 25 13:50:40 2012] [error] [client 24.001.001.14] PHP Fatal error:  require_once(): Cannot redeclare class insertquery_mysql in /[server root to drupal]/includes/database/database.inc on line 1741
[Sat Feb 25 13:50:40 2012] [error] [client 24.001.001.14] PHP Fatal error:  Class 'MergeQuery_mysql' not found in /[server root to drupal]/includes/database/database.inc on line 826
[Sat Feb 25 13:50:40 2012] [notice] child pid 10719 exit signal Segmentation fault (11)

Any thoughts? Anyone else seeing this? I'll try to track down what is causing this on my end.

Thanks for your great work on this!

al.ex’s picture

Status: Closed (fixed) » Active

I'm having the same issue

Fatal error: include_once(): Cannot redeclare class insertquery_mysql in ../themes/engines/phptemplate/phptemplate.engine on line 14

with the latest 7.x-2.x-dev version of twitter bootstrap. However, I'm only getting this error when I deployed to Pantheon. Might be related to some APC setting there which I can't debug.

greggles’s picture

@al.ex - if you disable twitter's bootstrap does the error go away? My guess is that this is not related to just Twitter's bootstrap (I'm seeing the issue on a site without that) and so we should move it to Core.

dealancer’s picture

natted’s picture

Status: Active » Closed (cannot reproduce)

@dealancer - Not sure why you posted a blank comment?

I haven't seen this issue - there have been patches since the last bug report.

Closing issue. Feel free to reopen if you can provide more information.

dman’s picture

FYI, cross-linking for searcher : #838744: Opcode (APC) and drupal autoloader

andregriffin’s picture

Project: Twitter's Bootstrap » Bootstrap