Problem/Motivation
Step 1 Install Metatag Asynchronous Widget and enable and change to Advanced meta tags form (async) in your content type.
Step 2 Install real-time SEO for Drupal
Step 3 Now go to edit a node and you will see the following error
Notice: Undefined index: basic in Drupal\yoast_seo\YoastSeoFieldManager->setFieldsConfiguration() (line 280 of modules/contrib/yoast_seo/src/YoastSeoFieldManager.php).
Drupal\yoast_seo\YoastSeoFieldManager->setFieldsConfiguration(Array) (Line: 42)
yoast_seo_form_node_afterbuild(Array, Object)
call_user_func_array('yoast_seo_form_node_afterbuild', Array) (Line: 1078)
Drupal\Core\Form\FormBuilder->doBuildForm('node_pagina_paquete_turistico_edit_form', Array, Object) (Line: 574)
Drupal\Core\Form\FormBuilder->processForm('node_pagina_paquete_turistico_edit_form', Array, Object) (Line: 320)
Drupal\Core\Form\FormBuilder->buildForm(Object, Object) (Line: 73)
Drupal\Core\Controller\FormController->getContentResult(Object, Object) (Line: 39)
Drupal\layout_builder\Controller\LayoutBuilderHtmlEntityFormController->getContentResult(Object, Object)
call_user_func_array(Array, Array) (Line: 123)
| Comment | File | Size | Author |
|---|---|---|---|
| #10 | 3302458-add_compatibility_metatag_asynchronous_widget.patch | 1.2 KB | sgalindo2388 |
Issue fork yoast_seo-3302458
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 #6
binoli lalani commentedHello,
I have fixed the warning. Please review MR.
Thanks
Comment #7
nelo_drup commented#6 it's great thank you
Comment #8
socialnicheguru commentedyoast_seo 1.8
I set the metatag async module on the mange form page
I type in a character into the title field and I get the following js errors:
yoast_seo.js?v=1.x:294 Uncaught TypeError: Cannot read properties of null (reading 'value')
at YoastSEO_DrupalSource.renewData (yoast_seo.js?v=1.x:294:74)
YoastSEO_DrupalSource.renewData @ yoast_seo.js?v=1.x:294
yoast_seo.js?v=1.x:286 Uncaught TypeError: Cannot set properties of null (setting 'value')
at yoast_seo.js?v=1.x:286:71
(anonymous) @ yoast_seo.js?v=1.x:286
setTimeout (async)
YoastSEO_DrupalSource.renewData @ yoast_seo.js?v=1.x:284
The same error does not show up when I do not use the metatag async module
Comment #9
socialnicheguru commentedComment #10
sgalindo2388 commentedCreated temporary patch from MR in #6.