Jump to content

Smarty references break after roll back


Recommended Posts

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

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

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

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...