Jump to content

Property Customer->lastname is empty


Recommended Posts

Muy buenas, estoy trabajando en una tienda y me esta dando un error 500 cuando intento acceder a "mis datos personales", en modo debug me saca los siguientes errores:

[PrestaShopException]

Property Customer->lastname is empty
at line 917 in file classes/ObjectModel.php

912.             }
913. 
914.             $message = $this->validateField($field, $this->$field);
915.             if ($message !== true) {
916.                 if ($die) {
917.                     throw new PrestaShopException($message);
918.                 }
919.                 return $error_return ? $message : false;
920.             }
921.         }
922. 
  • ObjectModelCore->validateFields - [line 246 - classes/ObjectModel.php]
    241.      * @return array All object fields
    242.      * @throws PrestaShopException
    243.      */
    244.     public function getFields()
    245.     {
    246.         $this->validateFields();
    247.         $fields = $this->formatFields(self::FORMAT_COMMON);
    248. 
    249.         // For retro compatibility
    250.         if (Shop::isTableAssociated($this->def['table'])) {
    251.             $fields = array_merge($fields, $this->getFieldsShop());
    
  • ObjectModelCore->getFields - [line 116 - controllers/front/IdentityController.php]
    111.                 } else {
    112.                     $this->errors[] = Tools::displayError('The information cannot be updated.');
    113.                 }
    114.             }
    115.         } else {
    116.             $_POST = array_map('stripslashes', $this->customer->getFields());
    117.         }
    118. 
    119.         return $this->customer;
    120.     }
    121.     /**
    
  • IdentityControllerCore->postProcess - [line 178 - classes/controller/Controller.php]
    173.             if (!$this->content_only && ($this->display_header || (isset($this->className) && $this->className))) {
    174.                 $this->setMedia();
    175.             }
    176. 
    177.             // postProcess handles ajaxProcess
    178.             $this->postProcess();
    179. 
    180.             if (!empty($this->redirect_after)) {
    181.                 $this->redirect();
    182.             }
    183. 
    
  • ControllerCore->run - [line 367 - classes/Dispatcher.php]
    362.             if (isset($params_hook_action_dispatcher)) {
    363.                 Hook::exec('actionDispatcher', $params_hook_action_dispatcher);
    364.             }
    365. 
    366.             // Running controller
    367.             $controller->run();
    368.         } catch (PrestaShopException $e) {
    369.             $e->displayMessage();
    370.         }
    371.     }
    372. 
    
  • DispatcherCore->dispatch - [line 28 - index.php]
    23. *  @license    http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
    24. *  International Registered Trademark & Property of PrestaShop SA
    25. */
    26. 
    27. require(dirname(__FILE__).'/config/config.inc.php');
    28. Dispatcher::getInstance()->dispatch();
    

 

Alguien me puede dar alguna piesta de donde esta el fallo? Mil gracias!

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