Spidersiteme Posted December 5, 2012 Share Posted December 5, 2012 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 More sharing options...
Mr S Posted December 6, 2012 Share Posted December 6, 2012 (edited) 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 December 6, 2012 by HA!*!*Y (see edit history) 4 Link to comment Share on other sites More sharing options...
balburl Posted September 13, 2013 Share Posted September 13, 2013 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 193in /************/classes/Tools.php on line 1777Warning: Function addCSS() is deprecated in /*****/*****/*****/modules/belvg_footer/belvg_footer.php on line 194in /*****/*****/*****/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 More sharing options...
Mr S Posted September 15, 2013 Share Posted September 15, 2013 edit file /modules/belvg_footer/belvg_footer.php find and replace from: Tools::addCSS(' To: $this->context->controller->addCSS( From: Tools::addJS(' To: $this->context->controller->addJS(' 1 Link to comment Share on other sites More sharing options...
Gmariano Posted September 28, 2013 Share Posted September 28, 2013 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 271in /home/fenixdep/public_html/classes/Tools.php on line 1953Warning: Function addCSS() is deprecated in /home/fenixdep/public_html/modules/cleancarroussel/cleancarroussel.php on line 272in /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 More sharing options...
Rhobur Posted November 26, 2013 Share Posted November 26, 2013 (edited) 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 November 26, 2013 by Rho_bur (see edit history) Link to comment Share on other sites More sharing options...
wojtas26 Posted January 23, 2014 Share Posted January 23, 2014 (edited) 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 January 23, 2014 by wojtas26 (see edit history) Link to comment Share on other sites More sharing options...
vekia Posted January 24, 2014 Share Posted January 24, 2014 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 More sharing options...
unxevio Posted January 25, 2014 Share Posted January 25, 2014 Notice: Undefined variable: shared_urls in /home/.../modules/cookieslaw/cookieslaw.php on line 159 Link to comment Share on other sites More sharing options...
vekia Posted January 26, 2014 Share Posted January 26, 2014 if anyone here has got different issues than issues described in FIRST post here, create new topics. Link to comment Share on other sites More sharing options...
xInsomnia Posted June 6, 2016 Share Posted June 6, 2016 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 you guys have an idea and advice for this problem? thanks for any help Link to comment Share on other sites More sharing options...
Recommended Posts