If this is your first visit, check our documentation. To post, register or login.
Forums / Business Issues / Other Business Topics / Some issues upgrading to 1.5.7: template display, min-order, t&c

Some issues upgrading to 1.5.7: template display, min-order, t&c

Started by lance_turner on 26 Jul 2020, 4:01 AM · Views: 550

Results 21 to 40 of 40
27 Jul 2020, 11:34 AM
#21
lance_turner avatar

lance_turner

New Zenner

Join Date:
Jul 2016
Posts:
61
Plugin Contributions:
0

Some issues upgrading to 1.5.7: template display, min-order, t&c

Well, tried the Ozpost module, it installed ok, but took forever when I turned it on, and once reloaded in admin the module was all messed up, check boxes and many options were missing, like the code had been messed up. In the front end, it was giving server timeout errors and messing up the other postage modules, so switched php back to 7.0 but that didn't fix the probs, so uninstalled it. I guess Ozpost isn't ready for 1.5.7 yet without some more effort.

28 Jul 2020, 2:44 AM
#22
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,906
Plugin Contributions:
23

Re: Some issues upgrading to 1.5.7: template display, min-order, t&c

With all due respect, I think you're trying to change the oil in your car while traveling on the freeway to work.

You've got problems. You have log files. Do you see a pattern where most are the same? If several are the same, start by posting one of the duplicates here using the # sign above to load the code. Make sure you delete any confidential info such as YOUR_ADMIN or an IP address.

Other than the mods for the error logs, don't make matters worse by throwing more mods at the site for now.

I would be willing to bet that, with the enormous amounts of log entries, a lot of them are the same.

Let's start with the one you see the most and work from there. :yes:

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

28 Jul 2020, 9:29 AM
#23
lance_turner avatar

lance_turner

New Zenner

Join Date:
Jul 2016
Posts:
61
Plugin Contributions:
0

Re: Some issues upgrading to 1.5.7: template display, min-order, t&c

Thanks, yes, I agree, but not having properly working shipping modules is an issue. I heard back from Tassos from Cronomic, to quote "As far as I know there is no issue with Zencart 1.5.7. What you are referring though seems like something that is happening on a very limited number of servers for what ever reason. In all honesty there is no logic why is happening and but if I am right there is a solution but let’s take it one step at a time." The server timeout issue was my fault, didn't realise you had to subscribe even with the free trial.

So I will work with those guys to fix that side of things, and will chat to a dev to see what they think about fixing the other issues, anyone want to recommend a specific dev that is good to work with? I was looking at Scott Wilson and while I'm sure he's good, my shop just doesn't make the sort of money that would justify spending $1k (AU$1400+) or more for a few fixes (I haven't asked him yet, just checked his site pricing). But yes, I know, you get what you pay for, but maybe I am going to have to learn php in depth...

28 Jul 2020, 9:34 AM
#24
lance_turner avatar

lance_turner

New Zenner

Join Date:
Jul 2016
Posts:
61
Plugin Contributions:
0

Re: Some issues upgrading to 1.5.7: template display, min-order, t&c

Re the logs, yes, it's very repetitive, there's an issue with the Abagon template that I'm waiting to hear from the dev about, seems to be causing quite a few errors. Examples below:

[28-Jul-2020 09:29:42 UTC] Request URI: /index.php?main_page=product_info&cPath=148_189&products_id=632, IP address: 114.119.166.229
#1 trigger_error() called at [/includes/classes/db/mysql/query_factory.php:170]
#2 queryFactory->show_error() called at [/includes/classes/db/mysql/query_factory.php:142]
#3 queryFactory->set_error() called at [/includes/classes/db/mysql/query_factory.php:269]
#4 queryFactory->Execute() called at [/includes/modules/abagonr_blue/also_purchased_products.php:15]
#5 include(/includes/modules/abagonr_blue/also_purchased_products.php) called at [/includes/templates/template_default/templates/tpl_modules_also_purchased_products.php:14]
#6 require(/includes/templates/template_default/templates/tpl_modules_also_purchased_products.php) called at [/includes/templates/abagonr_blue/templates/tpl_product_info_display.php:242]
#7 require(/includes/templates/abagonr_blue/templates/tpl_product_info_display.php) called at [/includes/modules/pages/product_info/main_template_vars.php:153]
#8 require(/includes/modules/pages/product_info/main_template_vars.php) called at [/includes/templates/abagonr_blue/common/tpl_main_page.php:113]
#9 require(/includes/templates/abagonr_blue/common/tpl_main_page.php) called at [/index.php:94]
--> PHP Fatal error: 0: :: ==> (as called by) /includes/modules/abagonr_blue/also_purchased_products.php on line 15 <== in /includes/classes/db/mysql/query_factory.php on line 170.

[28-Jul-2020 09:31:47 UTC] Request URI: /index.php?main_page=product_info&cPath=131_132&products_id=1576, IP address: 114.119.166.213
#1 sprintf() called at [/includes/modules/abagonr_blue/also_purchased_products.php:15]
#2 include(/includes/modules/abagonr_blue/also_purchased_products.php) called at [/includes/templates/template_default/templates/tpl_modules_also_purchased_products.php:14]
#3 require(/includes/templates/template_default/templates/tpl_modules_also_purchased_products.php) called at [/includes/templates/abagonr_blue/templates/tpl_product_info_display.php:242]
#4 require(/includes/templates/abagonr_blue/templates/tpl_product_info_display.php) called at [/includes/modules/pages/product_info/main_template_vars.php:153]
#5 require(/includes/modules/pages/product_info/main_template_vars.php) called at [/includes/templates/abagonr_blue/common/tpl_main_page.php:113]
#6 require(/includes/templates/abagonr_blue/common/tpl_main_page.php) called at [/index.php:94]
--> PHP Warning: sprintf(): Too few arguments in /includes/modules/abagonr_blue/also_purchased_products.php on line 15.

[28-Jul-2020 09:31:47 UTC] Request URI: /index.php?main_page=product_info&cPath=131_132&products_id=1576, IP address: 114.119.166.213
#1 mysqli_query() called at [/includes/classes/db/mysql/query_factory.php:44]
#2 queryFactory->query() called at [/includes/classes/db/mysql/query_factory.php:260]
#3 queryFactory->Execute() called at [/includes/modules/abagonr_blue/also_purchased_products.php:15]
#4 include(/includes/modules/abagonr_blue/also_purchased_products.php) called at [/includes/templates/template_default/templates/tpl_modules_also_purchased_products.php:14]
#5 require(/includes/templates/template_default/templates/tpl_modules_also_purchased_products.php) called at [/includes/templates/abagonr_blue/templates/tpl_product_info_display.php:242]
#6 require(/includes/templates/abagonr_blue/templates/tpl_product_info_display.php) called at [/includes/modules/pages/product_info/main_template_vars.php:153]
#7 require(/includes/modules/pages/product_info/main_template_vars.php) called at [/includes/templates/abagonr_blue/common/tpl_main_page.php:113]
#8 require(/includes/templates/abagonr_blue/common/tpl_main_page.php) called at [/index.php:94]
--> PHP Warning: mysqli_query(): Empty query in /includes/classes/db/mysql/query_factory.php on line 44.

And so on it goes. I may just have to dump the Abagon template and go to the default responsive template for the moment to fix those errors.

28 Jul 2020, 3:33 PM
#25
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,906
Plugin Contributions:
23

Re: Some issues upgrading to 1.5.7: template display, min-order, t&c

Lance Turner:

And so on it goes. I may just have to dump the Abagon template and go to the default responsive template for the moment to fix those errors.
Certainly, switching to responsive_classic will let you know if the error goes away. And, unless you purchased the responsive version of aBagon, you will want to find a responsive template anyway.

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

29 Jul 2020, 1:00 PM
#26
lance_turner avatar

lance_turner

New Zenner

Join Date:
Jul 2016
Posts:
61
Plugin Contributions:
0

Re: Some issues upgrading to 1.5.7: template display, min-order, t&c

Yes, the Abagon template is the responsive version I bought 4 years back. When I get a chance, will flip it to the default template and clean that up and see how it goes.

30 Jul 2020, 3:25 AM
#27
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: Some issues upgrading to 1.5.7: template display, min-order, t&c

Lance Turner:

Yes, the Abagon template is the responsive version I bought 4 years back. When I get a chance, will flip it to the default template and clean that up and see how it goes.
If you're going to do things on your own, may I suggest comparing the template's version of file(s) to the ZC version of the same? There have been some underlying changes to things such obtaining random results from queries, ezpages, etc...

ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...

30 Jul 2020, 4:49 AM
#28
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,906
Plugin Contributions:
23

Re: Some issues upgrading to 1.5.7: template display, min-order, t&c

Lance Turner:

Yes, the Abagon template is the responsive version I bought 4 years back. When I get a chance, will flip it to the default template and clean that up and see how it goes.
I don't know how to say this any other way since the others didn't work. The part in red is part of your problem. To me, all of your problems are template-related with a template that is four years old and supposedly supports 1.3.8 thru 1.5#.

Simply go to Tools > Template Selection and select Responsive Classic Template. DO NOT do anything else but surf the store and see if the logs stop. If they do not, switch to Classic and see if they stop.

Not necessarily the steps I would take in troubleshooting but you seem to have a need to fix something in mid-stream versus giving the system a chance to let you really know what's going on. Therefore, I'm hesitant to really rely on what results you get with the responsive_classic. IF you haven't "cleaned that up", it might give us some valuable info.

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

1 Aug 2020, 4:45 AM
#29
lance_turner avatar

lance_turner

New Zenner

Join Date:
Jul 2016
Posts:
61
Plugin Contributions:
0

Re: Some issues upgrading to 1.5.7: template display, min-order, t&c

Sorry, by clean it up I meant remove the default text etc, not edit the php.

Haven't had a chance to look at this yet, some ongoing health issues at the moment so between 2 jobs and doc appointments and looking after a bunch of animals (we rescue), shop has had to take a back seat. Expect I will get to it sometime in the next few days/week/months.

8 Aug 2020, 1:52 AM
#30
lance_turner avatar

lance_turner

New Zenner

Join Date:
Jul 2016
Posts:
61
Plugin Contributions:
0

Re: Some issues upgrading to 1.5.7: template display, min-order, t&c

Okay, I found a few missing files, so uploading those fixed a couple of bugs, possibly the latest version of Filezilla is screwy, it seems to keep uploading files to nowhere if the connection drops in the middle of a transfer. Might have to go back a version or two.

One irritating issue was the product display page for each product was throwing up the error "WARNING: An Error occurred, please refresh the page and try again." and the rest of the page (footer and right column) were missing.

Logically, it was on the product display template (tpl_product_info_display.php) in the Abagon Blue template, so I simply removed blocks of code after where the error occurred and found the issue in the code below:

<!--bof also purchased products module--> <?php require($template->get_template_dir('tpl_modules_also_purchased_products.php', DIR_WS_TEMPLATE, $current_page_base,'templates'). '/' . 'tpl_modules_also_purchased_products.php');?> <!--eof also purchased products module-->

So, seems something in there is no longer valid on 1.5.7. I received no response from 12leaves, the maker of the template, I guess they expect you to keep buying new versions.

Anyway, that fixed the layout issues and the logging has mostly stopped except for the occasional complaint about deprecated methods in the minimum order qty module and a couple of others.

If anyone knows why the code above was causing so much grief, I would love to know, might help someone else too.

8 Aug 2020, 4:19 AM
#31
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,760
Plugin Contributions:
56

Re: Some issues upgrading to 1.5.7: template display, min-order, t&c

There is a bug in also purchased products in 1.5.7 - here's the fix:

https://github.com/zencart/zencart/pull/3848/files

That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.

8 Aug 2020, 9:43 AM
#32
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: Some issues upgrading to 1.5.7: template display, min-order, t&c

Lance Turner:

Okay, I found a few missing files, so uploading those fixed a couple of bugs, possibly the latest version of Filezilla is screwy, it seems to keep uploading files to nowhere if the connection drops in the middle of a transfer. Might have to go back a version or two.

One irritating issue was the product display page for each product was throwing up the error "WARNING: An Error occurred, please refresh the page and try again." and the rest of the page (footer and right column) were missing.

Logically, it was on the product display template (tpl_product_info_display.php) in the Abagon Blue template, so I simply removed blocks of code after where the error occurred and found the issue in the code below:

<!--bof also purchased products module--> <?php require($template->get_template_dir('tpl_modules_also_purchased_products.php', DIR_WS_TEMPLATE, $current_page_base,'templates'). '/' . 'tpl_modules_also_purchased_products.php');?> <!--eof also purchased products module-->

So, seems something in there is no longer valid on 1.5.7. I received no response from 12leaves, the maker of the template, I guess they expect you to keep buying new versions.

Anyway, that fixed the layout issues and the logging has mostly stopped except for the occasional complaint about deprecated methods in the minimum order qty module and a couple of others.

If anyone knows why the code above was causing so much grief, I would love to know, might help someone else too.

swguy:

There is a bug in also purchased products in 1.5.7 - here's the fix:

https://github.com/zencart/zencart/pull/3848/files
Broader solution and believe it has been stated a couple of times in here is to address the myDebug logs... if they are no longer being generated because the error logger is in some way disabled, then re-enable it. The logs provide the information to diagnose or at least to identify where to begin investigation. My apologies if the logs were reviewed and nothing was present, but that too is worth stating if it were so... yes the patch identified by swguy is needed and likely wouldn't just be "found" out of the blue, but please help forum members help you.

ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...

9 Aug 2020, 10:59 PM
#33
lance_turner avatar

lance_turner

New Zenner

Join Date:
Jul 2016
Posts:
61
Plugin Contributions:
0

Re: Some issues upgrading to 1.5.7: template display, min-order, t&c

swguy:

There is a bug in also purchased products in 1.5.7 - here's the fix:

Ok, thanks, I can live without it though, I think I had it turned off anyway, but it was just breaking the rest of the shop, am happy to leave the code out.

9 Aug 2020, 11:03 PM
#34
lance_turner avatar

lance_turner

New Zenner

Join Date:
Jul 2016
Posts:
61
Plugin Contributions:
0

Re: Some issues upgrading to 1.5.7: template display, min-order, t&c

mc12345678:

Broader solution and believe it has been stated a couple of times in here is to address the myDebug logs... if they are no longer being generated because the error logger is in some way disabled, then re-enable it. The logs provide the information to diagnose or at least to identify where to begin investigation. My apologies if the logs were reviewed and nothing was present, but that too is worth stating if it were so... yes the patch identified by swguy is needed and likely wouldn't just be "found" out of the blue, but please help forum members help you.

No, logger isn't disabled, all the errors and warnings have stopped since I removed the "also purchased" code. All I get now is deprecated methods logs, like this below, less than 1000 a day, much better than the 10K log files I was getting before.

[09-Aug-2020 23:00:59 UTC] PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; minimum_order_amount has a deprecated constructor in /includes/classes/observers/class.minimum_order_amount.php on line 15
[09-Aug-2020 23:00:59 UTC] PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; zen_categories_ul_generator has a deprecated constructor in /includes/classes/categories_ul_generator.php on line 24

21 Aug 2020, 12:26 PM
#35
lance_turner avatar

lance_turner

New Zenner

Join Date:
Jul 2016
Posts:
61
Plugin Contributions:
0

Re: Some issues upgrading to 1.5.7: template display, min-order, t&c

Discovered another bit of weirdness today. Went to copy (link, not duplicate) a product into another category and it appeared to copy, no errors but the product didn't appear in the new category. I checked the product and it was already in 3 categories, so this would have been its 4th. I tried another product that was only in 1 category and that linked fine. I tried another one, also already in 3 categories and again it wouldn't link.

So, tried the multiple categories link manager and that worked fine. So there might be a code bug somewhere in 1.5.7 that prevents a product being copied to more than 3 categories using the simple product copy system. Or, it could be a bit of weirdness unique to my store, who knows.

No warning or error logs appeared when the copies failed, btw.

21 Aug 2020, 1:16 PM
#36
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: Some issues upgrading to 1.5.7: template display, min-order, t&c

Lance Turner:

Discovered another bit of weirdness today. Went to copy (link, not duplicate) a product into another category and it appeared to copy, no errors but the product didn't appear in the new category. I checked the product and it was already in 3 categories, so this would have been its 4th. I tried another product that was only in 1 category and that linked fine. I tried another one, also already in 3 categories and again it wouldn't link.

So, tried the multiple categories link manager and that worked fine. So there might be a code bug somewhere in 1.5.7 that prevents a product being copied to more than 3 categories using the simple product copy system. Or, it could be a bit of weirdness unique to my store, who knows.

No warning or error logs appeared when the copies failed, btw.
Might want to subscribe to the thread referenced in this link. The item referenced by this link appears to relate, but may/may not resolve this issue: https://www.zen-cart.com/showthread.php?226872-Known-bugs-%28and-fixes%29-for-v1-5-7-series&p=1371755#post1371755

ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...

21 Aug 2020, 1:22 PM
#37
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: Some issues upgrading to 1.5.7: template display, min-order, t&c

Lance Turner:

No, logger isn't disabled, all the errors and warnings have stopped since I removed the "also purchased" code. All I get now is deprecated methods logs, like this below, less than 1000 a day, much better than the 10K log files I was getting before.

[09-Aug-2020 23:00:59 UTC] PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; minimum_order_amount has a deprecated constructor in /includes/classes/observers/class.minimum_order_amount.php on line 15
[09-Aug-2020 23:00:59 UTC] PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; zen_categories_ul_generator has a deprecated constructor in /includes/classes/categories_ul_generator.php on line 24

This appears to indicate that the file ncludes/classes/observers/class.minimum_order_amount.ph is not up-to-date with php 7.x standards/expectations. instead of a method (function) that has the same name as the class, it should instead be __construct

If there is specific code that called the method having the same name as the class, then an additional method (listed after the __construct (constructor) method can be added to perform operations needed of the class' method.

ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...

21 Aug 2020, 1:39 PM
#38
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,760
Plugin Contributions:
56

Re: Some issues upgrading to 1.5.7: template display, min-order, t&c

Fixing this kind of issue is described here:

https://docs.zen-cart.com/user/upgrading/php_warnings/

That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.

22 Aug 2020, 12:07 PM
#39
lance_turner avatar

lance_turner

New Zenner

Join Date:
Jul 2016
Posts:
61
Plugin Contributions:
0

Re: Some issues upgrading to 1.5.7: template display, min-order, t&c

mc12345678:

Might want to subscribe to the thread referenced in this link. The item referenced by this link appears to relate, but may/may not resolve this issue: https://www.zen-cart.com/showthread.php?226872-Known-bugs-%28and-fixes%29-for-v1-5-7-series&p=1371755#post1371755

Excellent, thanks, does seem related, might add that code and see if it fixes it.

19 Sep 2020, 7:47 AM
#40
mprough avatar

mprough

Totally Zenned

Join Date:
Nov 2007
Location:
Woodbine, Georgia, United States
Posts:
4,336
Plugin Contributions:
41

Re: Some issues upgrading to 1.5.7: template display, min-order, t&c

Lance Turner:

Also, there's a PCI compliance issue, how do I find someone to fix code without them having access to database data? They have to test the code, and that means an admin login to the shop, so there are legal issues to be considered, not sure how others get around that, or do they just take the risk?

PCI doesn't prevent you from hiring someone to fix things. You are required to limit their access to only what they need, create their own logins and delete them when the job is finished.