nstrydom Posted September 26, 2012 Share Posted September 26, 2012 I have problems with modules that used to work, but now does not work at all. According to the error log this error seems to occur every time the $this->smarty is called... I get the following error: PHP Fatal error: Call to a member function assign() on a non-object Please see the some of the log details: [25-Sep-2012 15:43:00] PHP Fatal error: Access to undeclared static property: Smarty::$_CHARSET in /home/bushsmqz/public_html/shop/tools/smarty/plugins/modifiercompiler.escape.php on line 30 [25-Sep-2012 15:43:04] PHP Fatal error: Access to undeclared static property: Smarty::$_CHARSET in /home/bushsmqz/public_html/shop/tools/smarty/plugins/modifiercompiler.escape.php on line 30 [25-Sep-2012 15:43:12] PHP Fatal error: Access to undeclared static property: Smarty::$_CHARSET in /home/bushsmqz/public_html/shop/tools/smarty/plugins/modifiercompiler.escape.php on line 30 [25-Sep-2012 15:44:13] PHP Fatal error: Access to undeclared static property: Smarty::$_CHARSET in /home/bushsmqz/public_html/shop/tools/smarty/plugins/modifiercompiler.escape.php on line 30 [25-Sep-2012 15:44:24] PHP Fatal error: Access to undeclared static property: Smarty::$_CHARSET in /home/bushsmqz/public_html/shop/tools/smarty/plugins/modifiercompiler.escape.php on line 30 [25-Sep-2012 19:51:16] PHP Fatal error: Call to a member function assign() on a non-object in /home/bushsmqz/public_html/shop/modules/carriercompare/carriercompare.php on line 123 [26-Sep-2012 09:09:20] PHP Fatal error: Call to a member function assign() on a non-object in /home/bushsmqz/public_html/shop/modules/carriercompare/carriercompare.php on line 123 [26-Sep-2012 10:06:53] PHP Fatal error: Call to a member function assign() on a non-object in /home/bushsmqz/public_html/shop/modules/carriercompare/carriercompare.php on line 123 [26-Sep-2012 10:07:07] PHP Fatal error: Call to a member function assign() on a non-object in /home/bushsmqz/public_html/shop/modules/carriercompare/carriercompare.php on line 123 [26-Sep-2012 10:07:08] PHP Fatal error: Call to a member function assign() on a non-object in /home/bushsmqz/public_html/shop/modules/carriercompare/carriercompare.php on line 123 [26-Sep-2012 10:07:09] PHP Fatal error: Call to a member function assign() on a non-object in /home/bushsmqz/public_html/shop/modules/carriercompare/carriercompare.php on line 123 [26-Sep-2012 10:07:09] PHP Fatal error: Call to a member function assign() on a non-object in /home/bushsmqz/public_html/shop/modules/carriercompare/carriercompare.php on line 123 [26-Sep-2012 10:07:10] PHP Fatal error: Call to a member function assign() on a non-object in /home/bushsmqz/public_html/shop/modules/carriercompare/carriercompare.php on line 123 [26-Sep-2012 10:07:10] PHP Fatal error: Call to a member function assign() on a non-object in /home/bushsmqz/public_html/shop/modules/carriercompare/carriercompare.php on line 123 I have 2 modules that cause my shop not to function... the carriercompare and the ganalytics I am using prestashop v 1.4.8.3. I cannot upgrade to 1.5 as paypal module does not work in this version. How do I fix these modules? Thanks! Link to comment Share on other sites More sharing options...
lucoral Posted September 26, 2012 Share Posted September 26, 2012 Aloha! Let's try a couple of things - no guarantee that I can help with this. go to the preferences tab, and then the performance sub-tab. Set the Smarty "force compile" to YES and "cache" to NO. That will force your pages to be rebuilt. Next, delete the files in the following directories: /tools/smarty/cache/ delete all the files. /tools/smarty/compile/ delete all the files EXCEPT for the index.php file. Does that get you back up and running? Do you have the default store available to you still (in the administration panel, modules tab, themes sub-tab)? Try using that instead of your modified theme. You are working on a copy of the default theme, yes? You say that this is a roll back, from what version? Good luck! Martin Link to comment Share on other sites More sharing options...
nstrydom Posted September 27, 2012 Author Share Posted September 27, 2012 Hi Martin Thanks for the reply. Clearing the cache helped with a couple of the modules except the ganalytics and the carrier compare. I managed to fix them by changing the $smarty reference back to global $smarty; or public $smarty instead of using the context. I upgraded to 1.5 prestashop - found that my paypal modules etc. did not work and rolled back to 1.4.8.3 so perhaps my prestashop still thinks that it is version 1.5? Not sure. I'm up and running now with no issues.. so this is resolved. Thanks Link to comment Share on other sites More sharing options...
James - Psylince Posted October 2, 2012 Share Posted October 2, 2012 Hi guys, thanks for the assistance i also decided to try and upgrade my shop with a custom theme, and well it failed, i rolled back backup and also, blank screen - the advice to change the smarty to 2 instead of 3 (as it also says its incompatable with 1.5v) works great. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now