Closed (duplicate)
Project:
Paragraphs
Version:
8.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
29 Jan 2022 at 02:31 UTC
Updated:
20 Jun 2023 at 05:16 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
duaelfrThis should have been fixed by #3253545: Drupal 9.3 fixes and PHP 8.1
Comment #3
belba commentedThe version I have is 9.3.5 and the PHP version 8.1.1
and the error is still there.
Comment #4
duaelfrWhich version of the module are you using?
The fix has not been released yet so you need to use the latest dev version or apply the patch I uploaded in the other issue on the 1.12.0 version.
Comment #5
jakegibs617 commented"Passing null to parameter #1"
I think you just need to add (string)
instead of
strip_tags($foobar)change to
strip_tags((string) $foobar)Comment #6
river zhao commentedMy project environment is Drupal9.5.9, PHP8.1; the problem prompt is:
Deprecated function: strip_tags() in Drupal\paragraphs\Entity\Paragraph->getTextSummary(): Passing null to parameter #1 ($string) of type string is deprecated (/var/www/docroot/modules/contrib/paragraphs/ src/Entity/Paragraph.php, line 740).
None of the existing patches can be used, I created a new patch.
Comment #7
river zhao commentedComment #8
river zhao commented