Jump to content

Error ! public_html/tools/smarty/sysplugins/smarty_internal_write_file.php on line 46


Recommended Posts

Hi Guys

 

I would be very happy if someone could help me with this problem - apparently Google (my friend who normally helps me) could not give me the answer!

 

I get the following message in my error_log

PHP Fatal error: Uncaught --> Smarty: unable to write file /home/sayskydk/public_html/cache/smarty/compile/04/f3/33/wrt54aac43ba92986_24505309 <--
thrown in /home/sayskydk/public_html/tools/smarty/sysplugins/smarty_internal_write_file.php on line 46

 

and I get blank (white) page :(

 

I have attached a screenshot of line 46 !

 

Thanks for helping me

 

Cheers,

Lars

http://shop.saysky.dk

 

post-610256-0-82596100-1420575088_thumb.png

Link to comment
Share on other sites

  • 1 month later...
  • 9 months later...

i have the same error...i stopped using my store due to personal circumstances and have just re-activated the domain, the backoffice still appears the same, im able to view my products etc but soon as i try to view modules i get

 

Fatal error: Uncaught --> Smarty: unable to write file /home/exposecl/public_html/cache/smarty/compile/e9/3d/af/wrt566a5931937d32_75098907 <-- thrown in /home/exposecl/public_html/tools/smarty/sysplugins/smarty_internal_write_file.php on line 46

 

did anyone manage to figure the resolution out?

 

Cheers

Link to comment
Share on other sites

i have the same error...i stopped using my store due to personal circumstances and have just re-activated the domain, the backoffice still appears the same, im able to view my products etc but soon as i try to view modules i get

 

Fatal error: Uncaught --> Smarty: unable to write file /home/exposecl/public_html/cache/smarty/compile/e9/3d/af/wrt566a5931937d32_75098907 <-- thrown in /home/exposecl/public_html/tools/smarty/sysplugins/smarty_internal_write_file.php on line 46

 

did anyone manage to figure the resolution out?

 

Cheers

 

Hi, maybe these posts will help:

https://www.prestashop.com/forums/topic/348731-solved-fatal-error-uncaught-exception-smartyexception-with-message-unable-to-write-file/

https://www.prestashop.com/forums/topic/159566-solved-prestashop-front-office-error-white-page/

 

all posts seem related to permission issue, here is total search results:

https://www.google.com/search?q=smarty_internal_write_file.php+on+line+46&oq=smarty_internal_write_file.php+on+line+46&aqs=chrome..69i57j69i60&sourceid=chrome&es_sm=0&ie=UTF-8#q=smarty_internal_write_file.php+on+line+46+site:www.prestashop.com

Link to comment
Share on other sites

  • 1 year later...

I think folder premission to not grand write access to the user under which the webserver is running.

 

Explanation:

Smarty is a caching mechanism which compiles files and saves the executed result in static files.

This requirtes write access the the respective folders when new cache files have to be written to disk.

 

I would try to manually delete all files in ../cache/compile /cache/smarty/compile and ./cache/smarty/cache WITH the exception of index.php files in both path.

Then check, if the error persits.

If yes, you might want to check your directory permissions. The user or user group from your webserver needs the write flag to be set.

Edited by Scully (see edit history)
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...