Zen Cart Logo
Forums / General Questions / Help! My orders wont update!

Help! My orders wont update!

Locked

Views: 995

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
24 Apr 2008, 12:15 PM
#1
gourmets avatar

gourmets

New Zenner

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

Help! My orders wont update!

Upon trying to update an order to processing, delivered or update and apply comments, I receive the following error:

Fatal error: Cannot use object of type queryFactoryResult as array in /home/gourmets/public_html/admin/edit_orders.php on line 185

The edit order page also will not update at the bottom in the table to show the new update or the comments.

In the edit_orders.php file, lines 185-189 say this:

$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]);
zen_mail($check_status['customers_name'], $check_status['customers_email_address'], EMAIL_TEXT_SUBJECT, $email, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS);
$customer_notified = '1';
}

I do have the edit orders mod installed so I dont know if that is affecting things or not, but unfortunately I screwed up when I installed it and accidentally overwrote the core file instead of the override, so I cant just easily uninstall it.

Can anyone help me with this problem? It's affecting customers being notified of their order updates or being able to login and get their order status! Thanks!

24 Apr 2008, 2:38 PM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Help! My orders wont update!

I do have the edit orders mod installed so I dont know if that is affecting things or not, but unfortunately I screwed up when I installed it and accidentally overwrote the core file instead of the override, so I cant just easily uninstall it.
Replace the original file from a distribution of the same version as you are using after moving yours to an overide dir

You can then check if this is the issue by switching to the classic template

If so compare the mod file to the core file for version(date inside the file) and maybe merge if an update is necessary.

If not check the mod support thread if there is one

21 May 2008, 8:21 PM
#3
zep avatar

zep

New Zenner

Join Date:
Feb 2008
Posts:
29
Plugin Contributions:
0

Re: Help! My orders wont update!

I get the exact same error, and have not found a solution in any threads, any other ideas for troubleshooting this issue (zen 1.7, edit orders mod, PHP5, mysql 5)?