I just hit an interesting issue while trying to upgrade a Drupal 5.18 site to Drupal 6.12. I went to the update.php page and noticed an error at the top implying the
url_aliastable was having issues due to Drupal 6 expecting a language column which wasn't present in Drupal 5. "No problem" I thought, "That'll get fixed during the update!". This was the beginning of a long learning curve through the new
<a href="http://api.drupal.org/api/group/batch/6">Batch API</a> system!
Whenever I ran the update, it sat there for a minute and eventually display a message to the effect "There was unrecoverable error. See Below for more details" and the details read "An error occurred". This didn't give a lot of clues! So I started debugging and eventually found out the error occurred after system_update_6005.
Why 6005? Well, when the Batch API is started initially, it resets a time counter. It will keep going through it's list of operations (in this case,
Remember earlier, I said I had
display_errorsenabled (a common practice for a development environment)… Well when the JSON object got returned, there ws a non-JSON line tagged at the top which was meant to be there to tell me about the MySQL error caused by the broken
So… Debugging… Not always a good thing!