PDA

View Full Version : Admincp Warnin & Fatal Error


K!nG
12-14-2010, 03:34 PM
Hi,
My admincp was working totally fine till few mins ago and when i temporarily disabled the plugins by adding,

define('DISABLE_HOOKS', true);

and after that when i tried to make some changes by admincp i get this message.


Warning: require_once(/home/****/public_html/******.com/includes/init.php) [function.require-once]: failed to open stream: No such file or directory in /home/****/public_html/******.com/admincp/global.php on line 37

Fatal error: require_once() [function.require]: Failed opening required '/home/****/public_html/******.com/includes/init.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/****/public_html/******.com/admincp/global.php on line 37
Can anyone please help me out with this one ????

Thanks in advance.

Brandon Sheley
12-14-2010, 05:01 PM
do you have the files in place that the error is saying your missing?

maybe this thread will help
http://www.vbulletin.com/forum/showthread.php?296538-Please-help-with-what-this-means

K!nG
12-14-2010, 05:06 PM
All files r still there and I didn't make any changes to them it was working fine n then all of sudden I got this error. Init.php n global.php both files r there

TheLastSuperman
12-14-2010, 05:15 PM
King make sure the edit is directly below <?php i.e.

<?php
define('DISABLE_HOOKS', true);
/*================================================= =====================*\

When done comment it out by adding // in front i.e.

<?php
// define('DISABLE_HOOKS', true);
/*================================================= =====================*\

Then you don't have to hunt it down later on ;).

Also what are you using to edit? sometimes using wordpad or notepad on a windows pc then pasting code into interfaces on a linux/unix can add in extra characters when posting and you may not even see them initially so be sure to use something free like notepad++ or similar when editing files ;).

K!nG
12-14-2010, 05:26 PM
Hi superman,
well since this happend I already removed that hook coding but it still gives me same errors.
I removed because I thought that was the reason :( but I ll defintly rechk to make sure there is no extra space or line left.

--------------- Added 1292399099 at 1292399099 ---------------

Hi.
i am still stuck with same prob...... still getting same errors tried several things but nothing worked out.. can someone help me in solving this issue so i can access my admincp :(
Thanks in advance. :(

K!nG
12-16-2010, 12:48 PM
Hey guys,
Thanks to all of you for ur help but actual problem was i was missing the whole "includes" folder from my site directory eventhough i don't know how can that happen but tht was actual reason..... just wanted to share if someone get into this situation in the near future this might help :) :) Thanks for those who helped in anyways :)