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.
Running the latest metatag update scripts breaks with an error:
Fatal error: Class name must be a valid object or a string in /includes/common.inc on line 7749
Before the error happens, I do see a series of log messages like
Update 7004: 200 records were updated in total.
It seems that Update 7004 fails to complete?
Comments
Comment #1
Anonymous (not verified) CreditAttribution: Anonymous commentedtemporarily "fixed" by skipping update 7004 and continuing from 7005.
Comment #2
laura s CreditAttribution: laura s commentedRephrasing the issue title.
Update attempt with Drush on Beta4:
I downloaded latest Metatag -dev release. Still failure:
Running update.php yields a drupal_set_message() error:
There's a prompt to take me to the error page, but then I'm taken to a success screen:
However, if I go back to update either by update.php or drush up, update 7004 is still prompted as necessary.
Last bit of info: Watchdog entries:
And yet repeating the process generates the identical messages. The counts do not change.
I hope this info is helpful.
Comment #3
drupalsteve CreditAttribution: drupalsteve commentedI am seeing the same error prompt as described above.
Comment #4
Nicolas Bouteille CreditAttribution: Nicolas Bouteille commentedIs it possible to skip an update from the UI without using drush ? I can update any other module now. I was thinking to uninstall Meta tags and reinstall it unfortunately there are to many nodes having custom descriptions and i can't find the table where theses descriptions are stored so that i can copy paste them.
Comment #5
Nicolas Bouteille CreditAttribution: Nicolas Bouteille commentedOk I was able to install updates from other modules by disabling metatags and deleting the module folder.
Now I would like to resolve that bug and I am willing to completely uninstall Meta tags and recreate all my custom descriptions if needed but i need a way to list all pages that use one and save them in a way. The metatag table in the database is not clear for me. I was thinking to do it with views but the metatag fields are not available... How can I make a summary of all my custom descriptions and titles before I erase everything ?
Thank you
Comment #6
laura s CreditAttribution: laura s commentedNoting that it's becoming apparent that this may be the same issue as #1844638: metatag_update_7004 goes into an infinite loop. There's a patch pending there. (I can't test it anymore. I uninstalled and reinstalled Metatag with no problem, and moved on.)
Comment #7
DamienMcKennaThis is ultimately a duplicate of #1844638: metatag_update_7004 goes into an infinite loop, lets focus on that issue.