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)

Issue fork yoast_seo-3302458

Command icon 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

Nelo_Drup created an issue. See original summary.

Binoli Lalani made their first commit to this issue’s fork.

binoli lalani’s picture

Status: Active » Needs review

Hello,

I have fixed the warning. Please review MR.

Thanks

nelo_drup’s picture

#6 it's great thank you

socialnicheguru’s picture

Status: Needs review » Needs work

yoast_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

socialnicheguru’s picture

Version: 8.x-1.7 » 8.x-1.8
sgalindo2388’s picture

Created temporary patch from MR in #6.