Jump to content

Smarty problem after migration on new server


Recommended Posts

Hi,

 

First I have to apology for my bad english.

I have problem with Smarty after migration on new server, i have tryed everything what i found in forums here or somewhere else. It gives me this error:

 

Fatal error: Uncaught exception 'SmartyException' with message 'unable to write file /mnt/swraid/data/r/rybarskepotreby-sy.cz/www/shop/cache/smarty/compile/wrt517adfbc920c81.51779395' in /mnt/swraid/data/r/rybarskepotreby-sy.cz/www/shop/tools/smarty/sysplugins/smarty_internal_write_file.php:44 Stack trace: #0 /mnt/swraid/data/r/rybarskepotreby-sy.cz/www/shop/tools/smarty/sysplugins/smarty_internal_template.php(201): Smarty_Internal_Write_File::writeFile('/mnt/swraid/dat...', '<?php /* Smarty...', Object(Smarty)) #1 /mnt/swraid/data/r/rybarskepotreby-sy.cz/www/shop/tools/smarty/sysplugins/smarty_internal_templatebase.php(155): Smarty_Internal_Template->compileTemplateSource() #2 /mnt/swraid/data/r/rybarskepotreby-sy.cz/www/shop/classes/module/Module.php(1599): Smarty_Internal_TemplateBase->fetch() #3 /mnt/swraid/data/r/rybarskepotreby-sy.cz/www/shop/modules/favoriteproducts/favoriteproducts.php(105): ModuleCore->display('/mnt/swraid/dat...', 'favoriteproduct...') #4 /mnt/swraid/data/r/rybarskepotreby-sy.cz/www/shop/classes in /mnt/swraid/data/r/rybarskepotreby-sy.cz/www/shop/tools/smarty/sysplugins/smarty_internal_write_file.php on line 44

 

To prevent questions:

 

I have changed chmod on smarty folders to 777 or 755 it does the same.

Wierd is that everyone who's got similar problems (but noone exactly the same as mine) have folder smarty/compile/... but i've got only smary/plugins and smarty/sysplugins ...

 

It would be wonderfull if someone helps me,

 

Best regards, Martin

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

Thanks for reply!

 

I have tryed many things. when i disable favoriteproducts module, it will show this:

...

.... /mnt/swraid/data/r/rybarskepotreby-sy.cz/www/shop/modules/feeder/feeder.php(78): ModuleCore->display('/mnt/swraid/dat...', 'feederHeader.tp...') #4 /mnt/swraid/data/r/rybarskepotreby-sy.cz/www/shop/classes/Hook.php(419): Feede in /mnt/swraid/data/r/rybarskepotreby-sy.cz/www/shop/tools/smarty/sysplugins/smarty_internal_write_file.php on line 44

instead of favoriteproducts module problem...

 

When i'm trying to access administration folder, it will show this:

Fatal error: Uncaught exception 'SmartyException' with message 'unable to write file /mnt/swraid/data/r/rybarskepotreby-sy.cz/www/shop/cache/smarty/compile/wrt517d12b4617262.63228093' in /mnt/swraid/data/r/rybarskepotreby-sy.cz/www/shop/tools/smarty/sysplugins/smarty_internal_write_file.php:44 Stack trace: #0 /mnt/swraid/data/r/rybarskepotreby-sy.cz/www/shop/tools/smarty/sysplugins/smarty_internal_template.php(201): Smarty_Internal_Write_File::writeFile('/mnt/swraid/dat...', '<?php /* Smarty...', Object(Smarty)) #1 /mnt/swraid/data/r/rybarskepotreby-sy.cz/www/shop/tools/smarty/sysplugins/smarty_internal_templatebase.php(155): Smarty_Internal_Template->compileTemplateSource() #2 /mnt/swraid/data/r/rybarskepotreby-sy.cz/www/shop/classes/controller/AdminController.php(1152): Smarty_Internal_TemplateBase->fetch() #3 /mnt/swraid/data/r/rybarskepotreby-sy.cz/www/shop/classes/controller/Controller.php(185): AdminControllerCore->display() #4 /mnt/swraid/data/r/rybarskepotreby-sy.cz/www/shop/classes/Dispatcher.php(348): Controller in /mnt/swraid/data/r/rybarskepotreby-sy.cz/www/shop/tools/smarty/sysplugins/smarty_internal_write_file.php on line 44

 

So I don't think it's problem of exact module, it will be some general problem.

 

Thank's for reply again!

 

Martin

Link to comment
Share on other sites

I don't know what to do now, i have to run my eshop in 2 days!

On localhost in my desktop it was fine. when i run it in localhost/.../shop it just works fine.

 

So, you don't know any fix on this? :(

Link to comment
Share on other sites

hello,

 

I'm waiting too, the server provider doesn't reply me :X I will surely leave a results here!

 

Thanks for the info, anyway, you tried to disable module that I mentioned in my first reply here?

Link to comment
Share on other sites

k can you post the url of your shop and what steps have you followed for migration can you post the steps.. please elaborate the things you have done... you got a smarty error on which page ... post the error page as screen shot. you are able to login to the back office or not? post all the steps u have done.. before migration it is working know?

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

Ok,

 

url: http://rybarskepotreby-sy.cz/shop/

 

I modified prestashop in my localhost server... then uploaded to ftp (changed manualy in database ps_shop_url) and then occured this problem...

 

I've got smarty error on every page, I can't even log to backoffice...

 

Frontoffice error:

frontoffice_err.png

Backoffice error:

backoffice_err.png

  • I have enlarged memory to 256M
  • Tryed many changes of smarty folders (by many tutorials)
  • Desibled module where was the fatal error (it only shows other module problem)
  • Just everything what found google isn't working :(

Maybe I don't remember everything what I did to solve this...

 

thanks in advance, Martin

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

hello kilca wat u have done for transfer is wrong ... have u followed the steps for transferring to a web in the prestashop user guide.. u no need to update the database directly instead.. have u taken the backup of your local store which is being uploaded to the server.

u can again do the transfer follow the steps given in prestashop user guide... if you need help post me...

Link to comment
Share on other sites

  • 5 months later...

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