Unknown: preg_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in OpenCart\storage\modification\system\engine\action.php on line 65
on the Homepage of the shop and Admin.
Any suggestions?
Opencart 1.5.6.5/OC Bootstrap Pro/VQMOD lover, user and geek.
Affordable Service £££ - Opencart Installs, Fixing, Development and Upgrades
Plus Ecommerce, Marketing, Mailing List Management and More
FREE Guidance and Advice at https://www.ecommerce-help.co.uk
Export/Import Tool * SpamBot Buster * Unused Images Manager * Instant Option Price Calculator * Number Option * Google Tag Manager * Survey Plus * OpenTwig
Try to refresh ocmod modifications. If doesn't work ocmod extensio issue
Upgrade Service | OC 2.3.0.2 PHP 8 | My Custom OC 3.0.3.8 | Buy me a beer
Return type of Twig_Node::count() should either be compatible with Countable::count(): int, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in OpenCart\system\library\template\Twig\Node.php on line 222
and
Return type of Twig_Node::getIterator() should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in OpenCart\system\library\template\Twig\Node.php on line 227
Any ideas?
Yes, it's because of using an old twig version. Just override your OpenCart files with the ones from the 3.0.x.x_Maintenance branch, and these errors should all disappear.lankylad wrote: ↑Sun Dec 18, 2022 12:36 amI found my way around this problem by replacing NULL with 0 for INT and '' for STRING. But now I'm getting the message:
Return type of Twig_Node::count() should either be compatible with Countable::count(): int, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in OpenCart\system\library\template\Twig\Node.php on line 222
and
Return type of Twig_Node::getIterator() should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in OpenCart\system\library\template\Twig\Node.php on line 227
Any ideas?
Export/Import Tool * SpamBot Buster * Unused Images Manager * Instant Option Price Calculator * Number Option * Google Tag Manager * Survey Plus * OpenTwig
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
Users browsing this forum: No registered users and 259 guests