update.php reports an error even if there are no updates

alexandreracine - July 3, 2009 - 22:35
Project:XML sitemap
Version:6.x-1.0-rc1
Component:xmlsitemap.module
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed
Description

While playing around with xmlsitemap-6.x-1-rc1, I got this strange error.

-Uninstall everything
-Just to test that your drupal is okay and that xmlsitemap is really uninstalled, go to your update.php file and update the site. You should have 0 of 0 query and everything should be fine.
-Reinstall the module
-Activate only the "XML sitemap" module for this test
-Go to your update.php file again.
-There should be no visible update, so hit "Update" anyway.
-I have this error : "user warning: Table 'joejoe_smv6.xmlsitemap' doesn't exist query: SELECT COUNT(xsm.loc) FROM xmlsitemap xsm INNER JOIN system s ON s.name = xsm.module WHERE s.type = 'module' AND s.status = 1 AND xsm.changefreq <> 0 AND xsm.changed <> 0 AND (xsm.priority >= 0 AND xsm.priority <= 1) in /home/joejoe/public_html/sites/all/modules/xmlsitemap/xmlsitemap.module on line 283."

-If you go back to the main page, and go back to the update.php page, and update, you will get this error again.
-If you deactivate the module, the error is gone.

-There is no joejoe_smv6.xmlsitemap table at that point.

#1

kiamlaluno - July 4, 2009 - 00:12

The reported error doesn't mean Drupal is trying to execute an update. It simply means that some code of XML sitemap is executed before Drupal execute update.php, or right after Drupal has executed update.php. That happens because each enabled module is still loaded, when executing update.php (correct me if I am wrong).

#2

kiamlaluno - July 4, 2009 - 00:18
Title:update.php gives error even if there is no update...» update.php gives error even if there are no updates

As a matter of fact, update.php contains the following code:

<?php
drupal_bootstrap
(DRUPAL_BOOTSTRAP_FULL);
drupal_maintenance_theme();

// This must happen *after* drupal_bootstrap(), since it calls
// variable_(get|set), which only works after a full bootstrap.
update_create_batch_table();
?>

#3

alexandreracine - July 4, 2009 - 05:59

Would that mean that there is something not happening in the .install file that should?

#4

kiamlaluno - July 4, 2009 - 06:04

From the description you gave, it seems the database table is not created. Without any further information, that is the only plausible explanation I can find.
It could be that you didn't follow all the steps necessary to completely uninstall the module, and that are explained in another report you can find in the project issue queue.

#5

kiamlaluno - July 4, 2009 - 06:04
Title:update.php gives error even if there are no updates» update.php reports an error even if there are no updates

#6

alexandreracine - July 5, 2009 - 16:25
Status:active» closed

I'll close this one and follow up will be here : #509764: Trying to help for bug search... sitemap.xml not populating

#7

earnie - July 6, 2009 - 12:30
Status:closed» fixed

We set them fixed for a two week viewing in Open Issues.

#8

System Message - July 20, 2009 - 12:40
Status:fixed» closed

Automatically closed -- issue fixed for 2 weeks with no activity.

 
 

Drupal is a registered trademark of Dries Buytaert.