Jump to content

Smarty Error


xXx_Hobbes_xXx

Recommended Posts

Warning: Smarty error: unable to read resource: "store_front.tpl" in C:\tshirtshop\libs\smarty\Smarty.class.php on line 1092

 

Here's the lines of my php

 

 function trigger_error($error_msg, $error_type = E_USER_WARNING)
    {
(1092->)        trigger_error("Smarty error: $error_msg", $error_type);
    }

Link to comment
https://forums.phpfreaks.com/topic/98832-smarty-error/
Share on other sites

  • 7 months later...

I had this same error.  I tried download the source files from the book.  But that caused more errors.

 

Warning: Smarty error: unable to read resource: "store_front.tpl" in C:\wamp\tshirtshop\libs\smarty\Smarty.class.php on line 1092

 

 

FIX: What caused my error was extremely simple overlook as your typing from the book.  I forget an "s" in the __contruct.  See, I did it again.  :P    Also make sure that before your "__construct function"  that is TWO(2) count them... TWO. underscores which is overlooked frequently.  That function is located in your application.php

 

This post would have helped me last night. 

 

 

Eli Geske

Link to comment
https://forums.phpfreaks.com/topic/98832-smarty-error/#findComment-690096
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.