Jump to content

500 Server Error when confirm order. (COD+)


Recommended Posts

Hello everyone,

Im facing a serious problem and cant solve it so asking for help since site is online ... www.ecopharma.gr

*edit : USING PS 1.6
 

I buy and install this module : http://prestahost.eu/prestashop-modules/en/home/8-cash-on-delivery-plus-for-prestashop.html#/verse-advanced/verse-1_6

and make an order by selecting COD+ , in last step where ask to confirm order, when i press it throw me 500 SERVER ERROR .
I read the forum i try different solutions and still nothing happens .

 

NOTE : At BackOffice->Order->statuses there are entries and ID's start from 1 and going etc.
image : http://i.imgur.com/2HNc0p7.jpg?1

 

NOTE : when i try set permissions to 755 at module folder via Filezilla i recieve this :

Status:    Set permissions of '/modules/cashondeliveryplus' to '755'
Command:    SITE CHMOD 755 cashondeliveryplus
Response:    500 'SITE': command not understood

 

So i enable debug, and here is the log :
 

Can't load Order state status
at line 239 in file modules/cashondeliveryplus/cashondeliveryplus.php

234.         if (Configuration::get('PS_TAX_ADDRESS_TYPE') == 'id_address_delivery')235.             $context_country = $this->context->country;236. 237.         $order_status = new OrderState((int)$id_order_state, (int)$this->context->language->id);238.         if (!Validate::isLoadedObject($order_status))239.             throw new PrestaShopException('Can\'t load Order state status');240. 241.         if (!$this->active)242.             die(Tools::displayError());243.         // Does order already exists ?244.         if (Validate::isLoadedObject($this->context->cart) && $this->context->cart->OrderExists() == false)

CashOnDeliveryplus->validateOrder - [line 45 - modules/cashondeliveryplus/controllers/front/validation.php] - [9 Arguments]

40. 41. 		if (Tools::getValue('confirm'))42. 		{43. 			$customer = new Customer((int)$this->context->cart->id_customer);44. 			$total = $this->context->cart->getOrderTotal(true, Cart::BOTH)+ Tools::convertPrice($this->getDobirecne());45. 			$this->module->validateOrder((int)$this->context->cart->id, Configuration::get('OS_COD_PREPARATION'), $total, $this->module->displayName, null, array(), null, false, $customer->secure_key);46. 			Tools::redirectLink(__PS_BASE_URI__.'order-confirmation.php?key='.$customer->secure_key.'&id_cart='.(int)$this->context->cart->id.'&id_module='.(int)$this->module->id.'&id_order='.(int)$this->module->currentOrder);47. 		}48. 	}49. 50. 	/**

 

 

  • CashondeliveryplusValidationModuleFrontController->postProcess - [line 171 - classes/controller/Controller.php]
    166. 			// setMedia MUST be called before postProcess167. 			if (!$this->content_only && ($this->display_header || (isset($this->className) && $this->className)))168. 				$this->setMedia();169. 170. 			// postProcess handles ajaxProcess171. 			$this->postProcess();172. 173. 			if (!empty($this->redirect_after))174. 				$this->redirect();175. 176. 			if (!$this->content_only && ($this->display_header || (isset($this->className) && $this->className)))

 

  • ControllerCore->run - [line 373 - classes/Dispatcher.php]
    368. 			// Execute hook dispatcher369. 			if (isset($params_hook_action_dispatcher))370. 				Hook::exec('actionDispatcher', $params_hook_action_dispatcher);371. 372. 			// Running controller373. 			$controller->run();374. 		}375. 		catch (PrestaShopException $e)376. 		{377. 			$e->displayMessage();378. 		}

 

  • DispatcherCore->dispatch - [line 28 - index.php]
    23. *  @license    http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)24. *  International Registered Trademark & Property of PrestaShop SA25. */26. 27. require(dirname(__FILE__).'/config/config.inc.php');28. Dispatcher::getInstance()->dispatch();

 

Can you help me please ?

Edited by Veni. (see edit history)
Link to comment
Share on other sites

Update :

The developer reply back finally .
Solution was to write a new entry in order_statuses on BO .... dumb solution but now is OK fixed ..
So if anyone had similar problem, have to add a new order status (for my example is id 14) between PS (id's 1-13 to me) and COD (id's 15-16) status

  • Like 1
Link to comment
Share on other sites

×
×
  • Create New...