Administrator
- Join Date:
- Sep 2009
- Location:
- Stuart, FL
- Posts:
- 14,152
- Plugin Contributions:
- 56
Post #1621 by lat9
@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".
Started by lhungil on 14 Aug 2012, 2:26 PM · Views: 430,651
Administrator
@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".
Zen Follower
Thanks lat9 for your help. I have sent you a PM
Totally Zenned
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.
The full-time Zen Cart Guru. WizTech4ZC.com
New template for 2.0 viewable here: 2.0 Demo
Zen Follower
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.
2 + 2 = 5 for extremely large values of 2
Pez Collectors Store •••••••• My Plugins List
Totally Zenned
gothstone:
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.
what php version are you using?
The full-time Zen Cart Guru. WizTech4ZC.com
New template for 2.0 viewable here: 2.0 Demo
Zen Follower
PHP Version 8.3.9
2 + 2 = 5 for extremely large values of 2
Pez Collectors Store •••••••• My Plugins List
Totally Zenned
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:
[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.
The full-time Zen Cart Guru. WizTech4ZC.com
New template for 2.0 viewable here: 2.0 Demo
Totally Zenned
delia:
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:
[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.
Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.
Zen Cart Certified hosting at myZenCartHost.com
Administrator
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.
Totally Zenned
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!
The full-time Zen Cart Guru. WizTech4ZC.com
New template for 2.0 viewable here: 2.0 Demo
Totally Zenned
after turning off ultimate, the number of separate logs inside one error log are reduced to 1 instead. I also have gone into to every folder and made sure there were no leftover bits of anything from previous versions. Thanks to everyone who chimed in. Now to post elsewhere! unless someone can weigh in on the remaining log? (yeah, I know it's not ultimate!)
[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.
The full-time Zen Cart Guru. WizTech4ZC.com
New template for 2.0 viewable here: 2.0 Demo
Zen Follower
That url /blues-c-20/bmz_cache/1/103_1722jpg.image.92x80.jpg
Is still funky. I think there is either an error in your image handler implementation or USU. Easy way to find out, jam image handler into the responsive template (or just switch to it? Been a bit, can't remember if template edits are needed) and see if it copes.
2 + 2 = 5 for extremely large values of 2
Pez Collectors Store •••••••• My Plugins List
Totally Zenned
and it's one product that's creating this. One category and all products. I can't imagine what the base problem is but at least I now know it's not a coding issue. Thanks again everyone!
The full-time Zen Cart Guru. WizTech4ZC.com
New template for 2.0 viewable here: 2.0 Demo
Totally Zenned
gothstone:
That url /blues-c-20/bmz_cache/1/103_1722jpg.image.92x80.jpg
Is still funky. I think there is either an error in your image handler implementation or USU. Easy way to find out, jam image handler into the responsive template (or just switch to it? Been a bit, can't remember if template edits are needed) and see if it copes.
and there it is! I'm thinking there's something wrong with the image as there are no other issues and the issue persists when image hander is turned off. If I go look for it in the appropriate bmz folder, it's not there. I cleared the cache but nothing. So I've asked the owner to click thru to each of the 155 products in the catagory to see if we can figure out which is the issue. I don't know of anything else to do. Thanks gothstone!
The full-time Zen Cart Guru. WizTech4ZC.com
New template for 2.0 viewable here: 2.0 Demo
Zen Follower
Random thought, whats the actual name of category 20 and this product. Do they perhaps include -c- or -p- ? Cuz that would confuse usu...
2 + 2 = 5 for extremely large values of 2
Pez Collectors Store •••••••• My Plugins List
Totally Zenned
as this only happens in one out of 33 categories, I'm quite sure it has nothing to do with that - and I turned off ultimate.
The full-time Zen Cart Guru. WizTech4ZC.com
New template for 2.0 viewable here: 2.0 Demo
Totally Zenned
It ended up being a corrupted product - no corresponding product_description entry. It's an old cart (2007) so no telling when or what happened.
The full-time Zen Cart Guru. WizTech4ZC.com
New template for 2.0 viewable here: 2.0 Demo
Administrator
v3.1.1 of USU is now available for download: https://www.zen-cart.com/downloads.php?do=file&id=132
This version corrects the PHP Fatal error logged when $_GET['main_page'] is an array (GitHub issue #57).
New Zenner
Hello, I am currently using zencart v2.0.1 Before adding the ultimate seo plugin, all of my old urls were redirecting to my homepage using this code in the .htaccess file:
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?main_page=$1&%{QUERY_STRING} [L]
Now that the plugin is installed and working, my old urls are now a white screen with the above code :( How can I get my old urls to redirect to my homepage?
Thanks, Gina!
Administrator
A couple of pieces of information would help me help you.
First, if you've received a whitescreen there's a myDEBUG*.log file in the site's /logs directory identifying what the issue is.
Second, how about an example of one of the 'old' urls?
Tell staff why this post should be reviewed.