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

Abdel5 created an issue. See original summary.

Abdel5’s picture

Issue summary: View changes
cilefen’s picture

Does this file exist?

/home/www/ppes.mage.pl/modules/modules/system/system.module

Abdel5’s picture

Yes 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?

cilefen’s picture

Yes.

home/www/ppes.mage.pl/modules/modules is not part of Drupal core.

Abdel5’s picture

Status: Active » Closed (fixed)

I have recovered from backup file but expected the following error:

( ! ) Fatal error: Class 'SelectQueryExtender' not found in /home/www/ppes.mage.pl/includes/pager.inc on line 15
Call Stack
#	Time	Memory	Function	Location
1	0.0006	238032	{main}( )	.../index.php:0
2	0.0225	730744	drupal_bootstrap( )	.../index.php:20
3	0.1116	3827472	_drupal_bootstrap_full( )	.../bootstrap.inc:2262
4	0.1312	4502200	require_once( '/home/www/ppes.mage.pl/includes/pager.inc' )	.../common.inc:5196

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.

Abdel5’s picture

Status: Closed (fixed) » Active

Unfortunately the site was working only for short moment and now it once again shows the error:

( ! ) Fatal error: Class 'SelectQueryExtender' not found in /home/www/ppes.mage.pl/includes/pager.inc on line 15
Call Stack
#	Time	Memory	Function	Location
1	0.0006	235424	{main}( )	.../index.php:0
2	0.0276	732048	drupal_bootstrap( )	.../index.php:20
3	0.1188	3843248	_drupal_bootstrap_full( )	.../bootstrap.inc:2266
4	0.1384	4519120	require_once( '/home/www/ppes.mage.pl/includes/pager.inc' )	.../common.inc:5206

Not sure what is the problem yet.

Abdel5’s picture

Category: Support request » Bug report
Priority: Normal » Minor

I 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.

heykarthikwithu’s picture

Which version of drupal core are you using is it 7.4?

heykarthikwithu’s picture

Status: Active » Postponed (maintainer needs more info)

Are 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.module

you are seeing two system.module files
1. /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.

Abdel5’s picture

@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:

( ! ) Fatal error: Class 'SelectQueryExtender' not found in /home/www/ppes.mage.pl/includes/pager.inc on line 15
Call Stack
#	Time	Memory	Function	Location
1	0.0006	238032	{main}( )	.../index.php:0
2	0.0225	730744	drupal_bootstrap( )	.../index.php:20
3	0.1116	3827472	_drupal_bootstrap_full( )	.../bootstrap.inc:2262
4	0.1312	4502200	require_once( '/home/www/ppes.mage.pl/includes/pager.inc' )	.../common.inc:5196

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.

heykarthikwithu’s picture

Status: Postponed (maintainer needs more info) » Closed (won't fix)