@NWCE, could you provide a link to the site? Send it to me via PM if you don't want to publish "to the world".
Printable View
@NWCE, could you provide a link to the site? Send it to me via PM if you don't want to publish "to the world".
Thanks lat9 for your help. I have sent you a PM
what about zc 2 and higher php levels. It's definitely working on 8.3 but generating a error logs. I just reduced the level to 8.2 because I keep running into other issues on 8.3. The biggest offender seems to be classes/usu.php on the product listing page.
Here's an example:
#0 [internal function]: zen_debug_error_handler()
#1 /includes/functions/functions_strings.php(335): preg_replace()
#2 /includes/classes/usu.php(968): zen_clean_html()
#3 /includes/classes/usu.php(628): usu->filter()
#4 /includes/classes/usu.php(385): usu->get_product_name()
#5 /includes/classes/usu.php(223): usu->parse_parameters()
#6 /includes/classes/observers/UsuObserver.php(59): usu->href_link()
#7 /includes/classes/traits/NotifierManager.php(87): UsuObserver->update()
#8 /includes/functions/html_output.php(18): base->notify()
#9 /includes/modules/classicBasic2/product_listing.php(214): zen_href_link()
#10 /includes/templates/template_default/templates/tpl_modules_product_listing.php(10): include('/home/xxxxxx/...')
#11 /includes/templates/template_default/templates/tpl_index_product_list.php(99): require('/home/jadsjams/...')
#12 /includes/modules/pages/index/main_template_vars.php(232): require('/home/xxxx/...')
#13 /includes/templates/classicBasic2/common/tpl_main_page.php(108): require('/home/zzxzxx/...')
#14 /index.php(94): require('/home/xxxxxx/...')
--> PHP Deprecated: preg_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /includes/functions/functions_strings.php on line 335.
Have no clue why it's giving you that, but I can confirm usu-3.1.0 working fine on my zc 2.0.1 dev site without errors.
PHP Version 8.3.9
sigh. Well, I can tell you that none of the sites upgraded to 2.0 with the same template has this issue except the one with ultimate.
But also I can't seem to trigger this warning by accessing any elements on the product listing page. I truly don't understand the warnings - there are actually 3 in the one error log but all similar. Each refer to the image first. For full clarity and in hopes someone can better understand what this is about, I'll post the full file:
Code:[01-Aug-2024 22:31:59 UTC] Request URI: /blues-c-20/bmz_cache/1/103_1722jpg.image.92x80.jpg, IP address: 20.112.85.84, Language id 1
#0 [internal function]: zen_debug_error_handler()
#1 /includes/functions/functions_strings.php(335): preg_replace()
#2 /includes/classes/usu.php(968): zen_clean_html()
#3 /includes/classes/usu.php(628): usu->filter()
#4 /includes/classes/usu.php(385): usu->get_product_name()
#5 /includes/classes/usu.php(223): usu->parse_parameters()
#6 /includes/classes/observers/UsuObserver.php(59): usu->href_link()
#7 /includes/classes/traits/NotifierManager.php(87): UsuObserver->update()
#8 /includes/functions/html_output.php(18): base->notify()
#9 /includes/modules/classicBasic2/product_listing.php(214): zen_href_link()
#10 /includes/templates/template_default/templates/tpl_modules_product_listing.php(10): include('/home/xxxxxx/...')
#11 /includes/templates/template_default/templates/tpl_index_product_list.php(99): require('/home/xxxxxx/...')
#12 /includes/modules/pages/index/main_template_vars.php(232): require('/home/xxxxxx/...')
#13 /includes/templates/classicBasic2/common/tpl_main_page.php(108): require('/home/xxxxxx/...')
#14 /index.php(94): require('/home/xxxxxx/...')
--> PHP Deprecated: preg_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /includes/functions/functions_strings.php on line 335.
[01-Aug-2024 22:31:59 UTC] Request URI: /blues-c-20/bmz_cache/1/103_1722jpg.image.92x80.jpg, IP address: 20.112.85.84, Language id 1
#0 [internal function]: zen_debug_error_handler()
#1 /includes/functions/functions_strings.php(335): preg_replace()
#2 /includes/classes/usu.php(968): zen_clean_html()
#3 /includes/classes/usu.php(628): usu->filter()
#4 /includes/classes/usu.php(385): usu->get_product_name()
#5 /includes/classes/usu.php(223): usu->parse_parameters()
#6 /includes/classes/observers/UsuObserver.php(59): usu->href_link()
#7 /includes/classes/traits/NotifierManager.php(87): UsuObserver->update()
#8 /includes/functions/html_output.php(18): base->notify()
#9 /includes/modules/classicBasic2/product_listing.php(214): zen_href_link()
#10 /includes/templates/template_default/templates/tpl_modules_product_listing.php(10): include('/home/xxxxxx/...')
#11 /includes/templates/template_default/templates/tpl_index_product_list.php(99): require('/home/xxxxxx/...')
#12 /includes/modules/pages/index/main_template_vars.php(232): require('/home/xxxxxx/...')
#13 /includes/templates/classicBasic2/common/tpl_main_page.php(108): require('/home/xxxxxx/...')
#14 /index.php(94): require('/home/xxxxxx/...')
--> PHP Deprecated: preg_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /includes/functions/functions_strings.php on line 335.
[01-Aug-2024 22:31:59 UTC] Request URI: /blues-c-20/bmz_cache/1/103_1722jpg.image.92x80.jpg, IP address: 20.112.85.84, Language id 1
#0 [internal function]: zen_debug_error_handler()
#1 /includes/functions/functions_strings.php(335): preg_replace()
#2 /includes/classes/usu.php(968): zen_clean_html()
#3 /includes/classes/usu.php(628): usu->filter()
#4 /includes/classes/usu.php(385): usu->get_product_name()
#5 /includes/classes/usu.php(223): usu->parse_parameters()
#6 /includes/classes/observers/UsuObserver.php(59): usu->href_link()
#7 /includes/classes/traits/NotifierManager.php(87): UsuObserver->update()
#8 /includes/functions/html_output.php(18): base->notify()
#9 /includes/modules/classicBasic2/product_listing.php(214): zen_href_link()
#10 /includes/templates/template_default/templates/tpl_modules_product_listing.php(10): include('/home/xxxxxx/...')
#11 /includes/templates/template_default/templates/tpl_index_product_list.php(99): require('/home/xxxxxx/...')
#12 /includes/modules/pages/index/main_template_vars.php(232): require('/home/xxxxxx/...')
#13 /includes/templates/classicBasic2/common/tpl_main_page.php(108): require('/home/xxxxxx/...')
#14 /index.php(94): require('/home/xxxxxx/...')
--> PHP Deprecated: preg_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /includes/functions/functions_strings.php on line 335.
Perhaps help is at https://stackoverflow.com/questions/...pe-arraystring
There's the issue: /blues-c-20/bmz_cache/1/103_1722jpg.image.92x80.jpg
... which is why it helps to post the full log information. Where did that link come from? I'm guessing line 214 of the template's product_listing.php.
thanks @lat9 - by the time I came back here, I had found some issues in the product_listing.php. Keeping my fingers crossed that I fixed it!