Jump to content

Errore Modulo ebay


roberto05

Recommended Posts

Ciao a tutti,

 

  vi scrivo poiché da diversi giorni sono bloccato nell'importazione di ordini dal modulo ebay. L'errore è il seguente:

 

[PrestaShopException]

Property Address->id_state is empty
at line 837 in file classes/ObjectModel.php

831.
832.             $message = $this->validateField($field, $this->$field);
833.             if ($message !== true)
834.             {
835.                 if ($die)
836.                     throw new PrestaShopException($message);
837.                 return $error_return ? $message : false;
838.             }
839.         }
840.
841.         return true;
  • ObjectModelCore->validateFields - [line 255 - classes/ObjectModel.php] - [0 Argument]
  • ObjectModelCore->getFields - [line 455 - classes/ObjectModel.php] - [0 Argument]
  • ObjectModelCore->add - [line 170 - classes/Address.php] - [2 Arguments]
    164.     /**
    165.      * @see ObjectModel::add()
    166.      */
    167.     public function add($autodate = true, $null_values = false)
    168.     {
    169.         if (!parent::add($autodate, $null_values))
    170.             return false;
    171.
    172.         if (Validate::isUnsignedId($this->id_customer))
    173.             Customer::resetAddressCache($this->id_customer);
    174.         return true;
  • AddressCore->add - [line 210 - modules/ebay/classes/EbayOrder.php] - [0 Argument]
  • EbayOrder->updateOrAddAddress - [line 788 - modules/ebay/ebay.php] - [1 Arguments]
  • Ebay->importOrders - [line 630 - modules/ebay/ebay.php] - [1 Arguments]
    624.             $current_date = date('Y-m-d\TH:i:s').'.000Z';
    625.             // we set the new last update date after retrieving the last orders
    626.             $this->ebay_profile->setConfiguration('EBAY_ORDER_LAST_UPDATE', $current_date);
    627.
    628.             if ($orders = $this->_getEbayLastOrders($current_date))
    629.                 $this->importOrders($orders);
    630.         }
    631.         
    632.         $this->_cleanLogs();
    633.         
    634.         // Set old Context Shop
  • Ebay->hookHeader - [line 1128 - modules/ebay/ebay.php] - [1 Arguments]
    1122.         }
    1123.         
    1124.         if (!((version_compare(_PS_VERSION_, '1.5.1', '>=')
    1125.             && version_compare(_PS_VERSION_, '1.5.2', '<'))
    1126.             && !Shop::isFeatureActive()))
    1127.             $this->hookHeader($params);
    1128.     }
    1129.     
    1130.     /**
    1131.     * Main Form Method
    1132.     *
  • Ebay->hookBackOfficeTop - [line 459 - classes/Hook.php] - [1 Arguments]
    453.
    454.                 // Call hook method
    455.                 if ($hook_callable)
    456.                     $display = $moduleInstance->{'hook'.$hook_name}($hook_args);
    457.                 else if ($hook_retro_callable)
    458.                     $display = $moduleInstance->{'hook'.$retro_hook_name}($hook_args);
    459.                 // Live edit
    460.                 if (!$array_return && $array['live_edit'] && Tools::isSubmit('live_edit') && Tools::getValue('ad') && Tools::getValue('liveToken') == Tools::getAdminToken('AdminModulesPositions'.(int)Tab::getIdFromClassName('AdminModulesPositions').(int)Tools::getValue('id_employee')))
    461.                 {
    462.                     $live_edit = true;
    463.                     $output .= self::wrapLiveEdit($display, $moduleInstance, $array['id_hook']);
  • HookCore::exec - [line 1865 - classes/controller/AdminController.php] - [2 Arguments]
    1859.         if ($this->display_header)
    1860.             $this->context->smarty->assign('displayBackOfficeHeader', Hook::exec('displayBackOfficeHeader', array()));
    1861.         
    1862.         $this->context->smarty->assign(
    1863.             array(
    1864.                 'displayBackOfficeTop' => Hook::exec('displayBackOfficeTop', array()),
    1865.                 'submit_form_ajax' => (int)Tools::getValue('submitFormAjax')
    1866.                 )
    1867.             );
    1868.
    1869.         $this->initProcess();
  • AdminControllerCore->init - [line 150 - classes/controller/Controller.php] - [0 Argument]
  • ControllerCore->run - [line 348 - classes/Dispatcher.php] - [0 Argument]
  • DispatcherCore->dispatch - [line 50 - admin_h/index.php] - [0 Argument]

 

L'importazione si è bloccata quanto un cliente ha effettuato il pagamento tramite bonifico di alcuni prodotti. Il cliente aveva acquistato più prodotti, per cui prima del pagamento, su ebay, è stato rivisto il prezzo definitivo dei prodotti (abbassando le spese di trasporto).

 

Grazie

 

Roberto

 

Link to comment
Share on other sites

  • 2 weeks later...

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