Get error "PHP Unknown: strpos(): Passing null to parameter #1 ($haystack)" after upgrade to php 8.1
Hi there,
I have migrated my website from 2.3.0.3 to 3.0.3.9 because the provider is going to upgrade to php 8.1 and up.
All went well and had a nice clean error log.
When i put the site on php 8.1 i get the following error repeatedly
PHP Unknown: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /home/xxx/domains/pureandtimeless.nl/public_html/system/storagexxx/modification/catalog/model/tool/image.php on line 40
MAybe any of you knows how to troubleshoot this.
Thanks in advance
I have migrated my website from 2.3.0.3 to 3.0.3.9 because the provider is going to upgrade to php 8.1 and up.
All went well and had a nice clean error log.
When i put the site on php 8.1 i get the following error repeatedly
PHP Unknown: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /home/xxx/domains/pureandtimeless.nl/public_html/system/storagexxx/modification/catalog/model/tool/image.php on line 40
MAybe any of you knows how to troubleshoot this.
Thanks in advance
/home/xxx/domains/pureandtimeless.nl/public_html/system/storagexxx/modification/catalog/model/tool/image.php on line 40Jansuh wrote: ↑Thu Mar 07, 2024 7:49 pmHi there,
I have migrated my website from 2.3.0.3 to 3.0.3.9 because the provider is going to upgrade to php 8.1 and up.
All went well and had a nice clean error log.
When i put the site on php 8.1 i get the following error repeatedly
PHP Unknown: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /home/xxx/domains/pureandtimeless.nl/public_html/system/storagexxx/modification/catalog/model/tool/image.php on line 40
MAybe any of you knows how to troubleshoot this.
Thanks in advance
What modification modifies that image.php file?
Mike
cue4cheap not cheap quality
This part means it comes from an installed extension.
UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk
Or disable them one-by-one until the error goes away to find which one it was.
UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk
I had the same issue... switched to PHP 8 and it worked! I think its too early for PHP 8.1
I-xperts & Creative
Κατασκευή Ιστοσελίδων - Web Development | Κατασκευή E-shop OpenCart
Based in Greece with 24 years of experience
Use the 3.0.x.x (will be 3.0.4.0 in future) https://github.com/opencart/opencart/tree/3.0.x.x and it will work (also with php 8.2.x) wihout any problems.
Full Stack Web Developer :: Dedicated OpenCart Development & Support DACH Region
Contact for Custom Work / Fast Support.
Who is online
Users browsing this forum: No registered users and 19 guests