Getting Some PHP Message Insted Of My Website On My Domain

Ask about general coding issues or problems here.

Moderators: egami, macek, gesf

Post Reply
User avatar
walimbe
New php-forum User
New php-forum User
Posts: 10
Joined: Sun May 13, 2012 10:13 pm

Sun May 13, 2012 10:16 pm

Hello Friends Please Help Me. I am getting message on my web site http://www.charted4um.in and website is not loading. The Message Is

Code: Select all

Warning: require_once(/home/charted3/public_html/inc/init.php): failed to open stream: No such file or directory in /home/charted3/public_html/global.php on line 19 Fatal error: require_once(): Failed opening required '/home/charted3/public_html/inc/init.php' (include_path='.:/usr/share/pear:/usr/share/php') in /home/charted3/public_html/global.php on line 19
Thanks In Advance...!!
Please Help. :help: :help:
User avatar
macek
php-forum GURU
php-forum GURU
Posts: 277
Joined: Wed Aug 25, 2010 10:42 am
Contact:

Sun May 13, 2012 10:29 pm

You have

Code: Select all

required 'inc/init.php';
but this fil does NOT EXISTS! If you read the error log carefully you can read that directly from it!
User avatar
walimbe
New php-forum User
New php-forum User
Posts: 10
Joined: Sun May 13, 2012 10:13 pm

Sun May 13, 2012 10:31 pm

But How Please Please Explain..!!
User avatar
walimbe
New php-forum User
New php-forum User
Posts: 10
Joined: Sun May 13, 2012 10:13 pm

Sun May 13, 2012 10:32 pm

Should i create /init.php in inc folder ??
User avatar
macek
php-forum GURU
php-forum GURU
Posts: 277
Joined: Wed Aug 25, 2010 10:42 am
Contact:

Sun May 13, 2012 10:34 pm

"HOW??" FILE MUST exist if there is "require $file;". So the solution is to create that file, of course
User avatar
walimbe
New php-forum User
New php-forum User
Posts: 10
Joined: Sun May 13, 2012 10:13 pm

Sun May 13, 2012 10:37 pm

I have Created but diffrent message is coming the message is


Notice: Undefined variable: cache in /home/charted3/public_html/global.php on line 25 Fatal error: Call to a member function read() on a non-object in /home/charted3/public_html/global.php on line 25
User avatar
macek
php-forum GURU
php-forum GURU
Posts: 277
Joined: Wed Aug 25, 2010 10:42 am
Contact:

Sun May 13, 2012 10:39 pm

Is this really YOUR WEBSITE??

The file "init.php" usually contains many settings and if you deleted it it will not work. Try to load that file from backups
User avatar
walimbe
New php-forum User
New php-forum User
Posts: 10
Joined: Sun May 13, 2012 10:13 pm

Sun May 13, 2012 10:48 pm

I lost My backup Also please can u still help ??
User avatar
macek
php-forum GURU
php-forum GURU
Posts: 277
Joined: Wed Aug 25, 2010 10:42 am
Contact:

Sun May 13, 2012 10:53 pm

It is not possible, it will be so difficult to determine what you need, what you must set in that file.

You must read each error, in this you need to open "global.php on line 25" and see what executes there.
"Undefined variable cache", so some $cache must be there.
Call to member on a non-object - so that $cache must be some object ( $cache = new Some_Cache(); )
User avatar
walimbe
New php-forum User
New php-forum User
Posts: 10
Joined: Sun May 13, 2012 10:13 pm

Sun May 13, 2012 10:57 pm

Ok thanks for that i have an idea. i am downloading that whole website setup (Mybb) and reupload that init.php only..!! that will 100% work..!! :D :D
User avatar
walimbe
New php-forum User
New php-forum User
Posts: 10
Joined: Sun May 13, 2012 10:13 pm

Sun May 13, 2012 11:02 pm

oops i was wrong..

Next Error message is


Warning [2] require_once(/home/charted3/public_html/inc/class_timers.php): failed to open stream: No such file or directory - Line: 65 - File: inc/init.php PHP 5.3.3 (Linux)
File Line Function
/inc/init.php 65 errorHandler->error
/inc/init.php 65 require_once
/global.php 19 require_once
/index.php 18 require_once
Fatal error: require_once(): Failed opening required '/home/charted3/public_html/inc/class_timers.php' (include_path='.:/usr/share/pear:/usr/share/php') in /home/charted3/public_html/inc/init.php on line 65
User avatar
walimbe
New php-forum User
New php-forum User
Posts: 10
Joined: Sun May 13, 2012 10:13 pm

Sun May 13, 2012 11:36 pm

What Is This ??


An error occurred while reading CGI reply (no response received)
User avatar
macek
php-forum GURU
php-forum GURU
Posts: 277
Joined: Wed Aug 25, 2010 10:42 am
Contact:

Sun May 13, 2012 11:54 pm

Fatal error: require_once(): Failed opening required '/home/charted3/public_html/inc/class_timers.php' (include_path='.:/usr/share/pear:/usr/share/php') in /home/charted3/public_html/inc/init.php on line 65
User avatar
minimihi
php-forum GURU
php-forum GURU
Posts: 236
Joined: Sat Apr 14, 2012 11:57 am
Location: Vilnius, Lithuania

Sat May 19, 2012 3:32 am

Woah.. this problem was worth to ignore :offtopic:
nice one, macek :oops:
Post Reply