Active
Project:
Real-time SEO for Drupal
Version:
8.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
6 Feb 2025 at 19:30 UTC
Updated:
24 Feb 2026 at 16:12 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
dhruv.mittal commentedComment #3
dhruv.mittal commentedI have tried to reproduce this issue using the steps that you have provided but not able to reproduce it.
Can you tell me what am i missing or you can share more info about it.?
Comment #4
michal_liszka commentedI had the same issue, but I figure out an error: `Undefined property: stdClass::$field_real_time_seo_description in Drupal\Core\Entity\Sql\SqlContentEntityStorage->loadFromDedicatedTables() ` is caused by
So I just found where exactly these fields were added: `yoast_seo_update_8202` and just re-run this single hook_update.
That's work for me and everythink works fine.
Comment #5
alfattal commented@michal_liszka Could you please elaborate on how did you fix this issue and how did you found the fields that were added?
Comment #6
michal_liszka commented@alfattal
After updating Drupal from version 10.1 to 10.4.4 and running
drush deploy, thehook_update_Nforyoast_seodid not execute properly, even though there was no custom code on the site that could interfere with this process.While navigating through the admin panel, an error occurred:
Undefined property: stdClass::$field_real_time_seo_description in Drupal\Core\Entity\Sql\SqlContentEntityStorage->loadFromDedicatedTables(), and the Status Report displayed an error message stating that the field must be updated for theyoast_seofield. In some cases, simply opening the field’s edit page and saving it is enough to trigger the update. However, in this case, when trying to edit the field, I encountered an SQL error, which I described in my previous comment.Since the
field_real_time_seo_titleandfield_real_time_seo_descriptionfields were not manually added, I searched theyoast_seofolder for references to “title” and “description” and foundyoast_seo_update_8202. Within this hook_update, these fields are added to the database schema.One possible solution, which I could apply in this case, is to either temporarily modify the update number in the code (e.g., changing 8202 to 8205 and then reverting it) or reset the module’s update number entirely and rerun the
yoast_seo_Nsequence.Here is the sequence of steps to resolve this issue:
1. Edit the file directly:
vi modules/contrib/yoast_seo/yoast_seo.installChange the update number, for example, from 8202 to 8205.
2. Run deploy or update database:
drush deployor
drush updb -y (agreement optional)3. Update the hook registry:
drush ev "\Drupal::service('update.update_hook_registry')->setInstalledVersion('yoast_seo', 8204);"where 8204 is the actual last executed hook update.
This approach ensures that the update runs correctly and resolves the issue with the missing fields.
Comment #7
alfattal commented@michal_liszka Thank you for providing this detailed information. However, this approach cannot be applied on a production site without a patch.
Comment #12
ruslan piskarovComment #13
alfattal commentedThe patch in MR !39 applied successfully and it resolved the first part of the issue which is the error message. The second part (Snippet preview is returning "Unknow" value) remained unresolved.
Comment #14
alfattal commented@bramtenhove Any chance to take a look at this issue?
Comment #15
kingdutchI'm not entirely comfortable with simply rerunning an update hook. I think one of the important clues that's missing in this issue is: What version did you upgrade from when this happened?
The issue seems to be quite specific and before simply running an update hook twice, I'd like to figure out why it didn't run in the first place.
Comment #16
alfattal commented@kingdutch The version that I upgraded from when this happened was the latest on the (1.x) branch which is (1.9). No further updated to this branch since the 26 Aug 2024.
Comment #17
davidiio commentedWe have a similar issue here. Upgrading from 1.9 to 2.2
It seems that yoast_seo.install file changed a lot between these two versions. A few update hooks were added but when I ran
drush updbcommand only update hook 8204 was listed and ran.After that, every drush command display these warnings:
I then used this command to reset update hooks to 8200 and re-ran drush updb so update hooks 8201 8202 8203 and 8204 ran
Comment #18
alfattal commented@kingdutch I've responded to your question three months ago. Any chance to progress with this issue?
Comment #19
alfattal commentedThis doesn't look like an actively maintained module. I will remove it permanently and call it a day!