Community Forums

Fatal error: Call to undefined method ModelSaleOrder

Bug reports here

Re: Fatal error: Call to undefined method ModelSaleOrder

Postby airtagmedia » Mon Jan 09, 2012 2:19 am

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.
airtagmedia
 
Posts: 3
Joined: Sun Jan 08, 2012 9:01 pm

Re: Fatal error: Call to undefined method ModelSaleOrder

Postby HomesteadGenStore » Sat Jan 28, 2012 1:24 am

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.
Image
www.HomesteadGeneralStore.com
User avatar
HomesteadGenStore
 
Posts: 47
Joined: Sat Jun 18, 2011 1:44 pm
Location: Waco, Texas

Re: Fatal error: Call to undefined method ModelSaleOrder

Postby straightlight » Sat Jan 28, 2012 1:40 pm

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
 
Posts: 1932
Joined: Mon Nov 14, 2011 3:38 pm
Location: Canada, ON

Re: Fatal error: Call to undefined method ModelSaleOrder

Postby HomesteadGenStore » Sat Jan 28, 2012 2:35 pm

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.
Image
www.HomesteadGeneralStore.com
User avatar
HomesteadGenStore
 
Posts: 47
Joined: Sat Jun 18, 2011 1:44 pm
Location: Waco, Texas

Re: Fatal error: Call to undefined method ModelSaleOrder

Postby straightlight » Sat Jan 28, 2012 2:51 pm

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.
Regards,
Straightlight
straightlight
 
Posts: 1932
Joined: Mon Nov 14, 2011 3:38 pm
Location: Canada, ON

Re: Fatal error: Call to undefined method ModelSaleOrder

Postby HomesteadGenStore » Sat Jan 28, 2012 2:58 pm

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.
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.
Image
www.HomesteadGeneralStore.com
User avatar
HomesteadGenStore
 
Posts: 47
Joined: Sat Jun 18, 2011 1:44 pm
Location: Waco, Texas

Re: Fatal error: Call to undefined method ModelSaleOrder

Postby straightlight » Sat Jan 28, 2012 3:00 pm

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
 
Posts: 1932
Joined: Mon Nov 14, 2011 3:38 pm
Location: Canada, ON

Re: Fatal error: Call to undefined method ModelSaleOrder

Postby HomesteadGenStore » Sat Jan 28, 2012 3:11 pm

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...
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.
Image
www.HomesteadGeneralStore.com
User avatar
HomesteadGenStore
 
Posts: 47
Joined: Sat Jun 18, 2011 1:44 pm
Location: Waco, Texas

Re: Fatal error: Call to undefined method ModelSaleOrder

Postby straightlight » Sat Jan 28, 2012 3:15 pm

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
 
Posts: 1932
Joined: Mon Nov 14, 2011 3:38 pm
Location: Canada, ON

Re: Fatal error: Call to undefined method ModelSaleOrder

Postby HomesteadGenStore » Sat Jan 28, 2012 6:44 pm

Only 3 files can be attached to a message.
Here is the next file:
Attachments
customer.php
(22.42 KiB) Downloaded 45 times
Image
www.HomesteadGeneralStore.com
User avatar
HomesteadGenStore
 
Posts: 47
Joined: Sat Jun 18, 2011 1:44 pm
Location: Waco, Texas

Re: Fatal error: Call to undefined method ModelSaleOrder

Postby straightlight » Sat Jan 28, 2012 6:47 pm

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
 
Posts: 1932
Joined: Mon Nov 14, 2011 3:38 pm
Location: Canada, ON

Re: Fatal error: Call to undefined method ModelSaleOrder

Postby HomesteadGenStore » Sat Jan 28, 2012 7:10 pm

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.
Image
www.HomesteadGeneralStore.com
User avatar
HomesteadGenStore
 
Posts: 47
Joined: Sat Jun 18, 2011 1:44 pm
Location: Waco, Texas

Re: Fatal error: Call to undefined method ModelSaleOrder

Postby straightlight » Sat Jan 28, 2012 7:21 pm

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
 
Posts: 1932
Joined: Mon Nov 14, 2011 3:38 pm
Location: Canada, ON

Re: Fatal error: Call to undefined method ModelSaleOrder

Postby HomesteadGenStore » Sat Jan 28, 2012 7:35 pm

You help has been invaluable! Thank You.
Image
www.HomesteadGeneralStore.com
User avatar
HomesteadGenStore
 
Posts: 47
Joined: Sat Jun 18, 2011 1:44 pm
Location: Waco, Texas

Re: Fatal error: Call to undefined method ModelSaleOrder

Postby smitch6 » Sun Feb 12, 2012 4:17 pm

worked a treat on my shop showing that error

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

Postby straightlight » Sat Mar 17, 2012 5:35 pm

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.
Regards,
Straightlight
straightlight
 
Posts: 1932
Joined: Mon Nov 14, 2011 3:38 pm
Location: Canada, ON

Re: Fatal error: Call to undefined method ModelSaleOrder

Postby scanreg » Thu Dec 20, 2012 1:58 pm

is this stil an issue?

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

Postby straightlight » Thu Dec 20, 2012 2:11 pm

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
 
Posts: 1932
Joined: Mon Nov 14, 2011 3:38 pm
Location: Canada, ON

Previous

Return to Bug Reports

Who is online

Users browsing this forum: Google [Bot] and 10 guests

Hosted by Arvixe Web Hosting