Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hi,
I have recently tried to update to 7.40 but I expect the following error:
( ! ) Fatal error: Cannot redeclare class QueryExtendableInterface in .../includes/includes/database/select.inc on line 20
Call Stack
# Time Memory Function Location
1 0.0002 232208 {main}( ) .../index.php:0
2 0.0013 255576 drupal_bootstrap( ) .../index.php:20
3 0.0200 623592 _drupal_bootstrap_full( ) .../bootstrap.inc:2266
4 0.0204 638552 require_once( '/home/www/ppes.mage.pl/includes/pager.inc' ) .../common.inc:5206
5 0.0204 639000 spl_autoload_call ( ) .../common.inc:15
6 0.0204 639072 drupal_autoload_class( ) .../common.inc:15
7 0.0204 639336 _registry_check_code( ) .../bootstrap.inc:3116
I have runned https://www.drupal.org/project/registry_rebuild as advices but it returns:
DRUPAL_ROOT is /home/www/ppes.mage.pl.
Bootstrapping to DRUPAL_BOOTSTRAP_SESSION
Bootstrap caches have been cleared in DRUPAL_BOOTSTRAP_SESSION
Doing registry_rebuild() in DRUPAL_BOOTSTRAP_SESSION
Bootstrapping to DRUPAL_BOOTSTRAP_FULL
( ! ) Fatal error: Cannot redeclare system_help() (previously declared in /home/www/ppes.mage.pl/modules/system/system.module:72) in /home/www/ppes.mage.pl/modules/modules/system/system.module on line 72
Call Stack
# Time Memory Function Location
1 0.0045 235696 {main}( ) .../registry_rebuild.php:0
2 0.8860 906368 registry_rebuild_rebuild( ) .../registry_rebuild.php:85
3 2.5044 2585352 drupal_bootstrap( ) .../registry_rebuild.php:156
4 2.5071 2617160 _drupal_bootstrap_full( ) .../bootstrap.inc:2266
5 2.5085 2674336 module_load_all( ) .../common.inc:5224
6 2.5466 3162688 drupal_load( ) .../module.inc:24
I have update all modules to newest versions to see if this is not incompatibility issue but it does not help.
This helps only one-time. Next page loads but any further click results in the same error.
Comments
Comment #2
Abdel5 CreditAttribution: Abdel5 commentedComment #3
cilefen CreditAttribution: cilefen commentedDoes this file exist?
/home/www/ppes.mage.pl/modules/modules/system/system.module
Comment #4
Abdel5 CreditAttribution: Abdel5 commentedYes it does.
In fact two such files exists:
/home/www/ppes.mage.pl/modules/modules/system/system.module
/home/www/ppes.mage.pl/modules/system/system.module
Do I correctly assume that this will be probably be the source of the problem?
Comment #5
cilefen CreditAttribution: cilefen commentedYes.
home/www/ppes.mage.pl/modules/modules is not part of Drupal core.
Comment #6
Abdel5 CreditAttribution: Abdel5 commentedI have recovered from backup file but expected the following error:
I have uploaded core drupal file again but the problem persisted.
Therefore I runed registry_rebuild.php (https://www.drupal.org/project/registry_rebuild) and now the site is working correctly.
Comment #7
Abdel5 CreditAttribution: Abdel5 commentedUnfortunately the site was working only for short moment and now it once again shows the error:
Not sure what is the problem yet.
Comment #8
Abdel5 CreditAttribution: Abdel5 commentedI have recover mysql file. Website is working correctly now. Still I have doubts what was going on and why drupal reported so strange error. I think this may be some kind of bug and thus I am changing issue status.
Comment #9
heykarthikwithuWhich version of drupal core are you using is it 7.4?
Comment #10
heykarthikwithuAre you sure about this file exist?
/home/www/ppes.mage.pl/modules/modules/system/system.module
Because
system.module
, is only one present in the drupal/modules/system/system.moduleyou are seeing two
system.module
files1.
/home/www/ppes.mage.pl/modules/modules/system/system.module
,2.
/home/www/ppes.mage.pl/modules/system/system.module
actually first one should not be as part of drupal core.
And about the error you got
"Fatal error: Class 'SelectQueryExtender' not found in /home/www/ppes.mage.pl/includes/pager.inc on line 15"
.SelectQueryExtender
is the base extender class for Select queries, which is running fine in my case.Comment #11
Abdel5 CreditAttribution: Abdel5 commented@heykarthikwithu:
Thanks for your help. I am running 7.40. Currently everything is working just fine for me. Nevertheless I thing that something is wrong, at least at error reporting level, as the errors displayed by Drupal when error occurred were quite confusing.
The issue does not refer to my original problem. Error
Fatal error: Cannot redeclare class QueryExtendableInterface
occurred due to the fact that I copied files incorrectly. This was for sure my fault.However, when I recovered my backup files, another error occurred as described in #6. It was:
I was temporarily able to eliminate this error by using registry_rebuild.php. However using this script was helping just for short moment. After few visits on page
Fatal error: Class 'SelectQueryExtender' not found
was displayed again.At the end I eliminated this by loading mysql database backup. Thus, I assume that the
Fatal error: Class 'SelectQueryExtender' not found
was somehow connected with my database being corrupted. However, this is not the error that I normally expect to see if something is wrong with database. At the same time I can't understand why registry_rebuild.php helped, but just for short moment.I do not feel in position to assume whether it is a bug or just something strange happened. Nevertheless the error displayed was definitely not pointing me out that there was a problem with database. Thus, I found it confusing. This leads me to conclusion that probably some check on consistency of database is missing which may lead to unexpected errors, as one described above.
Comment #12
heykarthikwithu