Fatal error: Call to undefined method ModelSaleOrder
38 posts
• Page 2 of 2 • 1, 2
Re: Fatal error: Call to undefined method ModelSaleOrder
Thanks very much for your input and the update on the xml file, the issue has been resolved and works now.
Regards and Thanks
Patrick.
Regards and Thanks
Patrick.
- airtagmedia
- Posts: 3
- Joined: Sun Jan 08, 2012 9:01 pm
Re: Fatal error: Call to undefined method ModelSaleOrder
straightlight wrote:Fixed. VQMod version ready. No core files modifications needed to install this fix as it is now cross-browsing compatible under PA-DSS Compliance and WCAG Compliance which the OC team didn't seem to have developed yet.
While the previous model fix above may had removed the error event issue on screen, the download header was not functioning correctly as without cross-browsing methodology when trying to download from the admin - > sales - > orders - > products tab on the left - > file name: filename.extension as a product option value file while the header being canceled to process the download. My fix should now handle all that. It also handles windows / linux, UNIX / MAC file path either from localhost or PCI Compliance servers.
I downloaded the VQMod file and added it to my xml folder.
Before fix I got this error :
Fatal error: Call to undefined method ModelSaleCustomer::getTotalTransactionsByOrderId() in .../WebTestKit/admin/controller/sale/order.php on line 1240
After fix I now get this error :
Fatal error: Call to undefined method ModelSaleCustomer::getTotalTransactionsByOrderId() in .../WebTestKit/vqmod/vqcache/vq2-admin_controller_sale_order.php on line 1240
Is this a bug needing attention or what? I am just going live with this new site (still in dev).
In fact my error is the same as this topic but I don't have the same circumstances.
All I want is to edit an order. In admin/sales/edit an order gives the above error.

www.HomesteadGeneralStore.com
-

HomesteadGenStore - Posts: 47
- Joined: Sat Jun 18, 2011 1:44 pm
- Location: Waco, Texas
Re: Fatal error: Call to undefined method ModelSaleOrder
Is this a bug needing attention or what? I am just going live with this new site (still in dev).
In fact my error is the same as this topic but I don't have the same circumstances.
When seeing errors that others doesn't seem to have, always disable all other XML files before stating on the forum if it's a bug needing attention or not. Rather looks to me like it's an XML conflict initialization rather than a bug since I can't reproduce this problem.
Regards,
Straightlight
Straightlight
- straightlight
- Posts: 1932
- Joined: Mon Nov 14, 2011 3:38 pm
- Location: Canada, ON
Re: Fatal error: Call to undefined method ModelSaleOrder
That was the first thing I did... I'm not a complete noob.
Not to mention the fact that several others report the same error under various circumstances.
Not to mention the fact that several others report the same error under various circumstances.

www.HomesteadGeneralStore.com
-

HomesteadGenStore - Posts: 47
- Joined: Sat Jun 18, 2011 1:44 pm
- Location: Waco, Texas
Re: Fatal error: Call to undefined method ModelSaleOrder
Reported by others under various circumstances which may be produced by different results since I obviously can't reproduce this problem. If this is the only XML file running, this particular problem should and cannot occur since I am able to download without problems right now.
Please post your WebTestKit/vqmod/vqcache/vq2-admin_controller_sale_order.php and your WebTestKit/admin/controller/sale/order.php file as an attachment and I will take a look at it.
Please post your WebTestKit/vqmod/vqcache/vq2-admin_controller_sale_order.php and your WebTestKit/admin/controller/sale/order.php file as an attachment and I will take a look at it.
Regards,
Straightlight
Straightlight
- straightlight
- Posts: 1932
- Joined: Mon Nov 14, 2011 3:38 pm
- Location: Canada, ON
Re: Fatal error: Call to undefined method ModelSaleOrder
I even restored this file from the current OC 1.5.1.3 thinking maybe I messed with it prior.
So the attached file is directly from my site and fresh from OC 1.5.1.3.1.zip
The way I understood the previous comments I could install your VQMod xml and I would not need to mod core files.
So the attached file is directly from my site and fresh from OC 1.5.1.3.1.zip
The way I understood the previous comments I could install your VQMod xml and I would not need to mod core files.
- Attachments
-
order.php- Default order.php from OC1.5.1.3.1.zip
- (79.34 KiB) Downloaded 43 times
Last edited by HomesteadGenStore on Sat Jan 28, 2012 3:01 pm, edited 1 time in total.

www.HomesteadGeneralStore.com
-

HomesteadGenStore - Posts: 47
- Joined: Sat Jun 18, 2011 1:44 pm
- Location: Waco, Texas
Re: Fatal error: Call to undefined method ModelSaleOrder
You've missed the vq2 cache file to upload as an attachment. I would need to see both versions and not uploaded from the ZIP file but rather from the one you're using currently on your site.
Regards,
Straightlight
Straightlight
- straightlight
- Posts: 1932
- Joined: Mon Nov 14, 2011 3:38 pm
- Location: Canada, ON
Re: Fatal error: Call to undefined method ModelSaleOrder
Here they are...
Any help is greatly appreciated. My site right now has all VQMod xml files removed except vqmod_opencart.xml and admin_product_option_download_fix.xml. In fact, some features do not work because of the missing xml files.
Also, I use a custom template. I don't know if that matters, but I checked with default and same problem as above.
Let me know what else you may need...
Any help is greatly appreciated. My site right now has all VQMod xml files removed except vqmod_opencart.xml and admin_product_option_download_fix.xml. In fact, some features do not work because of the missing xml files.
Also, I use a custom template. I don't know if that matters, but I checked with default and same problem as above.
Let me know what else you may need...
- Attachments
-
vq2-admin_model_sale_order.php- (30.37 KiB) Downloaded 45 times
-
vq2-admin_controller_sale_order.php- (81.91 KiB) Downloaded 53 times
-
order.php- (79.34 KiB) Downloaded 49 times
Last edited by HomesteadGenStore on Sat Jan 28, 2012 6:43 pm, edited 1 time in total.

www.HomesteadGeneralStore.com
-

HomesteadGenStore - Posts: 47
- Joined: Sat Jun 18, 2011 1:44 pm
- Location: Waco, Texas
Re: Fatal error: Call to undefined method ModelSaleOrder
Yes, can you upload your admin/model/sale/customer.php file as well (simply by editing the post above would be fine if possible) ?
Regards,
Straightlight
Straightlight
- straightlight
- Posts: 1932
- Joined: Mon Nov 14, 2011 3:38 pm
- Location: Canada, ON
Re: Fatal error: Call to undefined method ModelSaleOrder
Only 3 files can be attached to a message.
Here is the next file:
Here is the next file:
- Attachments
-
customer.php- (22.42 KiB) Downloaded 45 times

www.HomesteadGeneralStore.com
-

HomesteadGenStore - Posts: 47
- Joined: Sat Jun 18, 2011 1:44 pm
- Location: Waco, Texas
Re: Fatal error: Call to undefined method ModelSaleOrder
When I do a search for this method within your customer.php model file: getTotalTransactionsByOrderId, no method can be found which means it is missing.
Regards,
Straightlight
Straightlight
- straightlight
- Posts: 1932
- Joined: Mon Nov 14, 2011 3:38 pm
- Location: Canada, ON
Re: Fatal error: Call to undefined method ModelSaleOrder
I restored this file from OC1513.zip and now it works...?
What would have edited this file? This is a new install of OC with a custom template and a few modules.
All the modules I have installed say they do not overwrite core files and use VQMod...
I suppose one of them did though.
Do I still need your admin_product_option_download_fix.xml? I don't use downloads.
What would have edited this file? This is a new install of OC with a custom template and a few modules.
All the modules I have installed say they do not overwrite core files and use VQMod...
I suppose one of them did though.
Do I still need your admin_product_option_download_fix.xml? I don't use downloads.

www.HomesteadGeneralStore.com
-

HomesteadGenStore - Posts: 47
- Joined: Sat Jun 18, 2011 1:44 pm
- Location: Waco, Texas
Re: Fatal error: Call to undefined method ModelSaleOrder
HomesteadGenStore wrote:I restored this file from OC1513.zip and now it works...?
What would have edited this file? This is a new install of OC with a custom template and a few modules.
All the modules I have installed say they do not overwrite core files and use VQMod...
I suppose one of them did though.
Do I still need your admin_product_option_download_fix.xml? I don't use downloads.
VQMod can be full of surprises even though it may or may not come from fresh installation files sometimes.

As for the XML file, only download it if you do need the downloads though. If you don't need it at all, logically, you don't need it period.
Regards,
Straightlight
Straightlight
- straightlight
- Posts: 1932
- Joined: Mon Nov 14, 2011 3:38 pm
- Location: Canada, ON
Re: Fatal error: Call to undefined method ModelSaleOrder
You help has been invaluable! Thank You.

www.HomesteadGeneralStore.com
-

HomesteadGenStore - Posts: 47
- Joined: Sat Jun 18, 2011 1:44 pm
- Location: Waco, Texas
Re: Fatal error: Call to undefined method ModelSaleOrder
worked a treat on my shop showing that error
many thanks straight light for the VQMod
many thanks straight light for the VQMod

- smitch6
- Posts: 155
- Joined: Sat Sep 17, 2011 6:46 am
Re: Fatal error: Call to undefined method ModelSaleOrder
Post updated: viewtopic.php?f=161&t=42888&p=237517#p237517
Users who are using v1.5.2.1 of OpenCart (and probably above) and also for those who has a 'Cannot Redeclare getOrderOption()' error. Download the ended prefix of: 1_5_2_1.xml file if the case.
Users who are using v1.5.2.1 of OpenCart (and probably above) and also for those who has a 'Cannot Redeclare getOrderOption()' error. Download the ended prefix of: 1_5_2_1.xml file if the case.
Regards,
Straightlight
Straightlight
- straightlight
- Posts: 1932
- Joined: Mon Nov 14, 2011 3:38 pm
- Location: Canada, ON
Re: Fatal error: Call to undefined method ModelSaleOrder
is this stil an issue?
opencart 1.5.4.1
thanks
opencart 1.5.4.1
thanks
- scanreg
- Posts: 605
- Joined: Wed May 05, 2010 4:15 pm
Re: Fatal error: Call to undefined method ModelSaleOrder
is this stil an issue?
opencart 1.5.4.1
thanks
Still ? Please, elaborate. My latest update above was posted sometime ago but no one did reported additional issues afterwards.
Regards,
Straightlight
Straightlight
- straightlight
- Posts: 1932
- Joined: Mon Nov 14, 2011 3:38 pm
- Location: Canada, ON
38 posts
• Page 2 of 2 • 1, 2
Who is online
Users browsing this forum: Google [Bot] and 10 guests













