Title: Issue with Widget &quot;Prestashop integration module&quot;
Last modified: August 20, 2016

---

# Issue with Widget "Prestashop integration module"

 *  Resolved [Prestance Design](https://wordpress.org/support/users/prestance-design/)
 * (@prestance-design)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/issue-with-widet-module/)
 * Hi Francois,
 * I noticed an issue with the widget **“Prestashop integration module”**.
 * The php error :
    _Notice: Undefined property: PrestaShopIntegration::$hooks\_names
   in prestashop-integration.php on line 427._
 * I think it’s because $hook_name is static parameter, so I’ve change the function
   psHooksNames from:
 *     ```
       function psHooksNames( $hook = null ) {
       			if ( !$this->hooks_names )
       				$this->hooks_names = ( version_compare(_PS_VERSION_, '1.5', '>=') ? array(
       					'HOOK_TOP' => 'displayTop',
       					'HOOK_LEFT_COLUMN' => 'displayLeftColumn',
       					'HOOK_RIGHT_COLUMN' => 'displayRightColumn',
       					'HOOK_FOOTER' => 'displayFooter'
       				) : array(
       					'HOOK_TOP' => 'top',
       					'HOOK_LEFT_COLUMN' => 'leftColumn',
       					'HOOK_RIGHT_COLUMN' => 'rightColumn',
       					'HOOK_FOOTER' => 'footer'
       				) );
       			if ( $hook )
       				return $this->hooks_names[$hook];
       			else
       				return $this->hooks_names;
       		}
       ```
   
 * like that
 *     ```
       function psHooksNames( $hook = null ) {
       			if ( !self::$hooks_names )
       				self::$hooks_names = ( version_compare(_PS_VERSION_, '1.5', '>=') ? array(
       					'HOOK_TOP' => 'displayTop',
       					'HOOK_LEFT_COLUMN' => 'displayLeftColumn',
       					'HOOK_RIGHT_COLUMN' => 'displayRightColumn',
       					'HOOK_FOOTER' => 'displayFooter'
       				) : array(
       					'HOOK_TOP' => 'top',
       					'HOOK_LEFT_COLUMN' => 'leftColumn',
       					'HOOK_RIGHT_COLUMN' => 'rightColumn',
       					'HOOK_FOOTER' => 'footer'
       				) );
       			if ( $hook )
       				return self::$hooks_names[$hook];
       			else
       				return self::$hooks_names;
       		}
       ```
   
 * after that I have a warning because Module::hooExec() is deprecated in Prestashop
   1.5.
    So I’ve changed in prestashop-integration-module.php on line 45 `Module::
   hookExec()` by `Hook::exec()`
 * And voilà, it work.
 * [http://wordpress.org/extend/plugins/prestashop-integration/](http://wordpress.org/extend/plugins/prestashop-integration/)

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [aytechnet](https://wordpress.org/support/users/aytechnet/)
 * (@aytechnet)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/issue-with-widet-module/#post-3331683)
 * Hello Prestance Design,
    I used your code to provide a fix, thanks. It is uploaded
   in 0.8.1. François.
 *  Thread Starter [Prestance Design](https://wordpress.org/support/users/prestance-design/)
 * (@prestance-design)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/issue-with-widet-module/#post-3331702)
 * Thank you for your responsiveness François.
 * I guess, that we can ignore the deprecated warning of the function Module::hookExec(),
   isn’t it ?
 *  Plugin Author [aytechnet](https://wordpress.org/support/users/aytechnet/)
 * (@aytechnet)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/issue-with-widet-module/#post-3331703)
 * Hi Prestance Design,
    I made an error in the 0.8.1 as It has been fixed on my
   test environment but I suspect not having taken the change back to the git environment,
   the next release will get the changes to fix the warning. I made another error
   in the changelog : the fix for the redirection is not in the plugin but in PrestaShop
   itself… (I mentionned the fix in the changelog but in fact the fix is explained
   in FAQ). François.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Issue with Widget "Prestashop integration module"’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/prestashop-integration.svg)
 * [PrestaShop Integration](https://wordpress.org/plugins/prestashop-integration/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/prestashop-integration/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/prestashop-integration/)
 * [Active Topics](https://wordpress.org/support/plugin/prestashop-integration/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/prestashop-integration/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/prestashop-integration/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [aytechnet](https://wordpress.org/support/users/aytechnet/)
 * Last activity: [13 years, 5 months ago](https://wordpress.org/support/topic/issue-with-widet-module/#post-3331703)
 * Status: resolved