The "Generate Metatag" button does not appear on node edit/create forms, even for users with UID 1 or proper permissions (administer metatag content). This affects the core functionality of the module.
The issue is caused by an incorrect import statement in metatag_ai.module:
Current (incorrect): use Drupal\node\NodeForm;
Should be: use Drupal\node\Form\NodeForm;
This is caused by this: https://www.drupal.org/node/3517871
This causes the $form_object instanceof NodeForm check in metatag_ai_form_alter() to always return FALSE, preventing the button from being added to node forms.
Will provide a MR
Issue fork metatag_ai-3542806
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
prometsource commentedThe module is not abandoned. Perhaps this can help, please let us know. youtube.com/watch?v=bIOII6vBmuc&feature=youtu.be
Comment #3
nx2611 commentedComment #4
doxigo commentedThanks guys for the update, I watched the video, and followed the exact steps, it does not work on a standalone Drupal 11.2 and higher
I'll see if I can figure out the issue and provide a patch :)
Comment #5
doxigo commentedComment #7
doxigo commentedUpdated the issue details and provided a MR for you to check with Drupal 11.2
Comment #8
doxigo commentedComment #9
nx2611 commentedComment #12
doxigo commentedThanks, It seems you forgot to add credit on this issue