Jump to content

Bankwire module Last step Error 500


Recommended Posts

Hello everyone,

I have a problem on my prestashop 1.606.  On the last step to confirm orders, it throws a Server 500 error.  I was able to change the defines.ini.php file and it gave me this info.  I just hope any of you guys can help me fix it.  Thank you for all your help.

 

[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 64 - modules/bankwire/controllers/front/validation.php] - [9 Arguments]
    58. 			'{bankwire_owner}' => Configuration::get('BANK_WIRE_OWNER'),59. 			'{bankwire_details}' => nl2br(Configuration::get('BANK_WIRE_DETAILS')),60. 			'{bankwire_address}' => nl2br(Configuration::get('BANK_WIRE_ADDRESS'))61. 		);62. 63. 		$this->module->validateOrder($cart->id, Configuration::get('PS_OS_BANKWIRE'), $total, $this->module->displayName, NULL, $mailVars, (int)$currency->id, false, $customer->secure_key);64. 		Tools::redirect('index.php?controller=order-confirmation&id_cart='.$cart->id.'&id_module='.$this->module->id.'&id_order='.$this->module->currentOrder.'&key='.$customer->secure_key);65. 	}66. }
  • BankwireValidationModuleFrontController->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();

 

Link to comment
Share on other sites

If it is helpful, I am comming from a 1.5.8 version and I updated the shop with the one click upgrade, do you guys think that would be the problem???  I have not installed anything else but the carrier module.

Link to comment
Share on other sites

it means that order state defined in this variable

Configuration::get('PS_OS_BANKWIRE')

doesnt exist.

 

please check ps_configuration table, search there for ps_os_bankwire and check value if this variable.

then make sure that order state with this id exists

Link to comment
Share on other sites

Thank you Vekia,

 

I just saw your message right now, but what I've done, is that I took the Check module (which it worked when I tried) and completly translate it to "Bankwire" (in spanish).

At least, I have one way to get payments while I wait for the credit card provider.

 

Thanks again.

Link to comment
Share on other sites

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...