HTMLPurifier - str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated

This public forum is for user-to-user discussions of PHPMaker. Note that this is not support forum.
Post Reply
iggabz
User
Posts: 72

HTMLPurifier - str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated

Post by iggabz »

Good day,

I was working on a project then suddenly after the latest generation this error occurred

C:\xampp\htdocs\project1\vendor\ezyang\htmlpurifier\library\HTMLPurifier\Lexer.php(309): str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated

anyone encountered and has resolved this?


arbei
User
Posts: 9284

Post by arbei »

Current release (v4.14.0) of HTMLPurifier does not support PHP 8.1 yet, but you may try to change to the "dev-master" version, see Composer Packages.


iggabz
User
Posts: 72

Post by iggabz »

sorry i did not get your suggestion as i am a still a monkey at coding.

what do i search on the composer package?


arbei
User
Posts: 9284

Post by arbei »

iggabz wrote:

C:\xampp\htdocs\project1\vendor\ ezyang\htmlpurifier \library\HTMLPurifier\Lexer.php(309):


iggabz
User
Posts: 72

Post by iggabz »

thank you for the assistance.


Post Reply