Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Install & Get Smarty working on SuSE 10
#1

Hi, I'm in desperate need of help here. My senior project is due in 2 weeks and I can't get this Smarty template program working which I need for it.

 

I'm building a online shopping cart system w/ mysql, apache 2, smarty & php. I've been messing with this stuff for days and I have absolutely had it. I tried the way this book sets it up, i've tried the instructions for the quick install of smarty. Im not sure if its my php setup or what. I keep receiving this error:

 

 



Code:
Warning: fetch(templates_c/%%45^45E^45E480CD%%index.tpl.php): failed to open stream: No such file or directory in /usr/share/php/smarty/Smarty.class.php on line 1258

Warning: fetch(): Failed opening 'templates_c/%%45^45E^45E480CD%%index.tpl.php' for inclusion (include_path='/usr/share/php') in /usr/share/php/smarty/Smarty.class.php on line 1258

Warning: _include(templates_c/%%55^55C^55C3DD28%%debug.tpl.php): failed to open stream: No such file or directory in /usr/share/php/smarty/Smarty.class.php on line 1925

Warning: _include(): Failed opening 'templates_c/%%55^55C^55C3DD28%%debug.tpl.php' for inclusion (include_path='/usr/share/php') in /usr/share/php/smarty/Smarty.class.php on line 1925




when i attempt to run the page. My templates_c folder is writable. Im just not sure if i have it in the right spot or what the problem is. I'm using SuSE 10. I don't know if this makes a difference or not.

 

Please help me or i'm doomed haha!

-Thanks in advance.

Reply
#2

A strange looking error.. which is easily solvable :)

 

All this is actually the permissions on the files and directories. Do:

 



Code:
# chmod 755 directory
# chmod 644 file




 

That will solve it :)

 

PS: it isn't looking for write permission .. inclusion - read permissions ;)

Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)