Free Web Hosting Forum
(#1 (permalink))
Old
Junior Member
JackDany is on a distinguished road
 
Posts: 1
Join Date: May 2012
Exclamation Smarty Error - 05-13-2012, 04:06 AM

Hello,

I was hosting my site in another host (paid) and passed now here. All was working, and now, I imported databases and all files from last version working.

Now my index is showing Smarty errors, I asked a developer and they told me to contact you to repare this as it's a server side. Please do.

Here are errors :
Warning: include() [function.include]: open_basedir restriction in effect. File(/usr/local/apache/htdocs/asset/lib/template.engine/Smarty.class.php) is not within the allowed path(s): (/home/:/usr/lib/php:/tmp) in /home/a9777282/public_html/index.php on line 26

Free Web Hosting

PHP Error Message

Warning: include(/usr/local/apache/htdocs/asset/lib/template.engine/Smarty.class.php) [function.include]: failed to open stream: Operation not permitted in /home/a9777282/public_html/index.php on line 26

Free Web Hosting

PHP Error Message

Warning: include() [function.include]: Failed opening '/usr/local/apache/htdocs/asset/lib/template.engine/Smarty.class.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/a9777282/public_html/index.php on line 26

Free Web Hosting

PHP Error Message

Fatal error: Class 'Smarty' not found in /home/a9777282/public_html/index.php on line 29
Reply With Quote
Sponsored Links
(#2 (permalink))
Old
Senior Member
grace1004 is on a distinguished road
 
Posts: 735
Join Date: Dec 2010
Default 05-14-2012, 01:34 AM

Search Smarty.class.php file and if you find--$_SERVER['DOCUMENT_ROOT']--please change:

From: $_SERVER['DOCUMENT_ROOT']
To: dirname(__FILE__)

If not working, please show the path for included file in your index.php page--something like:

include "../../Smarty.class.php";

Last edited by grace1004; 05-14-2012 at 01:37 AM.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.5.2
vBulletin Skin developed by: vBStyles.com