Problems after SQL/PHP Update “Deprecated: strpos()”

SupportCategory: QuestionsProblems after SQL/PHP Update “Deprecated: strpos()”
ChrisK Staff asked 4 weeks ago
Hi, i have updatet PHP Version to 8.2 and SQL and getting these errors now. After deactivating EA everything works just fine. Turning it on breaks the website again. Deprecated: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /homepages/.../wp-includes/functions.php on line 7300   Deprecated: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /homepages/.../wp-includes/functions.php on line 2189
2 Answers
Nikola Loncar Staff answered 4 weeks ago

Hi, you should not display those notifications on frontend but keep them inside error log file. There is a PHP settings for that. Can you please paste couple of more lines from that message or inspect warning message to see it all. Should be like .../easy-appointmens/... something. That would help a lot to find exact place where changes needs to be applied.

Best regards,
Nikola

Nikola Loncar Staff answered 3 weeks ago

Hi ChrisK, have you checked if there are any additional info regarding those notifications. It will help as a lot to fix it.

Best regards,
Nikola

ChrisK Staff replied 3 weeks ago

Hi Nikola, It is working again. Path …/easy-appointments/… was not in the error notification – just figured it was EA when I deactivated every plugin one by one via FTP. However, I think the real problem was WP-Optimize and minification. Turn that off and it is working again.