Results 1 to 9 of 9
  1. #1
    Join Date
    Mar 2007
    Posts
    1
    Plugin Contributions
    0

    Default 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

  2. #2
    Join Date
    Sep 2006
    Posts
    61
    Plugin Contributions
    0

    Default 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

  3. #3
    Join Date
    Jan 2007
    Posts
    11
    Plugin Contributions
    0

    Default 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!

  4. #4
    Join Date
    Jan 2007
    Posts
    1,483
    Plugin Contributions
    10

    Default 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:

    Code:
    $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

  5. #5
    Join Date
    Jan 2007
    Posts
    1,483
    Plugin Contributions
    10

    Default Re: Edit Orders PHP error

    Quote Originally Posted by lankeeyankee View Post
    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:

    Code:
    $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.

  6. #6
    Join Date
    May 2005
    Posts
    82
    Plugin Contributions
    0

    Default Re: Edit Orders PHP error


  7. #7
    Join Date
    Jun 2007
    Posts
    81
    Plugin Contributions
    0

    Default 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

  8. #8

    Default Re: Edit Orders PHP error

    Try upgrading to the newest version 1.51:

    http://www.zen-cart.com/index.php?ma...roducts_id=444

    Enjoy!

 

 

Similar Threads

  1. v154 Edit order (orders.php) is blank after upgrade from 1.3.9h to 1.5.4
    By gti_suzuki in forum Upgrading to 1.5.x
    Replies: 11
    Last Post: 16 Feb 2015, 05:45 PM
  2. Edit Orders addon: PHP Warning: asort() expects parameter 1 to be array
    By dutchy in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 26 Aug 2010, 08:42 PM
  3. Edit Orders Installation Error
    By hossbronco in forum All Other Contributions/Addons
    Replies: 2
    Last Post: 12 Dec 2008, 07:29 AM
  4. for stock, edit orders.php
    By Chell in forum Managing Customers and Orders
    Replies: 0
    Last Post: 16 Dec 2007, 03:07 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg