Jump to content

ps_sharebuttons.php on line 140


kentgravity

Recommended Posts

Hello, I have the following error in the error_log file
PHP Notice:  Undefined index: product in /home/tuningya/public_html/modules/ps_sharebuttons/ps_sharebuttons.php on line 140

This error occurs when I set a line from /public_html/config/defines.inc.php '' define('_PS_MODE_DEV_', false); '' true and false. 

Now it's false and my page works, but my admin panel dosen't work 

In admin panel I have the error :  is currently unable to handle this request. HTTP ERROR 500

 

When I set the dev mode in true, my website have an error and admin panel works fine. 

I'll attach an image with the error on my website

 

The line 140 from ps_sharebuttons.php is

        $key = 'ps_sharebuttons|' . $params['product']['id_product'];

error.jpg

Link to comment
Share on other sites

  • 1 year 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...