Jump to content

cannot accept payment status or ship status.


Recommended Posts

hello cannot accept payments or ship etc in orders since upgrading to .13

 

error below,

 

I tried turning of overrides etc but same issue

 

 

[PrestaShopException]

Property Order->module is not valid
at line 872 in file classes/ObjectModel.php

867. 868. 			$message = $this->validateField($field, $this->$field);869. 			if ($message !== true)870. 			{871. 				if ($die)872. 					throw new PrestaShopException($message);873. 				return $error_return ? $message : false;874. 			}875. 		}876. 877. 		return true;
  • ObjectModelCore->validateFields - [line 278 - classes/ObjectModel.php]
    273. 	 *274. 	 * @return array All object fields275. 	 */276. 	public function getFields()277. 	{278. 		$this->validateFields();279. 		$fields = $this->formatFields(self::FORMAT_COMMON);280. 281. 		// For retro compatibility282. 		if (Shop::isTableAssociated($this->def['table']))283. 			$fields = array_merge($fields, $this->getFieldsShop());
  • ObjectModelCore->getFields - [line 299 - classes/order/Order.php]
    294. 	public function getFields()295. 	{296. 		if (!$this->id_lang)297. 			$this->id_lang = Configuration::get('PS_LANG_DEFAULT', null, null, $this->id_shop);298. 299. 		return parent::getFields();300. 	}301. 302. 	public function add($autodate = true, $null_values = true)303. 	{304. 		if (parent::add($autodate, $null_values))
  • OrderCore->getFields - [line 631 - classes/ObjectModel.php]
    626. 			$id_shop_list = $this->id_shop_list;627. 628. 		if (Shop::checkIdShopDefault($this->def['table']) && !$this->id_shop_default)629. 			$this->id_shop_default = min($id_shop_list);630. 		// Database update631. 		if (!$result = ObjectModel::$db->update($this->def['table'], $this->getFields(), '`'.pSQL($this->def['primary']).'` = '.(int)$this->id, 0, $null_values))632. 			return false;633. 634. 		// Database insertion for multishop fields related to the object635. 		if (Shop::isTableAssociated($this->def['table']))636. 		{
  • ObjectModelCore->update - [line 289 - classes/order/OrderHistory.php]
    284. 			die(Tools::displayError('Invalid new order status'));285. 286. 		// the order is valid if and only if the invoice is available and the order is not cancelled287. 		$order->current_state = $this->id_order_state;288. 		$order->valid = $new_os->logable;289. 		$order->update();290. 291. 		if ($new_os->invoice && !$order->invoice_number)292. 			$order->setInvoice($use_existing_payment);293. 		elseif ($new_os->delivery && !$order->delivery_number)294. 			$order->setDeliverySlip();
  • OrderHistoryCore->changeIdOrderState - [line 520 - controllers/admin/AdminOrdersController.php] - [3 Arguments]
    515. 						$history->id_employee = (int)$this->context->employee->id;516. 517. 						$use_existings_payment = false;518. 						if (!$order->hasInvoice())519. 							$use_existings_payment = true;520. 						$history->changeIdOrderState((int)$order_state->id, $order, $use_existings_payment);521. 522. 						$carrier = new Carrier($order->id_carrier, $order->id_lang);523. 						$templateVars = array();524. 						if ($history->id_order_state == Configuration::get('PS_OS_SHIPPING') && $order->shipping_number)525. 							$templateVars = array('{followup}' => str_replace('@', $order->shipping_number, $carrier->url));
  • AdminOrdersControllerCore->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 54 - admin/index.php]
    49. 	$_POST['controller'] = strtolower($_POST['tab']);50. if (!isset($_REQUEST['controller']) && isset($_REQUEST['tab']))51. 	$_REQUEST['controller'] = strtolower($_REQUEST['tab']);52. 53. // Prepare and trigger admin dispatcher54. Dispatcher::getInstance()->dispatch();

 

Link to comment
Share on other sites

does anyone have any suggestions ?

 

I tried copying said failed in case the upgrade did not write new ones. same issue.

 

I reset the order statuses in case error on them but still not able to change to any order status or generate invoice becasue of this.

Link to comment
Share on other sites

more info. when going to an order i get this dev mode error

 

Warning on line 1595 in file /home3/loco1/public_html/classes/controller/AdminController.php
[2] Cannot modify header information - headers already sent by (output started at /home3/loco1/public_html/override/classes/Cart.php:214)

 

 

when submitting a status change i get this error

 

Strict Standards: Declaration of Cart::checkQuantities() should be compatible with CartCore::checkQuantities($return_product = false) in /home3/loco1/public_html/override/classes/Cart.php on line 214

Link to comment
Share on other sites

ok update.

 

So i have found this only happens on orders prior to the upgrade.

 

All new orderes work fine.

 

Still i need to close them off so any help on how i could do that manually would be appreciated.

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