Jump to content

500 Server Error Oops, something went wrong.


vinsbg

Recommended Posts

Hi, 

 

I'm new here and new in prestashop. I've set my shop and everything is working except when I make some order and on last step where is "finish order" i got this error:

500 Server Error Oops, something went wrong.

I put debug mode on to see what is the error but honestly I don't understand what is it. Here is the error:

[PrestaShopException]

Can't load Order status
at line 178 in file classes/PaymentModule.php

173. 
174. 		$order_status = new OrderState((int)$id_order_state, (int)$this->context->language->id);
175. 		if (!Validate::isLoadedObject($order_status))
176. 		{
177. 			PrestaShopLogger::addLog('PaymentModule::validateOrder - Order Status cannot be loaded', 3, null, 'Cart', (int)$id_cart, true);
178. 			throw new PrestaShopException('Can\'t load Order status');
179. 		}
180. 
181. 		if (!$this->active)
182. 		{
183. 			PrestaShopLogger::addLog('PaymentModule::validateOrder - Module is not active', 3, null, 'Cart', (int)$id_cart, true);

This line ( 178 ) is in red color - throw new PrestaShopException('Can\'t load Order status');

 

Can anyone help me with this one?

Link to comment
Share on other sites

It is custom payment module from one of the carriers in the country with delivery option and everything. I've contacted the company which is owner and they are checking now. Will post what happen as soon as I have answer.

 

It's likely using a non existing status then. You can check what the user above me said.

Link to comment
Share on other sites

I have defined new status for orders. Then assign it to the payment method but the result is same. How can I do this:

 

check where the $id_order_state is defined and what number it contains

then go to orders > statuses and verify if status with this id exists.

Link to comment
Share on other sites

It's crashing on the last step 'Validation'  whit this error:

PaymentModuleCore->validateOrder - [line 31 - modules/econtpayment/controllers/front/validation.php] - [9 Arguments]
26. 
27. 		if (Tools::getValue('confirm'))
28. 		{
29. 			$customer = new Customer((int)$this->context->cart->id_customer);
30. 			$total = $this->context->cart->getOrderTotal(true, Cart::BOTH);
31. 			$this->module->validateOrder((int)$this->context->cart->id, Configuration::get('PS_OS_PREPARATION'), $total, $this->module->displayName, null, array(), null, false, $customer->secure_key);
32. 			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);
33. 		}
34. 	}
35. 
36. 	/**
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...