Jump to content

[PrestaShopException] object can't be loaded at line 1247 in file controllers/admin/AdminOrdersContr


edoluz

Recommended Posts

Buongiorno a tutti.

Da ieri, cambiando lo status degli ordini visualizziamo una pagina bianca dopo aver scelto dal menu a tendina lo status e cliccato il bottone di invio.

Se dalla pagina bianca proviamo ad inviare di nuovo l'url dalla barra del browser premendo invio, la pagina dice:

 

[PrestaShopException]

object can't be loaded
at line 1247 in file controllers/admin/AdminOrdersController.php

1241. 1242. 	public function renderView()1243. 	{1244. 		$order = new Order(Tools::getValue('id_order'));1245. 		if (!Validate::isLoadedObject($order))1246. 			throw new PrestaShopException('object can\'t be loaded');1247. 1248. 		$customer = new Customer($order->id_customer);1249. 		$carrier = new Carrier($order->id_carrier);1250. 		$products = $this->getProducts($order);1251. 		$currency = new Currency((int)$order->id_currency);
  • AdminOrdersControllerCore->renderView - [line 1497 - classes/controller/AdminController.php] - [0 Argument]
    1491. 		elseif ($this->display == 'view')1492. 		{1493. 			// Some controllers use the view action without an object1494. 			if ($this->className)1495. 				$this->loadObject(true);1496. 			$this->content .= $this->renderView();1497. 		}1498. 		elseif (!$this->ajax)1499. 		{1500. 			$this->content .= $this->renderModulesList();1501. 			$this->content .= $this->renderList();
  • AdminControllerCore->initContent - [line 167 - classes/controller/Controller.php] - [0 Argument]
    161. 162. 			if (!$this->content_only && ($this->display_header || (isset($this->className) && $this->className)))163. 				$this->initHeader();164. 165. 			if ($this->viewAccess())166. 				$this->initContent();167. 			else168. 				$this->errors[] = Tools::displayError('Access denied.');169. 170. 			if (!$this->content_only && ($this->display_footer || (isset($this->className) && $this->className)))171. 				$this->initFooter();
  • ControllerCore->run - [line 348 - classes/Dispatcher.php] - [0 Argument]
    342. 			// Execute hook dispatcher343. 			if (isset($params_hook_action_dispatcher))344. 				Hook::exec('actionDispatcher', $params_hook_action_dispatcher);345. 346. 			// Running controller347. 			$controller->run();348. 		}349. 		catch (PrestaShopException $e)350. 		{351. 			$e->displayMessage();352. 		}
  • DispatcherCore->dispatch - [line 53 - ****CARTELLA AMMINISTRAZIONE****/index.php] - [0 Argument]
    47. 	$_POST['controller'] = strtolower($_POST['tab']);48. if (!isset($_REQUEST['controller']) && isset($_REQUEST['tab']))49. 	$_REQUEST['controller'] = strtolower($_REQUEST['tab']);50. 51. // Prepare and trigger admin dispatcher52. Dispatcher::getInstance()->dispatch();

 

L'unica cosa che è cambiata dall'altro ieri è che abbiamo trasferito tutto su un nuovo server, ma il sito è completamente funzionante ed operativo.

 

Segnaliamo che in ogni caso, dopo aver modificato lo status, se si torna alla pagina degli ordini si nota che lo stato cambia, quindi il comando viene passato.

 

Secondo voi di cosa si tratta?

Questa cosa potrebbe interessare anche altri moduli?

Grazie.

Edo

Link to comment
Share on other sites

Ieri avevamo problemi anche Paypal: gli ordini non venivano passati a Presta dopo il pagamento e quindi non risultavano effettuati.

Il nostro provider ha cambiato quindi la versione di PHP.

 

Inserendo la versione 5.5 il sito risulta funzionare correttamente.

Grazie.

Edo

  • Like 1
Link to comment
Share on other sites

  • 2 weeks later...

Anch'io ho un problema del genere, dal cms non riesco ad accedere alla sezione degli insoluti. Mi spunta la solita pagina bianca. Credo che il problema derivi dal file AdminOutstandingController.php. Ma non riesco a risolvere il problema. 

 

P.S Io uso Prestashop  1.5.4.1

 

Qualcuno mi può aiutare?

 

Ringrazio anticipatamente per l'attenzione

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

  • 1 month later...
  • 3 weeks later...

Ieri avevamo problemi anche Paypal: gli ordini non venivano passati a Presta dopo il pagamento e quindi non risultavano effettuati.

Il nostro provider ha cambiato quindi la versione di PHP.

 

Inserendo la versione 5.5 il sito risulta funzionare correttamente.

Grazie.

Edo

Ciao Edo,

vorrei sapere la versione di php che c'era prima dell'aggiornamento da parte del vostro provider alla 5.5. Noi abbiamo la 5.2 e devo valutare se aggiornarla può influire positivamente sul nostro problema.

Grazie.

Link to comment
Share on other sites

  • 3 years later...

Hi,

 I'm facing this issue now on changing order status to 'payment accept'  WSoD  and on refresh get error

[PrestaShopException]

object can not be loaded 
at line 1247 in file controllers / admin / AdminOrdersController.php

I check php version and mine is 5.6.
Edited by anju (see edit history)
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...