Home Forums Prestashop Modules Express Cache PHP Errors, Dynamic Modules not working

This topic is: not resolved
Viewing 1 post (of 1 total)
  • Author
    Posts
  • #28449

    Hi

    PrestaShop version: 1.7.6.1

    1. I have a lot PHP Warning errors with this plugin. It’s related to wrong object supplied for module hooks.
    For example this warning related Wishlist block (by Prestashop)

    PHP Warning: count(): Parameter must be an array or an object that implements Countable in \var\cache\prod\smarty\compile\46\58\98\465898385749bce62997bb8d22f17c1187c8cdae_2.file.blockwishlist_button.tpl.php on line 24
    PHP 68. HookCore::callHookOn() \classes\Hook.php:907
    PHP 69. HookCore::coreCallHook() \classes\Hook.php:355
    PHP 70. BlockWishList->hookDisplayProductListFunctionalButtons() \classes\Hook.php:970
    PHP 71. BlockWishList->display() \modules\blockwishlist\blockwishlist.php:134

    PHP Fatal error:  Uncaught Error: Cannot use object of type Product as array in C:\wamp64\www\presta\var\cache\prod\smarty\compile\46\58\98\465898385749bce62997bb8d22f17c1187c8cdae_2.file.blockwishlist_button.tpl.php:79
    Stack trace:
    #0 C:\wamp64\www\presta\vendor\smarty\smarty\libs\sysplugins\smarty_template_resource_base.php(123): content_5ddff1a9786248_58129311(Object(Smarty_Internal_Template))
    #1 C:\wamp64\www\presta\vendor\smarty\smarty\libs\sysplugins\smarty_template_compiled.php(114): Smarty_Template_Resource_Base->getRenderedTemplateCode(Object(Smarty_Internal_Template))
    #2 C:\wamp64\www\presta\vendor\smarty\smarty\libs\sysplugins\smarty_internal_template.php(216): Smarty_Template_Compiled->render(Object(Smarty_Internal_Template))
    #3 C:\wamp64\www\presta\vendor\smarty\smarty\libs\sysplugins\smarty_internal_templatebase.php(232): Smarty_Internal_Template->render(false, 0)
    #4 C:\wamp64\www\presta\vendor\smarty\smarty\libs\sysplugins\smarty_internal_templatebase.php(116): Smarty_Internal_TemplateBase->_execute(Object(Smart in C:\wamp64\www\presta\var\cache\prod\smarty\compile\46\58\98\465898385749bce62997bb8d22f17c1187c8cdae_2.file.blockwishlist_button.tpl.php on line 79
    [28-Nov-2019 16:22:34 Europe/London] PHP Fatal error:  Uncaught Error: Cannot use object of type Product as array in C:\wamp64\www\presta\var\cache\prod\smarty\compile\46\58\98\465898385749bce62997bb8d22f17c1187c8cdae_2.file.blockwishlist_button.tpl.php:79

    This happens for other modules too by default or when I’m trying to exclude caching from Dynamic Modules.
    And of coarse because of this errors this modules hooks excluded with “Dynamic Modules” are still cached.

    Looks like this module is not working as described and not usable.

    Please clarify this, provide fixes or refund.

    Thanks

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.