Jump to content

Fatal error in module DbPDO:


Recommended Posts

Hola!

 

Prestashop Cleaner de da este error cuando pincho "Check & Fix"

 

[PrestaShop] Fatal error in module DbPDO:

Call to a member function rowCount() on a non-object

 

Esto es lo que me dice cuando pongo define('_PS_MODE_DEV_', true); en el defines.inc.php

 

alguien puede ayudarme??

 

muchas gracias!!

[PrestaShopException]

 

Invalid address

at line 346 in file classes/Address.php

 

340. if ($id_address)

341. {

342. $address = new Address((int)$id_address);

343.

344. if (!Validate::isLoadedObject($address))

345. throw new PrestaShopException('Invalid address');

346. }

347. else

348. {

349. // set the default address

350. $address = new Address();

  • AddressCore::initialize - [line 198 - classes/tax/Tax.php] - [1 Arguments]
     
    192. * @param id_address
    193. * @return float $tax_rate
    194. */
    195. public static function getProductEcotaxRate($id_address = null)
    196. {
    197. $address = Address::initialize($id_address);
    198.
    199. $tax_manager = TaxManagerFactory::getManager($address, (int)Configuration::get('PS_ECOTAX_TAX_RULES_GROUP_ID'));
    200. $tax_calculator = $tax_manager->getTaxCalculator();
    201.
    202. return $tax_calculator->getTotalRate();
  • TaxCore::getProductEcotaxRate - [line 301 - controllers/front/ProductController.php] - [1 Arguments]
     
    295. $product_price_with_tax = Product::getPriceStatic($this->product->id, true, null, 6);
    296. if (Product::$_taxCalculationMethod == PS_TAX_INC)
    297. $product_price_with_tax = Tools::ps_round($product_price_with_tax, 2);
    298. $product_price_without_eco_tax = (float)$product_price_with_tax - $this->product->ecotax;
    299.
    300. $ecotax_rate = (float)Tax::getProductEcotaxRate($this->context->cart->{Configuration::get('PS_TAX_ADDRESS_TYPE')});
    301. $ecotax_tax_amount = Tools::ps_round($this->product->ecotax, 2);
    302. if (Product::$_taxCalculationMethod == PS_TAX_INC && (int)Configuration::get('PS_TAX'))
    303. $ecotax_tax_amount = Tools::ps_round($ecotax_tax_amount * (1 + $ecotax_rate / 100), 2);
    304.
    305. $id_currency = (int)$this->context->cookie->id_currency;
  • ProductControllerCore->assignPriceAndTax - [line 225 - controllers/front/ProductController.php] - [0 Argument]
     
    219. 'textFields' => $text_fields));
    220.
    221. // Assign template vars related to the category + execute hooks related to the category
    222. $this->assignCategory();
    223. // Assign template vars related to the price and tax
    224. $this->assignPriceAndTax();
    225.
    226. // Assign template vars related to the images
    227. $this->assignImages();
    228. // Assign attribute groups to the template
    229. $this->assignAttributesGroups();
  • ProductControllerCore->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. else
    168. $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 349 - classes/Dispatcher.php] - [0 Argument]
     
    343. // Execute hook dispatcher
    344. if (isset($params_hook_action_dispatcher))
    345. Hook::exec('actionDispatcher', $params_hook_action_dispatcher);
    346.
    347. // Running controller
    348. $controller->run();
    349. }
    350. catch (PrestaShopException $e)
    351. {
    352. $e->displayMessage();
    353. }
  • DispatcherCore->dispatch - [line 28 - index.php] - [0 Argument]
     
    22. * @license http://opensource.or...ses/osl-3.0.php Open Software License (OSL 3.0)
    23. * International Registered Trademark & Property of PrestaShop SA
    24. */
    25.
    26. require(dirname(__FILE__).'/config/config.inc.php');
    27. Dispatcher::getInstance()->dispatch();
    28.

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

Gracias, ya lo he corregido, actualizar a 1.5.4.1 y limipiar cache...

 

Pero podriais ponerme algo, simplemente para ver que hay alguien ahi, un hola o algo... es que mis post estan desiertos de comentarios, y me siento solo...

 

Jajajajajajajaja..

 

Un abrazo y muchas gracias a todos!!

Link to comment
Share on other sites

Gracias, ya lo he corregido, actualizar a 1.5.4.1 y limipiar cache...

 

Pero podriais ponerme algo, simplemente para ver que hay alguien ahi, un hola o algo... es que mis post estan desiertos de comentarios, y me siento solo...

 

Jajajajajajajaja..

 

Un abrazo y muchas gracias a todos!!

 

No estas solo, lo que pasa es que en el foro español ayudan 5 gatos, por decir un numero. (Y logicamente ayudan cuando tienen tiempo)

  • Like 1
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...