Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

smarty works on localhost butdoesn't work on hosting server.

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Installation and Setup
View previous topic :: View next topic  
Author Message
amit.imcc
Smarty n00b


Joined: 08 Sep 2011
Posts: 2

PostPosted: Thu Sep 08, 2011 12:36 pm    Post subject: smarty works on localhost butdoesn't work on hosting server. Reply with quote

hi,

i am working on a php project and have put smarty folder in my project folder. my libs.ins.php file is as follows.
<?php
$fixpath = dirname(__FILE__);
define ("SMARTY_DIR","/smarty");
require_once (SMARTY_DIR."Smarty.class.php");
$smarty = new Smarty;
$smarty->compile_dir = "$fixpath/compile";
$smarty->template_dir = "$fixpath/templates";
$smarty->image_dir = "$fixpath/Images";
$smarty->css_dir = "$fixpath/CSS";
?>

i include this file in other file where smarty related coding in required.everything is working fine at localhost. i uploaded complete folder structure of my project on my hosting server(in my case it is netfirms.com) . but on hosting server it throws server error 500. could you please give me some suggestions to fix it.

thanks in advance.
Amit
Back to top
View user's profile Send private message Send e-mail
mohrt
Administrator


Joined: 16 Apr 2003
Posts: 7368
Location: Lincoln Nebraska, USA

PostPosted: Thu Sep 08, 2011 3:47 pm    Post subject: Reply with quote

500 error means, check your apache/php logs for the error. My bet is that the paths are different on the live server.
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Installation and Setup All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP