Jump to content

Errors and bugs how do i fix these


Recommended Posts

how do fix these

 

Warning: Function addCSS() is deprecated in /home/****/*******/******/blockcurrenciesfooter/blockcurrenciesfooter.php on line 52

in /home/****/ravecostume.com/classes/Tools.php on line 1735

 

Warning: Function addCSS() is deprecated in /home/****/*******/******/csslider/csslider.php on line 570

in /home/****/ravecostume.com/classes/Tools.php on line 1735

 

Warning: Function addJS() is deprecated in /home/****/*******/******/csslider/csslider.php on line 571

in /home/****/ravecostume.com/classes/Tools.php on line 1735

 

Warning: Function addCSS() is deprecated in /home/****/*******/******/lingerisblockhomespecial/lingerisblockhomespecial.php on line 30

in /home/****/ravecostume.com/classes/Tools.php on line 1735

 

Warning: Function addJS() is deprecated in /home/****/*******/******/lingerisblockhomespecial/lingerisblockhomespecial.php on line 31

in /home/****/ravecostume.com/classes/Tools.php on line 1735

 

Warning: Function get() is deprecated in /home/****/*******/******/csstaticblocks/csstaticblocks.php on line 466

in /home/****/ravecostume.com/classes/Tools.php on line 1735

 

Warning: Function get() is deprecated in /home/****/*******/******/csstaticblocks/csstaticblocks.php on line 466

Link to comment
Share on other sites

Here are some of the replacements

 

$cookie->isLogged()

$this->context->customer->isLogged()

 

Tools::addCSS(' YOUR_CSS.css');

$this->context->controller->addCSS(' YOUR_CSS.css', 'all');

 

 

Tools::addJS('YOUR_JS.js');

$this->context->controller->addJS('YOUR_JS.js', 'all');

 

In tamplet files

$cookie->isLogged()

$logged

 

for Categorys

$link->getPageLink(

$link->getCategoryLink(

 

for CMS pages

$link->getPageLink(

$link->getCMSCategoryLink(

Edited by HA!*!*Y (see edit history)
  • Like 4
Link to comment
Share on other sites

  • 9 months later...

I have the following errors and have no idea how to correct.  Please help!

 

 

Warning: Function addJS() is deprecated in /*****/**********/modules/belvg_footer/belvg_footer.php on line 193
in /************/classes/Tools.php on line 1777

Warning: Function addCSS() is deprecated in /*****/*****/*****/modules/belvg_footer/belvg_footer.php on line 194
in /*****/*****/*****/classes/Tools.php on line 1777

 

Thanks for any help.  Have contacted the author of the module but have not heard back yet.  Maybe a time difference.

 

Brenda

 
Link to comment
Share on other sites

  • 2 weeks later...

Hello! I have the following errors and have no idea how to correct.  Please I need help!

 

Warning: Function addJS() is deprecated in /home/fenixdep/public_html/modules/cleancarroussel/cleancarroussel.php on line 271
in /home/fenixdep/public_html/classes/Tools.php on line 1953

Warning: Function addCSS() is deprecated in /home/fenixdep/public_html/modules/cleancarroussel/cleancarroussel.php on line 272
in /home/fenixdep/public_html/classes/Tools.php on line 1953

 

Module from the creators of Guitar Pro :: More at Prestashop Module

Link to comment
Share on other sites

  • 1 month later...

But how is the path to file be referenced?

If for example I replace 

Tools::addCSS(($this->_path).($this->name).'.css', 'all');

with 

$this->context->controller->addCSS('listorgridswitch.css', 'all');

I loose formatting which means the css is not loaded.

I tried 

$this->context->controller->addCSS($this->_path).($this->name).'.css', 'all');

but renders a blank page.

PS 1.5.6.0

 

EDIT: edited the code to 

Tools::addCSS('listorgridswitch.css');
$this->context->controller->addCSS('listorgridswitch.css', 'all');

but still doesn't retain the style as I have changed into listorgridswitch.css

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

  • 1 month later...

Warning: Function isLogged() is deprecated in/var/www/clients/client0/web137/web/cache/smarty/compile/54c1681b38a1e63ab9fecb658f9510f46b36360e.file.my-account.tpl.php on line 129

in /var/www/clients/client0/web137/web/classes/Tools.php on line 1843 vojtech horvath

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

Warning: Function isLogged() is deprecated in/var/www/clients/client0/web137/web/cache/smarty/compile/54c1681b38a1e63ab9fecb658f9510f46b36360e.file.my-account.tpl.php on line 129

in /var/www/clients/client0/web137/web/classes/Tools.php on line 1843 vojtech horvath

your theme uses old method which is deprecated in new prestashop.

what you have to to do - is modification of my-account.tpl file to use new not deprecated functions.

instead of "isLogged" use just $logged variable to verify if customer is logged

Link to comment
Share on other sites

  • 2 years later...

hi i got 2 issue with my theme

the first problem was exactly same with this topic, and the problem was solve

the second problem you can see in my pict

 

error.png

 

you guys have an idea and advice for this problem? thanks for any help

Link to comment
Share on other sites

×
×
  • Create New...