Website showing error in config.inc. Please Help me

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
saleemawan
Forum Newbie
Posts: 4
Joined: Mon Mar 15, 2010 1:50 am

Website showing error in config.inc. Please Help me

Post by saleemawan »

My website was deleted from WHM. I have uploaded all site again. But now its showing following error message. Please help me.

Warning: require(home/sitename/public_html/smartyf/Smarty.class.php) [function.require]: failed to open stream: No such file or directory in /home/sitename/public_html/includes/config.inc on line 58

Warning: require(home/sitename/public_html/smartyf/Smarty.class.php) [function.require]: failed to open stream: No such file or directory in /home/sitename/public_html/includes/config.inc on line 58

Fatal error: require() [function.require]: Failed opening required 'home/sitename/public_html/smartyf/Smarty.class.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/sitename/public_html/includes/config.inc on line 58
User avatar
AbraCadaver
DevNet Master
Posts: 2572
Joined: Mon Feb 24, 2003 10:12 am
Location: The Republic of Texas
Contact:

Re: Website showing error in config.inc. Please Help me

Post by AbraCadaver »

Does this exist? 'home/sitename/public_html/smartyf/Smarty.class.php'
mysql_function(): WARNING: This extension is deprecated as of PHP 5.5.0, and will be removed in the future. Instead, the MySQLi or PDO_MySQLextension should be used. See also MySQL: choosing an API guide and related FAQ for more information.
User avatar
saleemawan
Forum Newbie
Posts: 4
Joined: Mon Mar 15, 2010 1:50 am

Re: Website showing error in config.inc. Please Help me

Post by saleemawan »

Yes the file 'home/sitename/public_html/smartyf/Smarty.class.php' exist in the folder. All other files are properly installed but still im facing this problem. I have even changed 777 for all folders.
User avatar
VladSun
DevNet Master
Posts: 4313
Joined: Wed Jun 27, 2007 9:44 am
Location: Sofia, Bulgaria

Re: Website showing error in config.inc. Please Help me

Post by VladSun »

I think it should be /home/sitename/public_html/smartyf/Smarty.class.php
instead of home/sitename/public_html/smartyf/Smarty.class.php
There are 10 types of people in this world, those who understand binary and those who don't
User avatar
saleemawan
Forum Newbie
Posts: 4
Joined: Mon Mar 15, 2010 1:50 am

Re: Website showing error in config.inc. Please Help me

Post by saleemawan »

Problem is solved buddies. There was some problem in files of the folder includes. I uploaded the copy of include folder again and its working now.
Post Reply