Jump to content

[SOLVED] Fatal error: Uncaught exception 'SmartyException' with message 'unable to write file


Recommended Posts

when I try to enter the admin I get this error:

 

 

Fatal error: Uncaught exception 'SmartyException' with message 'unable to write file /home/u774925054/public_html/cache/smarty/compile/d9/96/21/wrt53e153b7ec5235.84176972' in /home/u774925054/public_html/tools/smarty/sysplugins/smarty_internal_write_file.php:44 Stack trace: #0 /home/u774925054/public_html/tools/smarty/sysplugins/smarty_internal_template.php(201): Smarty_Internal_Write_File::writeFile('/home/u77492505...', 'compileTemplateSource() #2 /home/u774925054/public_html/classes/controller/AdminController.php(1480): Smarty_Internal_TemplateBase->fetch('/home/u77492505...') #3 /home/u774925054/public_html/classes/controller/Controller.php(198): AdminControllerCore->display() #4 /home/u774925054/public_html/classes/Dispatcher.php(373): ControllerCore->run() #5 /home/u774925054/public_html/admin2114/index.php(54): DispatcherCore->dispatch() #6 {main} thrown in /home/u774925054/public_html/tools/smarty/sysplugins/smarty_internal_write_file.php on line 44

 

please help 

 

post-773954-0-23029100-1407276401_thumb.jpg

Link to comment
Share on other sites

  • 2 months later...

Hello, our cache folder and subfolders are created with permissions 771

 

so we gat PHP Fatal error:  Uncaught exception 'SmartyException' with message 'unable to write file on /tools/smarty/sysplugins/smarty_internal_write_file.php:44

 

why are setted to 771 instead of 755 ?

 

How can we solve ?

Link to comment
Share on other sites

  • 5 months later...

Hi,

 

Same error on my site. Permissions are set to 755 for tools and smarty folder. What permissions it's ok to set, 775?

 

Thank you.

 

 

when I try to enter the admin I get this error:

 

 

Fatal error: Uncaught exception 'SmartyException' with message 'unable to write file /home/u774925054/public_html/cache/smarty/compile/d9/96/21/wrt53e153b7ec5235.84176972' in /home/u774925054/public_html/tools/smarty/sysplugins/smarty_internal_write_file.php:44 Stack trace: #0 /home/u774925054/public_html/tools/smarty/sysplugins/smarty_internal_template.php(201): Smarty_Internal_Write_File::writeFile('/home/u77492505...', 'compileTemplateSource() #2 /home/u774925054/public_html/classes/controller/AdminController.php(1480): Smarty_Internal_TemplateBase->fetch('/home/u77492505...') #3 /home/u774925054/public_html/classes/controller/Controller.php(198): AdminControllerCore->display() #4 /home/u774925054/public_html/classes/Dispatcher.php(373): ControllerCore->run() #5 /home/u774925054/public_html/admin2114/index.php(54): DispatcherCore->dispatch() #6 {main} thrown in /home/u774925054/public_html/tools/smarty/sysplugins/smarty_internal_write_file.php on line 44

 

please help 

 

attachicon.giferror.jpg

Link to comment
Share on other sites

[17-Apr-2015 13:53:04 Asia/Kolkata] PHP Fatal error:  Call to a member function getOrderTotal() on a non-object in /home/bsjewnpi/public_html/babosasakhijewellery.com/cache/smarty/compile/8e/9c/72/8e9c7204a9dad450814f74d426f352553ffe69dd.file.blockcart.tpl.php on line 79

 

Error Plz Help

Link to comment
Share on other sites

Hello, my prestashop version is 1.6.14.

I have this error in backoffice and frontoffice ¿can you help me please?

 

Fatal error: Uncaught --> Smarty: unable to write file /homepages/33/d533407357/htdocs/cache/smarty/compile/19/16/2a/wrt5537c09ab10577_73729678 <-- thrown in /homepages/33/d533407357/htdocs/tools/smarty/sysplugins/smarty_internal_write_file.php on line 46

 

Thankyou

Link to comment
Share on other sites

  • 2 weeks later...

Same problem:

 

tools/smarty/sysplugins/smarty_internal_write_file.php on line 46

 

 

Prestashop 1.6.0.14

 

 

When I try to change the permissions I receive the following message:

 

550 /datos/web/tools/smarty: No existe el fichero o el directorio "  in Engliesh will be  Does'nt exist the file or the folder

 

 

But I can see it 

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

Hello,

I changed the permission to 777 to cache/smarty and all directories and files to try but I have always the same problem :(

 

Fatal error: Uncaught --> Smarty: unable to write file /var/www.../cache/smarty/cache/blocktopmenu/0/product/1/3/1/0/0/0/0/35905/a1/46/10/wrt555730710627c1_26909557 <-- thrown in /var/www/.../tools/smarty/sysplugins/smarty_internal_write_file.php on line 46

 

The only way to not have this problem it's to delete cache and compile directories manualy but few minutes later the problem come back randomly....

Link to comment
Share on other sites

I'm having this same issue too. I upgraded from 1.5 and have been having numerous issues that seem to be permission related, but all of my permissions are set to 755.  At first, it wouldn't let me change my logo despite my best attempts. Then, upon trying to change some of the graphics in my theme, it wouldn't allow the update.  So I cleared my Smarty cache and now it won't do anything.  The full error message is: 

 

Fatal error: Uncaught --> Smarty: unable to write file /sites/httpdocs/shop2/cache/smarty/compile/e3/e2/4e/wrt555de84c3db0a5_50849981 <-- thrown in /sites/httpdocs/shop2/tools/smarty/sysplugins/smarty_internal_write_file.php on line 46

 

Without DevMode turned on, it's simply just a white page instead of my shop.  

Link to comment
Share on other sites

  • 1 month later...

Fatal error: Uncaught --> Smarty: unable to write file C:\xampp\htdocs\prestashop/cache/smarty/compile\24\5e\f6\245ef6004940298e98bd741433b29e31989e4e90.file.header.tpl.php <-- thrown in C:\xampp\htdocs\prestashop\tools\smarty\sysplugins\smarty_internal_write_file.php on line 74

 

i have problem...any one could help me...?

my prestashop version 1.6.1.0

Link to comment
Share on other sites

  • 4 weeks later...

hi,,,,,

 

we are getting [PrestaShop] Fatal error in module file :/home/hindiso/public_html/tools/smarty/sysplugins/smarty_internal_write_file.php:

Uncaught --> Smarty: unable to write file /home/hindiso/public_html/cache/smarty/compile/c1/95/1d/wrt55c98497150953_99789384 <-- thrown

 

 on website "http://hindisongskaraoke.com/" frontend working fine and backend some tab also working fine but when we are clicking on module tab getting this error

 

please help me to fix this error.

Link to comment
Share on other sites

Double check the amount of space on your server's hard drive.  Hard drive space and permissions seem to be the biggest troubles here.  My problem was in customizations to some of the PrestaShop files made the upgrade not work sufficiently and had to go back and completely rebuild it from scratch instead of doing an upgrade.  For the background on yours, is it an upgrade from a previous version?  Have you installed any custom modules? What are the permissions on your Modules folder?

Grace and Peace,

Jeff

  • Thanks 1
Link to comment
Share on other sites

just delete........ chachfs directory content.........  previous issue resolved but getting one warning... cache/purifier does not exist, please create or change using %Cache.SerializerPath

what is this....how can be resolve.....

Link to comment
Share on other sites

  • 4 months later...
  • 2 weeks later...

Hello I have a similar problem, my back-office (dashboard/administrator) wouldn't show anything but a blank white page. After i switched on debug mode I got the following explanation:

Fatal error: Uncaught --> Smarty: Unable to load template file 'helpers/form/form.tpl' <-- thrown in E:\HostingSpaces\User\mywebsite.com\wwwroot\tools\smarty\sysplugins\smarty_internal_templatebase.php on line 129

 

I've tried to upload newer "fresh" versions of prestashop and to delete the database and bring it back with backups nothing worked. I changed the rights for the whole tools folder, and I have deleted al content of directories /cache/smarty/cache/ except the file index.php and cache/smarty/compile/ also except file index.php. But nothing helped this morning everything was working until I tried to switch the sub-domain to the main domain for updates.

 

I'm currently working with Prestashop version: 1.6.1.4

 

Strangely enough both of the websites have the front-desk working without any problem.

 

*Obviously i've changed the details in the error message to general info for privacy reasons.

 

Can anyone please help me with this!!!!!!

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

  • 3 weeks later...
  • 2 weeks later...

Hello

My store in prestashop apear this error :(

 

Fatal error: Uncaught --> Smarty: unable to write file /var/www/prestashop/cache/smarty/compile/d2/67/c2/wrt56c26d521a8b47_01518703 <-- thrown in /var/www/prestashop/tools/smarty/sysplugins/smarty_internal_write_file.php on line 46

 

i have clean /cache/smarty/compile and /cache/smarty/cache and problem not solved.

 

Please help me :(

Link to comment
Share on other sites

  • 1 month later...
  • 4 weeks later...
  • 2 weeks later...
  • 1 month later...
  • 3 months later...

I had almost same issue. For me I was getting this error message 

 

"PHP Fatal error:  Uncaught exception 'ImagickException' with message 'WriteBlob Failed `/home/beaujnkb/public_html/new/cache/tcpdf/"

 

I fixed it by going to tools/tcpdf/ - Here I found a cache directory and changed via cpanel the file permissions from 0775 to 0771 - the same file permissions i.e. 0771 are the default file permissions for the main cache directories i.e. smarty/cache and smarty/compile

Link to comment
Share on other sites

  • 7 months later...

Pessoal estou com esse erro ao tentar finalizar uma venda pelo modulo Cash on delivery

Fatal error: Uncaught exception 'ImagickException' with message 'WriteBlob Failed `/home/u567967610/public_html/cache/tcpdf/mska_c073df205aa290c308bb07145d6c673e' @ error/png.c/MagickPNGErrorHandler/1630' in /home/u567967610/public_html/tools/tcpdf/tcpdf.php:8618 Stack trace: #0 /home/u567967610/public_html/tools/tcpdf/tcpdf.php(8618): Imagick->writeimage('/home/u56796761...') #1 /home/u567967610/public_html/tools/tcpdf/tcpdf.php(8078): TCPDF->ImagePngAlpha('/home/u56796761...', 10.980722222222, -26.827611111111, 140, 104, 47.489316239315, 35.277777777778, 'PNG', '', 'B', false, 300, '', 'c073df205aa290c...') #2 /home/u567967610/public_html/tools/tcpdf/tcpdf.php(23818): TCPDF->Image('/home/u56796761...', 10.980722222222, -26.827611111111, 47.489316239315, 35.277777777778, '', '', 'B', false, 300, '', false, false, 0, false, false, true) #3 /home/u567967610/public_html/tools/tcpdf/tcpdf.php(23214): TCPDF->openHTMLTagHandler(Array, 2, true) #4 /home/u567967610/public_html/tools/tcpdf/tcpdf.php(6724): TCPDF->writeHTML('<cssa in /home/u567967610/public_html/tools/tcpdf/tcpdf.php on line 8618

Link to comment
Share on other sites

  • 4 weeks later...

All my products with long friendly url's changed permissions from 755 to 771 then started to give error 500. I fixed this by shortening the product title then selecting Generate on the product SEO page to regenerate the new Friendly URL. This fixed my error 500 without deleting any files.

Link to comment
Share on other sites

  • 1 month later...

Hola.. yo tenia el mismo problema en prestashop... pero hice algo que lo soluciono..

Aquí les comparto espero que les sirva. 

 

Borre todo el cache, ingresando al Cpanel como administrador, y de ahí volví a restaurar lo eliminado.. y se restauro por completo mi web.

Link to comment
Share on other sites

  • 1 month later...
×
×
  • Create New...