Jump to content

Universal payment 500 Error


scottray1970

Recommended Posts

I've tried to set up a cash on collection payment method using the universalpay module but I keep getting a 500 error 'Oops something went wrong' and I can't figure out the problem. The code below is what I receive having turned on error reporting. Unfortunately I don't know enough about this to know what course of action I should take.

 

[PrestaShopException]

Can't load Order status

at line 156 in file classes/PaymentModule.php

150. 		if (Configuration::get('PS_TAX_ADDRESS_TYPE') == 'id_address_delivery')151. 			$context_country = $this->context->country;152. 153. 		$order_status = new OrderState((int)$id_order_state, (int)$this->context->language->id);154. 		if (!Validate::isLoadedObject($order_status))155. 			throw new PrestaShopException('Can\'t load Order status');156. 157. 		if (!$this->active)158. 			die(Tools::displayError());159. 		// Does order already exists ?160. 		if (Validate::isLoadedObject($this->context->cart) && $this->context->cart->OrderExists() == false)
  • PaymentModuleCore->validateOrder - [line 41 - modules/universalpay/controllers/front/validation.php] - [9 Arguments]
  • universalpayValidationModuleFrontController->postProcess - [line 171 - classes/controller/Controller.php]
  • ControllerCore->run - [line 373 - classes/Dispatcher.php]
  • DispatcherCore->dispatch - [line 28 - index.php]
  • PaymentModuleCore->validateOrder - [line 41 - modules/universalpay/controllers/front/validation.php] - [9 Arguments]

    35. 			return ;36. 37. 		$mailVars = array(38. 			'{paysistem_name}' => $paysistem->name39. 		);40. 		$this->module->validateOrder((int)$cart->id, $paysistem->id_order_state, $total, $paysistem->name, NULL, $mailVars, (int)$currency->id, false, $customer->secure_key);41. 		if($paysistem->description_success)42. 		{43. 			$order=new Order($this->module->currentOrder);44. 			$description_success=str_replace(45. 				array('%total%', '%order_number%'),
  • universalpayValidationModuleFrontController->postProcess - [line 171 - classes/controller/Controller.php]

    165. 			// setMedia MUST be called before postProcess166. 			if (!$this->content_only && ($this->display_header || (isset($this->className) && $this->className)))167. 				$this->setMedia();168. 169. 			// postProcess handles ajaxProcess170. 			$this->postProcess();171. 172. 			if (!empty($this->redirect_after))173. 				$this->redirect();174. 175. 			if (!$this->content_only && ($this->display_header || (isset($this->className) && $this->className)))
  • ControllerCore->run - [line 373 - classes/Dispatcher.php]

    367. 			// Execute hook dispatcher368. 			if (isset($params_hook_action_dispatcher))369. 				Hook::exec('actionDispatcher', $params_hook_action_dispatcher);370. 371. 			// Running controller372. 			$controller->run();373. 		}374. 		catch (PrestaShopException $e)375. 		{376. 			$e->displayMessage();377. 		}
  • DispatcherCore->dispatch - [line 28 - index.php]

    22. *  @license    http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)23. *  International Registered Trademark & Property of PrestaShop SA24. */25. 26. require(dirname(__FILE__).'/config/config.inc.php');27. Dispatcher::getInstance()->dispatch();

I'm not sure if these require changing or whether I need to set up something else within the modules in order to trigger the right arguements and values.

 

Any help would be gratefully appreciated.

Link to comment
Share on other sites

  • 2 weeks later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...