Jump to content

Erreur Smarty lors de MAJ 1.5


Recommended Posts

Bonjour,

 

Lors de la mise à jour en 1.5, il est mentionné des erreurs de smarty.

 

43677_smarty.jpg

 

Lorsque je vais sur le site j'ai ainsi des problème avec les modules prestablog et prestaforumgp.

Vous avez une idée de pourquoi le cache et la compile smarty ne peuvent pas etre remplacé?

(Je suis en local)

 

40306_smarty2.jpg

Link to comment
Share on other sites

Bonjour,

 

Votre module n'a pas l'air d'être compatible avec la version 1.5, c'est qu'une erreur notice car l'index demandé n'existe pas, il faut faire une condition d’existence avant de l'utiliser pour éviter ce type d'erreur.

Le mieux est de voir avec le concepteur du module en question.

 

Cordialement

Franck

Link to comment
Share on other sites

Merci de votre réponse.

J'ai 2 modules qui posent problèmes. Pour l'un d'eux le concepteur ne répond pas pour l'instant et pour l'autre il me dit que prestashop 1.5 est encore trop buggé pour qu'il puisse proposer une mise à jour :huh:.

Et au cas où il n'y ai pas de mise à jour j’espère qu'il y aura un moyen de régler ce problème

Plus qu'a attendre, encore et encore!!!

Link to comment
Share on other sites

  • 3 weeks later...

Ca yé le module de blog "Blog Prestablog posts, categories, comments, products" a une mise à jour pour prestashop 1.5.

Malheuresement lors de l'installation j'ai le message d'erreur suivant:

 

[PrestaShopDatabaseException]

 

Table 'prestashop.ps_blog_post_shop' doesn't exist

 

DESCRIBE `ps_blog_post_shop`

 

at line 606 in file classes/db/Db.php

 

600. WebserviceRequest::getInstance()->setError(500, '

 '.$this->getMsgError().'. From '.(isset($dbg[3]['class']) ? $dbg[3]['class'] : '').'->'.$dbg[3]['function'].'() Query was : '.$sql, 97);

601. }

602. else if (_PS_DEBUG_SQL_ && $errno && !defined('PS_INSTALLATION_IN_PROGRESS'))

603. {

604. if ($sql)

605. throw new PrestaShopDatabaseException($this->getMsgError().'<br /><br /><pre>'.$sql.'</pre>');

606. throw new PrestaShopDatabaseException($this->getMsgError());

607. }

608. }

609.

610. /**

  • [b]DbCore->displayError[/b] - [line 308 - classes/db/Db.php] - [1 Arguments]
     
    302. if ($sql instanceof DbQuery)
    303. $sql = $sql->build();
    304.
    305. $this->result = $this->_query($sql);
    306. if (_PS_DEBUG_SQL_)
    307. $this->displayError($sql);
    308. return $this->result;
    309. }
    310.
    311. /**
    312. * Execute an INSERT query
  • [b]DbCore->query[/b] - [line 448 - classes/db/Db.php] - [1 Arguments]
  • [b]DbCore->execute[/b] - [line 7 - modules/psblog/install-sql.php] - [1 Arguments]
     
    1.
    2. if(!defined('_MYSQL_ENGINE_')){
    3. define(_MYSQL_ENGINE_,'MyISAM');
    4. }
    5.
    6. $latest_exists = Db::getInstance()->Execute("DESCRIBE `"._DB_PREFIX_."blog_post_shop`");
    7.
    8. if(!$latest_exists){
    9. //check update from old version
    10. Db::getInstance()->Execute("DROP TABLE `"._DB_PREFIX_."blog_categories`");
    11. Db::getInstance()->Execute("DROP TABLE `"._DB_PREFIX_."blog_category`");
  • [b]require_once[/b] - [line 71 - modules/psblog/psblog.php] - [1 Arguments]
     
    65.
    66. @copy(dirname(__FILE__)."/AdminBlog.gif",_PS_ROOT_DIR_."/img/t/AdminBlog.gif");
    67.
    68. if(!$this->registerHook('header') OR !$this->registerHook('actionHtaccessCreate') OR !$this->registerHook('productTab') OR !$this->registerHook('productTabContent')) return false;
    69.
    70. require_once(dirname(__FILE__).'/install-sql.php');
    71.
    72. $this->generateRewriteRules();
    73.
    74. return true;
    75. }
  • [b]Psblog->install[/b] - [line 621 - controllers/admin/AdminModulesController.php] - [size=3][0 Argument][/size]
     
    [size=3]615. // We check if method of module exists
    616. if (!method_exists($module, $method))
    617. throw new PrestaShopException('Method of module can\'t be found');
    618.
    619. // Get the return value of current method
    620. $echo = $module->{$method}();
    621. }
    622.
    623. // If the method called is "configure" (getContent method), we show the html code of configure page
    624. if ($key == 'configure' && Module::isInstalled($module->name))
    625. {[/size]
  • [b]AdminModulesControllerCore->postProcessCallback[/b] - [line 740 - controllers/admin/AdminModulesController.php] - [size=3][0 Argument][/size]
     
    [size=3]734. $ppmReturn = $this->$ppm();
    735. }
    736.
    737. // Call appropriate module callback
    738. if (!isset($ppmReturn))
    739. $this->postProcessCallback();
    740. }
    741.
    742. /**
    743. * Generate html errors for a module process
    744. *[/size]
  • [b]AdminModulesControllerCore->postProcess[/b] - [line 159 - classes/controller/Controller.php] - [size=3][0 Argument][/size]
     
    [size=3]153. // setMedia MUST be called before postProcess
    154. if (!$this->content_only && ($this->display_header || (isset($this->className) && $this->className)))
    155. $this->setMedia();
    156.
    157. // postProcess handles ajaxProcess
    158. $this->postProcess();
    159.
    160. if (!empty($this->redirect_after))
    161. $this->redirect();
    162.
    163. if (!$this->content_only && ($this->display_header || (isset($this->className) && $this->className)))[/size]
  • [b]ControllerCore->run[/b] - [line 349 - classes/Dispatcher.php] - [size=3][0 Argument][/size]
     
    [size=3]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. }[/size]

[indent=1][b]DispatcherCore->dispatch[/b] - [line 51 - admin2063/index.php] - [size=3][0 Argument][/size]

 

[size=3]45. $_POST['controller'] = strtolower($_POST['tab']);

46. if (!isset($_REQUEST['controller']) && isset($_REQUEST['tab']))

47. $_REQUEST['controller'] = strtolower($_REQUEST['tab']);

48.

49. // Prepare and trigger admin dispatcher

50. Dispatcher::getInstance()->dispatch();[/size][/indent]

 

[indent=1]Quel est le problème? Sur la notice d'installation il est écris:

The following files and directories must be writable, CHMOD 777 :

modules/psblog/uploads/ modules/psblog/uploads/list/ modules/psblog/uploads/thumb/ modules/psblog/sitemap-blog.xml

Mais je ne sais pas si cela a un rapport.

Merci de m'aider[/indent]

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

  • 2 months later...

Voila mon problème.

 

 

 

[PrestaShopDatabaseException]

 

Unknown column 'redirect_type' in 'field list'UPDATE `ps_product` SET `id_product` = '1',`id_shop_default` = '1',`id_manufacturer` = '1',`id_supplier` = '1',`reference` = 'ST0000001',`supplier_reference` = '',`location` = '',`width` = '0',`height` = '0',`depth` = '0',`weight` = '0.5',`quantity_discount` = '0',`ean13` = '0',`upc` = '',`cache_is_pack` = '0',`cache_has_attachments` = '0',`is_virtual` = '0',`id_category_default` = '3',`id_tax_rules_group` = '0',`on_sale` = '0',`online_only` = '0',`ecotax` = '0',`minimal_quantity` = '1',`price` = '124.58194',`wholesale_price` = '70',`unity` = '',`unit_price_ratio` = '0',`additional_shipping_cost` = '0',`customizable` = '0',`text_fields` = '0',`uploadable_files` = '0',`active` = '1',`redirect_type` = '404',`id_product_redirected` = '0',`available_for_order` = '1',`available_date` = '0000-00-00',`condition` = 'new',`show_price` = '1',`indexed` = '0',`visibility` = 'both',`cache_default_attribute` = '0',`advanced_stock_management` = '0',`date_add` = '2012-11-15 21:00:22',`date_upd` = '2013-01-31 05:50:41' WHERE `id_product` = 1

at line 605 in file classes/db/Db.php

 

599. WebserviceRequest::getInstance()->setError(500, '

 '.$this->getMsgError().'. From '.(isset($dbg[3]['class']) ? $dbg[3]['class'] : '').'->'.$dbg[3]['function'].'() Query was : '.$sql, 97);

600. }

601. else if (_PS_DEBUG_SQL_ && $errno && !defined('PS_INSTALLATION_IN_PROGRESS'))

602. {

603. if ($sql)

[color=#F20000][b]604. throw new PrestaShopDatabaseException($this->getMsgError().'<br /><br /><pre>'.$sql.'</pre>');[/b][/color]

605. throw new PrestaShopDatabaseException($this->getMsgError());

606. }

607. }

608.

609. /**[/font][/color]

  • [b]DbCore->displayError[/b] - [line 307 - classes/db/Db.php] - [1 Arguments]
     
    [b]Argument [0][/b]
    UPDATE `ps_product` SET `id_product` = '1',`id_shop_default` = '1',`id_manufacturer` = '1',`id_supplier` = '1',`reference` = 'ST0000001',`supplier_reference` = '',`location` = '',`width` = '0',`height` = '0',`depth` = '0',`weight` = '0.5',`quantity_discount` = '0',`ean13` = '0',`upc` = '',`cache_is_pack` = '0',`cache_has_attachments` = '0',`is_virtual` = '0',`id_category_default` = '3',`id_tax_rules_group` = '0',`on_sale` = '0',`online_only` = '0',`ecotax` = '0',`minimal_quantity` = '1',`price` = '124.58194',`wholesale_price` = '70',`unity` = '',`unit_price_ratio` = '0',`additional_shipping_cost` = '0',`customizable` = '0',`text_fields` = '0',`uploadable_files` = '0',`active` = '1',`redirect_type` = '404',`id_product_redirected` = '0',`available_for_order` = '1',`available_date` = '0000-00-00',`condition` = 'new',`show_price` = '1',`indexed` = '0',`visibility` = 'both',`cache_default_attribute` = '0',`advanced_stock_management` = '0',`date_add` = '2012-11-15 21:00:22',`date_upd` = '2013-01-31 05:50:41' WHERE `id_product` = 1
  • [b]DbCore->query[/b] - [line 581 - classes/db/Db.php] - [1 Arguments]
     
    [b]Argument [0][/b]
    UPDATE `ps_product` SET `id_product` = '1',`id_shop_default` = '1',`id_manufacturer` = '1',`id_supplier` = '1',`reference` = 'ST0000001',`supplier_reference` = '',`location` = '',`width` = '0',`height` = '0',`depth` = '0',`weight` = '0.5',`quantity_discount` = '0',`ean13` = '0',`upc` = '',`cache_is_pack` = '0',`cache_has_attachments` = '0',`is_virtual` = '0',`id_category_default` = '3',`id_tax_rules_group` = '0',`on_sale` = '0',`online_only` = '0',`ecotax` = '0',`minimal_quantity` = '1',`price` = '124.58194',`wholesale_price` = '70',`unity` = '',`unit_price_ratio` = '0',`additional_shipping_cost` = '0',`customizable` = '0',`text_fields` = '0',`uploadable_files` = '0',`active` = '1',`redirect_type` = '404',`id_product_redirected` = '0',`available_for_order` = '1',`available_date` = '0000-00-00',`condition` = 'new',`show_price` = '1',`indexed` = '0',`visibility` = 'both',`cache_default_attribute` = '0',`advanced_stock_management` = '0',`date_add` = '2012-11-15 21:00:22',`date_upd` = '2013-01-31 05:50:41' WHERE `id_product` = 1
  • [b]DbCore->q[/b] - [line 409 - classes/db/Db.php] - [2 Arguments]
     
    [b]Argument [0][/b]
    UPDATE `ps_product` SET `id_product` = '1',`id_shop_default` = '1',`id_manufacturer` = '1',`id_supplier` = '1',`reference` = 'ST0000001',`supplier_reference` = '',`location` = '',`width` = '0',`height` = '0',`depth` = '0',`weight` = '0.5',`quantity_discount` = '0',`ean13` = '0',`upc` = '',`cache_is_pack` = '0',`cache_has_attachments` = '0',`is_virtual` = '0',`id_category_default` = '3',`id_tax_rules_group` = '0',`on_sale` = '0',`online_only` = '0',`ecotax` = '0',`minimal_quantity` = '1',`price` = '124.58194',`wholesale_price` = '70',`unity` = '',`unit_price_ratio` = '0',`additional_shipping_cost` = '0',`customizable` = '0',`text_fields` = '0',`uploadable_files` = '0',`active` = '1',`redirect_type` = '404',`id_product_redirected` = '0',`available_for_order` = '1',`available_date` = '0000-00-00',`condition` = 'new',`show_price` = '1',`indexed` = '0',`visibility` = 'both',`cache_default_attribute` = '0',`advanced_stock_management` = '0',`date_add` = '2012-11-15 21:00:22',`date_upd` = '2013-01-31 05:50:41' WHERE `id_product` = 1
    [b]Argument [1][/b]
    1
  • [b]DbCore->update[/b] - [line 598 - classes/ObjectModel.php] - [5 Arguments]
     
    [b]Argument [0][/b]
    product
    [b]Argument [1][/b]
    Array
    (
    [id_product] => 1
    [id_shop_default] => 1
    [id_manufacturer] => 1
    [id_supplier] => 1
    [reference] => ST0000001
    [supplier_reference] =>
    [location] =>
    [width] => 0
    [height] => 0
    [depth] => 0
    [weight] => 0.5
    [quantity_discount] => 0
    [ean13] => 0
    [upc] =>
    [cache_is_pack] => 0
    [cache_has_attachments] => 0
    [is_virtual] => 0
    [id_category_default] => 3
    [id_tax_rules_group] => 0
    [on_sale] => 0
    [online_only] => 0
    [ecotax] => 0
    [minimal_quantity] => 1
    [price] => 124.58194
    [wholesale_price] => 70
    [unity] =>
    [unit_price_ratio] => 0
    [additional_shipping_cost] => 0
    [customizable] => 0
    [text_fields] => 0
    [uploadable_files] => 0
    [active] => 1
    [redirect_type] => 404
    [id_product_redirected] => 0
    [available_for_order] => 1
    [available_date] => 0000-00-00
    [condition] => new
    [show_price] => 1
    [indexed] => 0
    [visibility] => both
    [cache_default_attribute] => 0
    [advanced_stock_management] => 0
    [date_add] => 2012-11-15 21:00:22
    [date_upd] => 2013-01-31 05:50:41
    )
     
    [b]Argument [2][/b]
    `id_product` = 1
    [b]Argument [3][/b]
    0
    [b]Argument [4][/b]
  • [b]ObjectModelCore->update[/b] - [line 492 - classes/Product.php] - [1 Arguments]
     
    [b]Argument [0][/b]
  • [b]ProductCore->update[/b] - [line 1688 - controllers/admin/AdminProductsController.php] - [size=3][0 Argument][/size]
     
    [size=3]1682. $object->indexed = 0;
    1683.
    1684. if (Shop::isFeatureActive() && Shop::getContext() != Shop::CONTEXT_SHOP)
    1685. $object->setFieldsToUpdate((array)Tools::getValue('multishop_check'));
    1686.
    [color=#F20000][b]1687. if ($object->update())[/b][/color]
    1688. {
    1689. if (in_array($this->context->shop->getContext(), array(Shop::CONTEXT_SHOP, Shop::CONTEXT_ALL)))
    1690. {
    1691. if ($this->isTabSubmitted('Shipping'))
    1692. $this->addCarriers();[/size]
  • [b]AdminProductsControllerCore->processUpdate[/b] - [line 626 - classes/controller/AdminController.php] - [size=3][0 Argument][/size]
     
    [size=3]620. public function processSave()
    621. {
    622. if ($this->id_object)
    623. {
    624. $this->object = $this->loadObject();
    [color=#F20000][b]625. return $this->processUpdate();[/b][/color]
    626. }
    627. else
    628. return $this->processAdd();
    629. }
    630. [/size]
  • [b]AdminControllerCore->processSave[/b] - [line 541 - classes/controller/AdminController.php] - [size=3][0 Argument][/size]
     
    [size=3]535. {
    536. // Hook before action
    537. Hook::exec('actionAdmin'.ucfirst($this->action).'Before', array('controller' => $this));
    538. Hook::exec('action'.get_class($this).ucfirst($this->action).'Before', array('controller' => $this));
    539. // Call process
    [color=#F20000][b]540. $return = $this->{'process'.Tools::toCamelCase($this->action)}();[/b][/color]
    541. // Hook After Action
    542. Hook::exec('actionAdmin'.ucfirst($this->action).'After', array('controller' => $this, 'return' => $return));
    543. Hook::exec('action'.get_class($this).ucfirst($this->action).'After', array('controller' => $this, 'return' => $return));
    544.
    545. return $return;[/size]
  • [b]AdminControllerCore->postProcess[/b] - [line 1171 - controllers/admin/AdminProductsController.php] - [size=3][0 Argument][/size]
     
    [size=3]1165. * @return void
    1166. */
    1167. public function postProcess()
    1168. {
    1169. if (!$this->redirect_after)
    [color=#F20000][b]1170. parent::postProcess();[/b][/color]
    1171.
    1172. if ($this->display == 'edit' || $this->display == 'add')
    1173. {
    1174. $this->addjQueryPlugin(array(
    1175. 'autocomplete',[/size]
  • [b]AdminProductsControllerCore->postProcess[/b] - [line 158 - classes/controller/Controller.php] - [size=3][0 Argument][/size]
     
    [size=3]152. // setMedia MUST be called before postProcess
    153. if (!$this->content_only && ($this->display_header || (isset($this->className) && $this->className)))
    154. $this->setMedia();
    155.
    156. // postProcess handles ajaxProcess
    [color=#F20000][b]157. $this->postProcess();[/b][/color]
    158.
    159. if (!empty($this->redirect_after))
    160. $this->redirect();
    161.
    162. if (!$this->content_only && ($this->display_header || (isset($this->className) && $this->className)))[/size]
  • [b]ControllerCore->run[/b] - [line 348 - classes/Dispatcher.php] - [size=3][0 Argument][/size]
     
    [size=3]342. // Execute hook dispatcher
    343. if (isset($params_hook_action_dispatcher))
    344. Hook::exec('actionDispatcher', $params_hook_action_dispatcher);
    345.
    346. // Running controller
    [color=#F20000][b]347. $controller->run();[/b][/color]
    348. }
    349. catch (PrestaShopException $e)
    350. {
    351. $e->displayMessage();
    352. }[/size]
  • [b]DispatcherCore->dispatch[/b] - [line 50 - 01/index.php] - [size=3][0 Argument][/size]
     
    [size=3]44. $_POST['controller'] = strtolower($_POST['tab']);
    45. if (!isset($_REQUEST['controller']) && isset($_REQUEST['tab']))
    46. $_REQUEST['controller'] = strtolower($_REQUEST['tab']);
    47.
    48. // Prepare and trigger admin dispatcher
    [color=#F20000][b]49. Dispatcher::getInstance()->dispatch();[/b][/color][/size]

Edited by pierre bernard (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...