Jump to content

How i can turn off "php notices" on my hosting


Recommended Posts

Hi,

 

On 2015/02/11, i have Installed the module "CSV Export" by downloading from this link https://oavea.com/...

 

And because of difficulties to run this module, I reported the problem to the developer.
He advised me "Can you turn off" php notices "on your hosting, so if That Will fix this issue."

But I'm not doing that, I've asked him, he did not answer me ... :(

I invited you as a participant about, to better understand what happened;)
Hoping to be quite explanatory (thank you for your understanding, I am French and I have a little difficulty with the English language ...)

 

Bests regards
Claude

 

(French Prestashop apprentice:) - The prestashop i use is 1.5.5.0

Link to comment
Share on other sites

I tried the module and when I went to export products it showed a pop up warning in the export options window:

 

Notice: Undefined index: export_active in /home/nathalieur/www/boutique/cache/smarty/compile/10/ec/db/10ecdb48abd30a1083ef0aa41d7360dec11e31d8.file.form.tpl.php on line 377
checked="checked" /> no, export all products. Notice: Undefined index: export_active in /home/nathalieur/www/boutique/cache/smarty/compile/10/ec/db/10ecdb48abd30a1083ef0aa41d7360dec11e31d8.file.form.tpl.php on line 377
/>

exportproducts_error-01.jpg

Hoping to be more explanation on this issue,
Cordially.

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

  • 1 year later...

you get warnings in the header of the site or only in a log file?

 

Hi!

I have error

Notice: Trying to get property of non-object in /var/www/vhosts/site/dir/classes/Tools.php on line 1222

 in the header of the site.

Line 1222:

        return Tools::getAdminToken($tab.(int)Tab::getIdFromClassName($tab).(int)$context->employee->id);
 /**
    * Tokenize a string
    *
    * @param string $string string to encript
    */
    public static function getAdminToken($string)
    {
        return !empty($string) ? Tools::encrypt($string) : false;
    }

    public static function getAdminTokenLite($tab, Context $context = null)
    {
        if (!$context) {
            $context = Context::getContext();
        }
        return Tools::getAdminToken($tab.(int)Tab::getIdFromClassName($tab).(int)$context->employee->id);
    }

    public static function getAdminTokenLiteSmarty($params, &$smarty)
    {
        $context = Context::getContext();
        return Tools::getAdminToken($params['tab'].(int)Tab::getIdFromClassName($params['tab']).(int)$context->employee->id);
    }
Link to comment
Share on other sites

 

Hi!

I have error

Notice: Trying to get property of non-object in /var/www/vhosts/site/dir/classes/Tools.php on line 1222

 in the header of the site.

Line 1222:

        return Tools::getAdminToken($tab.(int)Tab::getIdFromClassName($tab).(int)$context->employee->id);
 /**
    * Tokenize a string
    *
    * @param string $string string to encript
    */
    public static function getAdminToken($string)
    {
        return !empty($string) ? Tools::encrypt($string) : false;
    }

    public static function getAdminTokenLite($tab, Context $context = null)
    {
        if (!$context) {
            $context = Context::getContext();
        }
        return Tools::getAdminToken($tab.(int)Tab::getIdFromClassName($tab).(int)$context->employee->id);
    }

    public static function getAdminTokenLiteSmarty($params, &$smarty)
    {
        $context = Context::getContext();
        return Tools::getAdminToken($params['tab'].(int)Tab::getIdFromClassName($params['tab']).(int)$context->employee->id);
    }

try replacing the tools.php file with a new version of a most recent prestashop

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