Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Getting error when trying to delete an anonymous order

 
Reply
   X-Cart forums > X-Cart 5 > Dev Questions (X-Cart 5)
 
Thread Tools Search this Thread
  #1  
Old 06-02-2015, 12:55 PM
 
jack68938 jack68938 is offline
 

Advanced Member
  
Join Date: May 2015
Posts: 42
 

Default Getting error when trying to delete an anonymous order

Browser error:

ERROR: "Includes\ErrorHandler::FATAL_ERROR" (code 2)
Call to a member function getId() on a non-object

Log file error:

[02-Jun-2015 23:44:08 Europe/Paris] PHP Fatal error: Call to a member function getId() on a non-object in C:\wamp\www\xcart54\var\run\classes\XLite\Controll er\Admin\OrderList.php on line 331

[02-Jun-2015 23:44:08 Europe/Paris] PHP Stack trace:

[02-Jun-2015 23:44:08 Europe/Paris] PHP 1. {main}() C:\wamp\www\xcart54\admin.php:0

[02-Jun-2015 23:44:08 Europe/Paris] PHP 2. XLiteAbstract->processRequest() C:\wamp\www\xcart54\admin.php:39

[02-Jun-2015 23:44:08 Europe/Paris] PHP 3. XLiteAbstract->runController() C:\wamp\www\xcart54\var\run\classes\XLiteAbstract. php:515

[02-Jun-2015 23:44:08 Europe/Paris] PHP 4. XLite\Controller\Admin\AAdmin->handleRequest() C:\wamp\www\xcart54\var\run\classes\XLiteAbstract. php:490

[02-Jun-2015 23:44:08 Europe/Paris] PHP 5. XLite\Module\QSL\CloudSearch\Controller\AControlle r->handleRequest() C:\wamp\www\xcart54\var\run\classes\XLite\Controll er\Admin\AAdmin.php:140

[02-Jun-2015 23:44:08 Europe/Paris] PHP 6. XLite\Controller\AControllerAbstract->handleRequest() C:\wamp\www\xcart54\var\run\classes\XLite\Module\Q SL\CloudSearch\Controller\AController.php:49

[02-Jun-2015 23:44:08 Europe/Paris] PHP 7. XLite\Controller\AControllerAbstract->run() C:\wamp\www\xcart54\var\run\classes\XLite\Controll er\AControllerAbstract.php:504

[02-Jun-2015 23:44:08 Europe/Paris] PHP 8. XLite\Controller\Admin\AAdmin->callAction() C:\wamp\www\xcart54\var\run\classes\XLite\Controll er\AControllerAbstract.php:1304

[02-Jun-2015 23:44:08 Europe/Paris] PHP 9. XLite\Controller\AControllerAbstract->callAction() C:\wamp\www\xcart54\var\run\classes\XLite\Controll er\Admin\AAdmin.php:225

[02-Jun-2015 23:44:08 Europe/Paris] PHP 10. XLite\Controller\Admin\OrderList->doActionUpdate() C:\wamp\www\xcart54\var\run\classes\XLite\Controll er\AControllerAbstract.php:1285

[02-Jun-2015 23:44:08 Europe/Paris] PHP 11. XLite\Controller\Admin\OrderList->getOrdersChanges() C:\wamp\www\xcart54\var\run\classes\XLite\Controll er\Admin\OrderList.php:210

[02-Jun-2015 23:44:08] Error (code: 1): Call to a member function getId() on a non-object
Server API: apache2handler;
Request method: POST;
URI: /xcart54/admin.php?target=order_list;
Backtrace:
#0 Includes\ErrorHandler::logInfo() called at [C:\wamp\www\xcart54\Includes\ErrorHandler.php:332]
#1 Includes\ErrorHandler::handleError() called at [C:\wamp\www\xcart54\Includes\ErrorHandler.php:317]
#2 Includes\ErrorHandler::shutdown()
__________________
xCart 5.2.16
Reply With Quote
  #2  
Old 06-03-2015, 04:10 AM
  tony_sologubov's Avatar 
tony_sologubov tony_sologubov is offline
 

X-Cart team
  
Join Date: Jan 2009
Posts: 2,431
 

Default Re: Getting error when trying to delete an anonymous order

Just tried the same on 5.2.5 and did not get such error. Could you please try to upgrade your store and let me know if the problem is still there after that?

Thank you.
__________________
Found a bug in X-Cart? Post it to our bug tracker!
Know how to make X-Cart better? Suggest an idea!
Reply With Quote

The following user thanks tony_sologubov for this useful post:
jack68938 (06-04-2015)
  #3  
Old 06-03-2015, 06:51 AM
 
jack68938 jack68938 is offline
 

Advanced Member
  
Join Date: May 2015
Posts: 42
 

Default Re: Getting error when trying to delete an anonymous order

The upgrade did not fix the issue. It is happening on anonymous orders and registered orders.
__________________
xCart 5.2.16
Reply With Quote
  #4  
Old 06-04-2015, 11:48 AM
  qualiteam's Avatar 
qualiteam qualiteam is offline
 

X-Guru
  
Join Date: Dec 2010
Posts: 6,373
 

Default Re: Getting error when trying to delete an anonymous order

I have tried to reproduce the issue on my local 5.2.5 installation and don't see the problem too - I can delete orders and the error does not appear.

Did you contact our support staff at https://secure.x-cart.com/ ? They can debug the problem right on your server.
__________________
Alex Solovev,
Qualiteam

---

User manual Video tutorials X-Cart FAQ

You are welcome to press "Thanks" button
if you find this post useful

Click here to learn how to apply patches

X-Cart Extensions
Reply With Quote

The following user thanks qualiteam for this useful post:
jack68938 (06-04-2015)
  #5  
Old 06-04-2015, 11:58 AM
 
jack68938 jack68938 is offline
 

Advanced Member
  
Join Date: May 2015
Posts: 42
 

Default Re: Getting error when trying to delete an anonymous order

Ok, it looks like when the orders were imported the "payment_status_id" and "shipping_status_id" where switched to NULL. That is the reason for the error.
__________________
xCart 5.2.16
Reply With Quote
  #6  
Old 09-13-2015, 06:41 AM
 
Pooja Malpani Pooja Malpani is offline
 

Newbie
  
Join Date: Sep 2015
Posts: 3
 

Default Re: Getting error when trying to delete an anonymous order

An error occurred in your store.
ERROR: "Includes\ErrorHandler::FATAL_ERROR" (code 2)
Call to a member function getId() on a non-object

How did you fix it?
__________________
x-cart 5
Reply With Quote
  #7  
Old 09-14-2015, 12:26 AM
  qualiteam's Avatar 
qualiteam qualiteam is offline
 

X-Guru
  
Join Date: Dec 2010
Posts: 6,373
 

Default Re: Getting error when trying to delete an anonymous order

Quote:
Originally Posted by Pooja Malpani
An error occurred in your store.
ERROR: "Includes\ErrorHandler::FATAL_ERROR" (code 2)
Call to a member function getId() on a non-object

How did you fix it?

Please share the full text of the error message.
__________________
Alex Solovev,
Qualiteam

---

User manual Video tutorials X-Cart FAQ

You are welcome to press "Thanks" button
if you find this post useful

Click here to learn how to apply patches

X-Cart Extensions
Reply With Quote
Reply
   X-Cart forums > X-Cart 5 > Dev Questions (X-Cart 5)



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 08:54 PM.

   

 
X-Cart forums © 2001-2020