Zen Cart Logo
Forums / Addon Admin Tools / Super Orders v4.0 Support Thread for ZC v1.5.x

Super Orders v4.0 Support Thread for ZC v1.5.x

Sticky

Views: 172,103

Results 661 to 680 of 816
27 Oct 2018, 4:53 PM
#661
jeking avatar

jeking

Totally Zenned

Join Date:
Oct 2005
Location:
Chicago, IL USA
Posts:
1,592
Plugin Contributions:
0

Super Orders v4.0 Support Thread for ZC v1.5.x

Deno:

Apologies. I should have stated all that.

1.5.5f

PHP 7.1.23

No other plugins. Just that theme.

www.gep.co.uk/store/

The Super Orders available here is only compatible up to Zen Cart 1.5.1 and likely not compatible with PHP 7.x either.

7 Mar 2019, 4:01 PM
#662
zoloworld avatar

zoloworld

New Zenner

Join Date:
Jul 2011
Posts:
35
Plugin Contributions:
0

Re: Super Orders v4.0 Support Thread for ZC v1.5.x

Zen cart 1.5e

I installed this mod and I have noticed that the admin side is looking great, but the front end customer section is giving an issue. When the Customer logs in and goes to "My Account" section and clicks on "view", it comes up with a white screen.

The error log shows this [07-Mar-2019 15:47:25 UTC] PHP Fatal error: Cannot redeclare class order in /home/f4v2tpa9vpps/public_html/includes/classes/order.php on line 1117

I am unsure if i changed the admin side order.php
Would it give this message?

Thanks in advance.

7 Mar 2019, 5:08 PM
#663
zoloworld avatar

zoloworld

New Zenner

Join Date:
Jul 2011
Posts:
35
Plugin Contributions:
0

Re: Super Orders v4.0 Support Thread for ZC v1.5.x

Just went ahead and re-installed all the files and I have the back end admin working great. I still get the white screen and the log error message comes up as this now:

[07-Mar-2019 17:01:07 UTC] Request URI: /adminsection123/orders.php?page=1&oID=6364&action=edit, IP address: 68.81.65.173
#1 mysql_query() called at [/home/f4v2tpa9vpps/public_html/adminsection123/orders.php:1217]

[07-Mar-2019 17:01:07 UTC] PHP Warning: mysql_query(): Access denied for user 'f4v2tpa9vpps'@'localhost' (using password: NO) in /home/f4v2tpa9vpps/public_html/adminsection123/orders.php on line 1217
[07-Mar-2019 17:01:07 UTC] Request URI: /adminsection123/orders.php?page=1&oID=6364&action=edit, IP address: 68.81.65.173
#1 mysql_query() called at [/home/f4v2tpa9vpps/public_html/adminsection123/orders.php:1217]

[07-Mar-2019 17:01:07 UTC] PHP Warning: mysql_query(): A link to the server could not be established in /home/f4v2tpa9vpps/public_html/adminsection123/orders.php on line 1217
[07-Mar-2019 17:01:07 UTC] Request URI: /adminsection123/orders.php?page=1&oID=6364&action=edit, IP address: 68.81.65.173
#1 mysql_fetch_array() called at [/home/f4v2tpa9vpps/public_html/adminsection123/orders.php:1218]

[07-Mar-2019 17:01:07 UTC] PHP Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in /home/f4v2tpa9vpps/public_html/adminsection123/orders.php on line 1218

*adminsection123 is not the actual location for security purposes.

7 Mar 2019, 5:57 PM
#664
zoloworld avatar

zoloworld

New Zenner

Join Date:
Jul 2011
Posts:
35
Plugin Contributions:
0

Re: Super Orders v4.0 Support Thread for ZC v1.5.x

Now I cleaned up the file and the admin is coming up great with all the features. The customer front end now gives me this message:

[07-Mar-2019 17:53:47 UTC] PHP Fatal error: Cannot redeclare class order in includes/classes/order.php on line 1061

7 Mar 2019, 7:20 PM
#665
jeking avatar

jeking

Totally Zenned

Join Date:
Oct 2005
Location:
Chicago, IL USA
Posts:
1,592
Plugin Contributions:
0

Re: Super Orders v4.0 Support Thread for ZC v1.5.x

Zoloworld:

Now I cleaned up the file and the admin is coming up great with all the features. The customer front end now gives me this message:

[07-Mar-2019 17:53:47 UTC] PHP Fatal error: Cannot redeclare class order in includes/classes/order.php on line 1061

The plugin has not been updated since Zen Cart 1.5.1.

8 Mar 2019, 3:18 PM
#666
zoloworld avatar

zoloworld

New Zenner

Join Date:
Jul 2011
Posts:
35
Plugin Contributions:
0

Re: Super Orders v4.0 Support Thread for ZC v1.5.x

jeking:

The plugin has not been updated since Zen Cart 1.5.1.

Yikes. I was reading that it may have issues with earlier Zen Cart models. If i figure out what is causing this issue, I will update it here.

Just so everyone knows, if you have 1.5.5e, the admin side works flawlessly. If you have edit orders installed, this also works well as long as you tell the mod you are using it on the admin side. The issue you face is the customer side. When the customer goes to view previously purchased items, it brings up a blank white screen under the history.

The above error codes is what is seen when you look them up.

8 Mar 2019, 5:32 PM
#667
chuckphillips avatar

chuckphillips

Zen Follower

Join Date:
Sep 2012
Location:
Upstate South Carolina
Posts:
106
Plugin Contributions:
1

Re: Super Orders v4.0 Support Thread for ZC v1.5.x

Github has a Super Orders version that is updated to v1.5.4

9 Mar 2019, 8:59 AM
#668
design75 avatar

design75

Totally Zenned

Join Date:
Dec 2009
Location:
Amersfoort, The Netherlands
Posts:
2,862
Plugin Contributions:
5

Re: Super Orders v4.0 Support Thread for ZC v1.5.x

A blank page, means there is a debug file created. Look in your logs folder,and paste the contents of the file here in the thread.> Zoloworld:

Yikes. I was reading that it may have issues with earlier Zen Cart models. If i figure out what is causing this issue, I will update it here.

Just so everyone knows, if you have 1.5.5e, the admin side works flawlessly. If you have edit orders installed, this also works well as long as you tell the mod you are using it on the admin side. The issue you face is the customer side. When the customer goes to view previously purchased items, it brings up a blank white screen under the history.

The above error codes is what is seen when you look them up.

9 Mar 2019, 3:16 PM
#669
zoloworld avatar

zoloworld

New Zenner

Join Date:
Jul 2011
Posts:
35
Plugin Contributions:
0

Re: Super Orders v4.0 Support Thread for ZC v1.5.x

Design75:

A blank page, means there is a debug file created. Look in your logs folder,and paste the contents of the file here in the thread.

One error shows this: The error log shows this [07-Mar-2019 15:47:25 UTC] PHP Fatal error: Cannot redeclare class order in /home/f4v2tpa9vpps/public_html/includes/classes/order.php on line 1117

Then when i clear that and log in and go through the process I get this:

[07-Mar-2019 17:01:07 UTC] Request URI: /adminsection123/orders.php?page=1&oID=6364&action=edit, IP address: 68.81.65.173
#1 mysql_query() called at [/home/f4v2tpa9vpps/public_html/adminsection123/orders.php:1217]

[07-Mar-2019 17:01:07 UTC] PHP Warning: mysql_query(): Access denied for user 'f4v2tpa9vpps'@'localhost' (using password: NO) in /home/f4v2tpa9vpps/public_html/adminsection123/orders.php on line 1217
[07-Mar-2019 17:01:07 UTC] Request URI: /adminsection123/orders.php?page=1&oID=6364&action=edit, IP address: 68.81.65.173
#1 mysql_query() called at [/home/f4v2tpa9vpps/public_html/adminsection123/orders.php:1217]

[07-Mar-2019 17:01:07 UTC] PHP Warning: mysql_query(): A link to the server could not be established in /home/f4v2tpa9vpps/public_html/adminsection123/orders.php on line 1217
[07-Mar-2019 17:01:07 UTC] Request URI: /adminsection123/orders.php?page=1&oID=6364&action=edit, IP address: 68.81.65.173
#1 mysql_fetch_array() called at [/home/f4v2tpa9vpps/public_html/adminsection123/orders.php:1218]

[07-Mar-2019 17:01:07 UTC] PHP Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in /home/f4v2tpa9vpps/public_html/adminsection123/orders.php on line 1218

9 Mar 2019, 4:31 PM
#670
zoloworld avatar

zoloworld

New Zenner

Join Date:
Jul 2011
Posts:
35
Plugin Contributions:
0

Re: Super Orders v4.0 Support Thread for ZC v1.5.x

PHP Fatal error: Cannot redeclare class order in /home/f4v2tpa9vpps/public_html/includes/classes/order.php on line 1061

The real odd part I am not understanding is that 1061 is also the last line in the order.php

9 Mar 2019, 4:35 PM
#671
mc12345678 avatar

mc12345678

Totally Zenned

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

Re: Super Orders v4.0 Support Thread for ZC v1.5.x

The code being used is not updated to use ZC basic functions and/or is using mysql_ functions that have become deprecated. They should use mysqli_ related functions and/or call formatting if not using ZC functions.

Also, it is possible that in replacing files that somehow the order class is being called an additional time. If I recall, this was likely to happen if admin files were put into catalog locations.

9 Mar 2019, 4:43 PM
#672
zoloworld avatar

zoloworld

New Zenner

Join Date:
Jul 2011
Posts:
35
Plugin Contributions:
0

Re: Super Orders v4.0 Support Thread for ZC v1.5.x

i was doing some further research and found the error. As Dr. Byte always says, check the files for duplicate entries. I had a dupe entry at the account history folder. I searched out the line : require(DIR_WS_CLASSES . 'order.php') and found that there were a number of entries that had this. So yes, this mod works for 1.55e. I am doing some more research on this issue and will report back my findings.

9 Mar 2019, 4:47 PM
#673
zoloworld avatar

zoloworld

New Zenner

Join Date:
Jul 2011
Posts:
35
Plugin Contributions:
0

Re: Super Orders v4.0 Support Thread for ZC v1.5.x

mc12345678:

The code being used is not updated to use ZC basic functions and/or is using mysql_ functions that have become deprecated. They should use mysqli_ related functions and/or call formatting if not using ZC functions.

Also, it is possible that in replacing files that somehow the order class is being called an additional time. If I recall, this was likely to happen if admin files were put into catalog locations.

The largest issue with this mod is that you have to pay attention to the error, but also look at the address where the page is pointing. I noticed that the account history.php seemed to come up a number of times. I believe is was caused from having edit orders installed. As many would say on these threads, check for repeat files. It is easily overlooked.

9 Mar 2019, 5:03 PM
#674
zoloworld avatar

zoloworld

New Zenner

Join Date:
Jul 2011
Posts:
35
Plugin Contributions:
0

Re: Super Orders v4.0 Support Thread for ZC v1.5.x

Now I am trying to fix this next issue on the admin side. I dont understand why this is coming up as the back end is working.. well as far as I can see.

It is throwing this error message still:

[09-Mar-2019 16:56:30 UTC] Request URI: adminside/ orders.php?page=1&oID=6371&action=edit, IP address: 68.81.65.173
#1 mysql_query() called at [/home/f4v2tpa9vpps/public_html/adminside/orders.php:1217]

[09-Mar-2019 16:56:30 UTC] PHP Warning: mysql_query(): Access denied for user 'f4v2tpa9vpps'@'localhost' (using password: NO) in /home/f4v2tpa9vpps/public_html/adminside/orders.php on line 1217
[09-Mar-2019 16:56:30 UTC] Request URI: /adminside/orders.php?page=1&oID=6371&action=edit, IP address: 68.81.65.173
#1 mysql_query() called at [/home/f4v2tpa9vpps/public_html/adminside/orders.php:1217]

[09-Mar-2019 16:56:30 UTC] PHP Warning: mysql_query(): A link to the server could not be established in /home/f4v2tpa9vpps/public_html/adminside/orders.php on line 1217

9 Mar 2019, 5:12 PM
#675
zoloworld avatar

zoloworld

New Zenner

Join Date:
Jul 2011
Posts:
35
Plugin Contributions:
0

Re: Super Orders v4.0 Support Thread for ZC v1.5.x

Ok, this may have been an old log file as i cannot replicate it again. Everything is working on both sides. The admin side shows all the versatility of Super Orders 4.x and also I have Edit Orders installed. The customer end is also working correct and not throwing any codes.

9 Mar 2019, 6:18 PM
#676
design75 avatar

design75

Totally Zenned

Join Date:
Dec 2009
Location:
Amersfoort, The Netherlands
Posts:
2,862
Plugin Contributions:
5

Re: Super Orders v4.0 Support Thread for ZC v1.5.x

The mysql errors were resolve in the version on github years ago

9 Mar 2019, 7:57 PM
#677
zoloworld avatar

zoloworld

New Zenner

Join Date:
Jul 2011
Posts:
35
Plugin Contributions:
0

Re: Super Orders v4.0 Support Thread for ZC v1.5.x

Design75:

The mysql errors were resolve in the version on github years ago

I do not see that error anymore and I think it may have been part of the old code. Where is the github version located?

9 Mar 2019, 8:13 PM
#678
design75 avatar

design75

Totally Zenned

Join Date:
Dec 2009
Location:
Amersfoort, The Netherlands
Posts:
2,862
Plugin Contributions:
5

Re: Super Orders v4.0 Support Thread for ZC v1.5.x

https://github.com/DivaVocals/zen_SuperOrders

It may also have been corrected with the edit orders code

Zoloworld:

I do not see that error anymore and I think it may have been part of the old code. Where is the github version located?

9 Mar 2019, 8:37 PM
#679
zoloworld avatar

zoloworld

New Zenner

Join Date:
Jul 2011
Posts:
35
Plugin Contributions:
0

Re: Super Orders v4.0 Support Thread for ZC v1.5.x

Thank you and yes, I believe it was as well. One huge problem I think was that my Super Orders and Edit Orders mod was added to a template from template monster. There is a great deal of code written for earlier versions of Zen cart that is stock with their template. It functions properly, but throws all kinds of errors when you check the log. Each file has to be cleaned up to match the newest version.

9 Mar 2019, 8:39 PM
#680
zoloworld avatar

zoloworld

New Zenner

Join Date:
Jul 2011
Posts:
35
Plugin Contributions:
0

Re: Super Orders v4.0 Support Thread for ZC v1.5.x

BTW, I am loving this mod and should be something that is added out of the box to Zen cart. This definitely is something that makes life easier when having to do batch orders and modification.