Forums / All Other Contributions/Addons / Edit Orders PHP error

Edit Orders PHP error

Locked
Results 1 to 8 of 8
This thread is locked. New replies are disabled.
01 Mar 2007, 01:58
#1
gary_maynard avatar

gary_maynard

New Zenner

Join Date:
Mar 2007
Posts:
1
Plugin Contributions:
0

Edit Orders PHP error

I have installed the newest version of Edit Orders Modified Feb 15, 2007.

I am receiving the following PHP error when I try to edit an order.

[Wed Feb 28 20:11:40 2007] [error] [client 10.2.1.10] PHP Parse error: syntax error, unexpected $end in C:\\Program Files\\Apache Software Foundation\\Apache2.2\\htdocs\\ZenCart\\admin\\edit_orders.php on line 1315, referer: orders.php

Has anyone seen this issue with Edit_orders.php?

Gary
14 Aug 2007, 21:15
#2
pdprenty avatar

pdprenty

New Zenner

Join Date:
Sep 2006
Posts:
58
Plugin Contributions:
0

Re: Edit Orders PHP error

I guess you can do what Ronnie said, but it is better to actually fix your file.

Your error message says:

in the file: ZenCart\\admin\\edi t_orders.php, on line 1315 there is an extra "$end"

In the installation instructions of edit order it told you to edit that file. Either the information you added was incorrect or you didn't replace all of the information it told you to. I would suggest that it wasn't the information.

I would go through the instructions again and see if you either replaced too much information or didn't add the entire.... I guess you could call it as argument.

hth, Pat
14 Sep 2007, 15:19
#3
gst avatar

gst

New Zenner

Join Date:
Jan 2007
Posts:
11
Plugin Contributions:
0

Re: Edit Orders PHP error

Hi,

I struggled a couple of hours with the same problem. I finally discovered that you have to change all the open php-tags "<?" to "<?php" in edit_orders.php.
(Or the other way around as long as it is consistent throughout the document).

Using the find or find and replace function in your htmleditor makes this operation rather easy.

Hopefully this will help you! Good Luck! :smile:
14 Sep 2007, 19:39
#4
lankeeyankee avatar

lankeeyankee

Totally Zenned

Join Date:
Jan 2007
Posts:
1,514
Plugin Contributions:
1

Re: Edit Orders PHP error

I get this error when using Edit Orders:

Cannot use object of type queryFactoryResult as array in C:\Program Files\xampp\htdocs\drumshop\admin\edit_orders.php on line 185

Line 185 is:

$email = STORE_NAME . "\n" . EMAIL_SEPARATOR . "\n" . EMAIL_TEXT_ORDER_NUMBER . ' ' . $oID . "\n" . EMAIL_TEXT_INVOICE_URL . ' ' . zen_catalog_href_link(FILENAME_CATALOG_ACCOUNT_HISTORY_INFO, 'order_id=' . $oID, 'SSL') . "\n" . EMAIL_TEXT_DATE_ORDERED . ' ' . zen_date_long($check_status['date_purchased']) . "\n\n" . $notify_comments . sprintf(EMAIL_TEXT_STATUS_UPDATE, $orders_status_array[$status]);


Can anyone tell me how to fix this?

Thanks!

Matt
14 Sep 2007, 20:14
#5
lankeeyankee avatar

lankeeyankee

Totally Zenned

Join Date:
Jan 2007
Posts:
1,514
Plugin Contributions:
1

Re: Edit Orders PHP error

lankeeyankee:

I get this error when using Edit Orders:

Cannot use object of type queryFactoryResult as array in C:\Program Files\xampp\htdocs\drumshop\admin\edit_orders.php on line 185

Line 185 is:

$email = STORE_NAME . "\n" . EMAIL_SEPARATOR . "\n" . EMAIL_TEXT_ORDER_NUMBER . ' ' . $oID . "\n" . EMAIL_TEXT_INVOICE_URL . ' ' . zen_catalog_href_link(FILENAME_CATALOG_ACCOUNT_HISTORY_INFO, 'order_id=' . $oID, 'SSL') . "\n" . EMAIL_TEXT_DATE_ORDERED . ' ' . zen_date_long($check_status['date_purchased']) . "\n\n" . $notify_comments . sprintf(EMAIL_TEXT_STATUS_UPDATE, $orders_status_array[$status]);


Can anyone tell me how to fix this?

Thanks!

Matt


After playing around with Edit Orders I see that this error seems to only occur when changing the order status with notify customer selected.
06 Jul 2008, 06:05
#7
raquelann avatar

raquelann

New Zenner

Join Date:
Jun 2007
Posts:
80
Plugin Contributions:
0

Re: Edit Orders PHP error

I'm also getting a parse error with Edit Orders. The error is:
Parse error: syntax error, unexpected ',' in /home/pet5079/public_html/oddsnsods/admin/orders.php on line 849
Using Firefox with Firebug I looked at this line but could not see what the problem is....
I copied everything over exactly as described - but ???? Is anyone able to shed some light.
Thanks
Raquel
Odds 'n' Sods For Re-enactors
www.oddsnsods.com.au