Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
The warning is thrown if no icon uuid is set.
Deprecated function: addcslashes(): Passing null to parameter #1 ($string) of type string is deprecated in Drupal\Core\Database\Connection->escapeLike() (line 1483 of core/lib/Drupal/Core/Database/Connection.php).
Drupal\Core\Database\Connection->escapeLike(NULL) (Line: 418)
Drupal\Core\Database\Query\Select->escapeLike(NULL) (Line: 118)
Drupal\Core\Entity\Query\Sql\Condition::translateCondition(Array, Object, ) (Line: 63)
Drupal\Core\Entity\Query\Sql\Condition->compile(Object) (Line: 176)
Drupal\Core\Entity\Query\Sql\Query->compile() (Line: 80)
Drupal\Core\Entity\Query\Sql\Query->execute() (Line: 43)
Drupal\paragraphs\ParagraphsTypeIconUuidLookup->resolveCacheMiss(NULL) (Line: 149)
Drupal\Core\Cache\CacheCollector->get(NULL) (Line: 295)
Drupal\paragraphs\Entity\ParagraphsType->getFileByUuid(NULL) (Line: 162)
Drupal\paragraphs\Entity\ParagraphsType->getIconFile() (Line: 184)
Drupal\paragraphs\Entity\ParagraphsType->getIconUrl() (Line: 1620)
Drupal\paragraphs\Plugin\Field\FieldWidget\ParagraphsWidget->buildButtonsAddMode() (Line: 1425)
Drupal\paragraphs\Plugin\Field\FieldWidget\ParagraphsWidget->buildAddActions() (Line: 1200)
Drupal\paragraphs\Plugin\Field\FieldWidget\ParagraphsWidget->formMultipleElements(Object, Array, Object) (Line: 111)
Drupal\Core\Field\WidgetBase->form(Object, Array, Object, NULL) (Line: 1225)
Drupal\paragraphs\Plugin\Field\FieldWidget\ParagraphsWidget->form(Object, Array, Object) (Line: 181)
Drupal\Core\Entity\Entity\EntityFormDisplay->buildForm(Object, Array, Object) (Line: 121)
Drupal\Core\Entity\ContentEntityForm->form(Array, Object) (Line: 127)
Drupal\node\NodeForm->form(Array, Object) (Line: 106)
Drupal\Core\Entity\EntityForm->buildForm(Array, Object)
call_user_func_array(Array, Array) (Line: 531)
Drupal\Core\Form\FormBuilder->retrieveForm('node_article_form', Object) (Line: 278)
Drupal\Core\Form\FormBuilder->buildForm(Object, Object) (Line: 97)
Drupal\autosave_form\Form\AutosaveFormBuilder->buildForm(Object, Object) (Line: 73)
Drupal\Core\Controller\FormController->getContentResult(Object, Object)
call_user_func_array(Array, Array) (Line: 123)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 564)
Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 124)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext(Array, Array) (Line: 97)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 158)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 80)
Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1) (Line: 58)
Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object, 1, 1) (Line: 106)
Drupal\page_cache\StackMiddleware\PageCache->pass(Object, 1, 1) (Line: 85)
Drupal\page_cache\StackMiddleware\PageCache->handle(Object, 1, 1) (Line: 49)
Asm89\Stack\Cors->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 51)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 23)
Stack\StackedHttpKernel->handle(Object, 1, 1) (Line: 708)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)
require('/Users/d430774/Sites/thunder/thunder-develop/docroot/index.php') (Line: 235)
Comment | File | Size | Author |
---|---|---|---|
#12 | paragraphs-d9.3-php-8.1-fixes-for-1.12-3253545-12.patch | 3.67 KB | DuaelFr |
#7 | 3253545-7.patch | 10.64 KB | alexpott |
#7 | 6-7-interdiff.txt | 1.64 KB | alexpott |
#6 | 3253545-6.patch | 9.29 KB | alexpott |
#6 | 5-6-interdiff.txt | 755 bytes | alexpott |
Issue fork paragraphs-3253545
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
chr.fritschComment #4
alexpottLet's broaden this issue to getting the tests to pass on Drupal 9.3 and PHP 8.1
Comment #5
alexpottSome more fixes for Drupal 9.3
Comment #6
alexpottThis will fix the PHP 8.1 errors that are not due to search_api - we need #3253738: PHP 8.1 Deprecations to be merged and released.
Comment #7
alexpottLet's use the dev release of search api - we do for other modules required for testing. Also fixing the PostgreSQL error for hopefully seas of green.
Comment #9
BerdirThanks, committed!
Comment #11
joegraduateComment #12
DuaelFrIf someone need a patch to apply on 1.12, here it is. (Tests have been removed)