Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Admin Order Invoice Error


Guest

Recommended Posts

Everytime when I go look at my orders in the admin panel and then i select either "invoice" or "packing slip" I get the following errors.

 

Fatal error: Cannot instantiate non-existent class: order in /home/streetfl/public_html/catalog/admin/packingslip.php on line 22

 

Fatal error: Cannot instantiate non-existent class: order in /home/streetfl/public_html/catalog/admin/invoice.php on line 22

 

How can i go about fixing this, I dont wanna mess around with it to much and make matters worse.

 

Thanks for the help

Link to comment
Share on other sites

In both files the code is:

  include(DIR_WS_CLASSES . 'order.php');

 $order = new order($oID);

 

So somehow you have muffed-up your admin/includes/classes/order.php file. Have you recently installed a contribution that dealt with the admin side? Is it possible you accidentally uploaded a version of admin/orders.php to admin/includes/classes/order.php? I know I have accidentally done that one before and vice-versa. If you want post your code for your admin/includes/classes/order.php file here as it is a short file anyway.

Link to comment
Share on other sites

well you fixed the problem hehe, i just went to go download the order.php file from my server and when i opened it to copy it on here i found out the file was empty, so i reistalled that file from a backup and it works, i have no idea how the file got empty though, ill try it a few more times and see it if still works

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...