- 🇺🇸United States mrweiner
Closing out. If anybody runs into this, feel free to reopen.
I'll preface by saying I'm not a coder, so my deductions could be wrong, including the idea that it could be an incompatibility created by the recent update.
So I will inform you about what is happening in my dev site, and hope you will forgive me if I am misdirecting.
I realized that the problem is only in one version among the three:D9.1.10/D9.20 (updated from D9.1.10)/D9.20 from scratch
I'm working on a mini-project of which for safety (to avoid incompatibilities not solvable in a short time) I'm keeping two "mirror projects" isubstantially identical n the main functions.
Now, this happens:
D9.1.10: everything works perfectly, either uploading the image from field type Media Entity reference (adding image in "media/add/remote_image" path) or using field type Remote Url Image, inserting the url directly in the field.
D9.2.0 (updated from 9.1.10): none of the two fields works, and indeed, it creates a problem not saving the node types where the fields mentioned above are, it seems creating a FieldWidget->Form/Form validator problem (notice code below)
D9.2.0 (from scratch)
Magically everything returns to work as in D9.1.10 version.
I could certainly restart building from D9.2.0 from scratch version, but I think it would be important to understand what could have happened to avoid similar problems in subsequent updates.
As said before, it's hard for me to understand if the problem is with the module (as it seems) or with the Drupal update. If I'm wrong I hope you'll excuse me, and in case I'll move the post.
Many thanks for your help
The notice:
Notice: Trying to access array offset on value of type null in Drupal\link\Plugin\Field\FieldWidget\LinkWidget::validateTitleNoLink() (line 175 of /Users/McCoffe/mampsites/D9/dev-local2/core/modules/link/src/Plugin/Field/FieldWidget/LinkWidget.php)
#0 /Users/McCoffe/mampsites/D9/dev-local2/core/includes/bootstrap.inc(312): _drupal_error_handler_real(8, 'Trying to acces...', '/Users/Reportec...', 175)
#1 /Users/McCoffe/mampsites/D9/dev-local2/core/modules/link/src/Plugin/Field/FieldWidget/LinkWidget.php(175): _drupal_error_handler(8, 'Trying to acces...', '/Users/McCofee...', 175, Array)
#2 [internal function]: Drupal\link\Plugin\Field\FieldWidget\LinkWidget::validateTitleNoLink(Array, Object(Drupal\Core\Form\FormState), Array)
#3 /Users/McCoffe/mampsites/D9/dev-local2/core/lib/Drupal/Core/Form/FormValidator.php(280): call_user_func_array(Array, Array)
#4 /Users/McCoffe/mampsites/D9/dev-local2/core/lib/Drupal/Core/Form/FormValidator.php(236): Drupal\Core\Form\FormValidator->doValidateForm(Array, Object(Drupal\Core\Form\FormState))
#5 /Users/McCoffe/mampsites/D9/dev-local2/core/lib/Drupal/Core/Form/FormValidator.php(236): Drupal\Core\Form\FormValidator->doValidateForm(Array, Object(Drupal\Core\Form\FormState))
#6 /Users/McCoffe/mampsites/D9/dev-local2/core/lib/Drupal/Core/Form/FormValidator.php(236): Drupal\Core\Form\FormValidator->doValidateForm(Array, Object(Drupal\Core\Form\FormState))
#7 /Users/McCoffe/mampsites/D9/dev-local2/core/lib/Drupal/Core/Form/FormValidator.php(118): Drupal\Core\Form\FormValidator->doValidateForm(Array, Object(Drupal\Core\Form\FormState), 'node_article_fo...')
#8 /Users/McCoffe/mampsites/D9/dev-local2/core/lib/Drupal/Core/Form/FormBuilder.php(589): Drupal\Core\Form\FormValidator->validateForm('node_article_fo...', Array, Object(Drupal\Core\Form\FormState))
#9 /Users/McCoffe/mampsites/D9/dev-local2/core/lib/Drupal/Core/Form/FormBuilder.php(321): Drupal\Core\Form\FormBuilder->processForm('node_article_fo...', Array, Object(Drupal\Core\Form\FormState))
#10 /Users/McCoffe/mampsites/D9/dev-local2/core/lib/Drupal/Core/Controller/FormController.php(73): Drupal\Core\Form\FormBuilder->buildForm(Object(Drupal\node\NodeForm), Object(Drupal\Core\Form\FormState))
#11 [internal function]: Drupal\Core\Controller\FormController->getContentResult(Object(Symfony\Component\HttpFoundation\Request), Object(Drupal\Core\Routing\RouteMatch))
#12 /Users/McCoffe/mampsites/D9/dev-local2/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(123): call_user_func_array(Array, Array)
#13 /Users/McCoffe/mampsites/D9/dev-local2/core/lib/Drupal/Core/Render/Renderer.php(578): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}()
#14 /Users/McCoffe/mampsites/D9/dev-local2/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(124): Drupal\Core\Render\Renderer->executeInRenderContext(Object(Drupal\Core\Render\RenderContext), Object(Closure))
#15 /Users/McCoffe/mampsites/D9/dev-local2/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(97): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext(Array, Array)
#16 /Users/McCoffe/mampsites/D9/dev-local2/vendor/symfony/http-kernel/HttpKernel.php(158): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}()
#17 /Users/McCoffe/mampsites/D9/dev-local2/vendor/symfony/http-kernel/HttpKernel.php(80): Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object(Symfony\Component\HttpFoundation\Request), 1)
#18 /Users/McCoffe/mampsites/D9/dev-local2/core/lib/Drupal/Core/StackMiddleware/Session.php(57): Symfony\Component\HttpKernel\HttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#19 /Users/McCoffe/mampsites/D9/dev-local2/core/lib/Drupal/Core/StackMiddleware/KernelPreHandle.php(47): Drupal\Core\StackMiddleware\Session->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#20 /Users/McCoffe/mampsites/D9/dev-local2/core/modules/page_cache/src/StackMiddleware/PageCache.php(106): Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#21 /Users/McCoffe/mampsites/D9/dev-local2/core/modules/page_cache/src/StackMiddleware/PageCache.php(85): Drupal\page_cache\StackMiddleware\PageCache->pass(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#22 /Users/McCoffe/mampsites/D9/dev-local2/core/lib/Drupal/Core/StackMiddleware/ReverseProxyMiddleware.php(47): Drupal\page_cache\StackMiddleware\PageCache->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#23 /Users/McCoffe/mampsites/D9/dev-local2/core/lib/Drupal/Core/StackMiddleware/NegotiationMiddleware.php(52): Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#24 /Users/McCoffe/mampsites/D9/dev-local2/vendor/stack/builder/src/Stack/StackedHttpKernel.php(23): Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#25 /Users/McCoffe/mampsites/D9/dev-local2/core/lib/Drupal/Core/DrupalKernel.php(716): Stack\StackedHttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true)
#26 /Users/McCoffe/mampsites/D9/dev-local2/index.php(19): Drupal\Core\DrupalKernel->handle(Object(Symfony\Component\HttpFoundation\Request))
#27 {main}
I'm on a Mac OS local Mamp development, Apache 2.4.46, Php 7.4.2/7.4.3
Update Drupal from 9.1.10 to 9.2.0, install and set Media Remote Image fields
none
Closed: outdated
1.0
Code
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.
Closing out. If anybody runs into this, feel free to reopen.