WordpPress wp-blog-header.php error - php

I have a WordPress theme and i use require to add wp-blog-header.php to other php file. When i use it on localhost everything is ok but when i load it on my host:
Warning: require(/../../../wp-blog-
header.php) [function.require]: failed to open stream: No such file or directory in /home/cator/public_html/ example.com/mysite/wp-content/themes/Project/sample.php on line 27
Fatal error: require() [function.require]: Failed opening required '/../../../wp-blog-header.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/cator/public_html/ example.com/mysite/wp-content/themes/Project/sample.php on line 27
How can i fix this problem?

Related

No such file or directory in C:\xampp\htdocs\org1\wp-settings.php

After installing a theme I get this error:
Warning: require(C:\xampp\htdocs\org1/wp-includes/post.php): failed to open stream: No such file or directory in C:\xampp\htdocs\org1\wp-settings.php on line 166
Fatal error: require(): Failed opening required 'C:\xampp\htdocs\org1/wp-includes/post.php' (include_path='C:\xampp\php\PEAR') in C:\xampp\htdocs\org1\wp-settings.php on line 166
I can't access any page (at least dashboard), how to fix it?
You can reinstall the wordpress and then try to activate the theme. Hope this will helps you.

wordpress site down, missing files php

Something auto-updated over night and now my site is broken.
What does this mean?
Warning:
require_once(/home/content/86/9642286/html/tapped-ch/wp-settings.php)
[function.require-once]: failed to open stream: No such file or
directory in /home/content/86/9642286/html/tapped-ch/wp-config.php on
line 89
Fatal error: require_once() [function.require]: Failed opening
required '/home/content/86/9642286/html/tapped-ch/wp-settings.php'
(include_path='.:/usr/local/php5_3/lib/php') in
/home/content/86/9642286/html/tapped-ch/wp-config.php on line 89

WP-admin is not working, showing php errors

Warning: require(wp-blog-header.php) [function.require]: failed to open stream: No such file or directory in /home/tratam79/public_html/masoarafebra.ro/wp-admin/index.php on line 17
Warning: require(wp-blog-header.php) [function.require]: failed to open stream: No such file or directory in /home/tratam79/public_html/masoarafebra.ro/wp-admin/index.php on line 17
Fatal error: require() [function.require]: Failed opening required 'wp-blog-header.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/tratam79/public_html/masoarafebra.ro/wp-admin/index.php on line 17
Those are the errors I get when trying to access wp-admin. As of now I've tried forging the full URL to the files. Any ideas?
It could be your wordpress file is missing or not accessible. If you just upload it, it might be it is not uploaded completely.

Error loading CMSMS website

I just uploaded a CMSMS website, but cannot view the website. Am getting the error:
Warning:
require(/home/inkbran1/public_html/century21nigeria/lib/smarty/Smarty.class.php)
[function.require]: failed to open stream: No such file or directory
in /home/inkbran1/public_html/century21nigeria/include.php on line 153
Fatal error: require() [function.require]: Failed opening required
'/home/inkbran1/public_html/century21nigeria/lib/smarty/Smarty.class.php'
(include_path='.:/usr/lib/php:/usr/local/lib/php') in
/home/inkbran1/public_html/century21nigeria/include.php on line 153
Please, what can i do? I am a PHP dummy.
Make sure that the file Smarty.class.php is in the directory listed in the error message.

About PHP Dig And Install

I am working on something and it is not working. I am getting this error:
Warning: include(../includes/config.php) [function.include]: failed to open stream: No such file or directory in /home/valerie2/public_html/elinkswap/snorris/install.php on line 24
Warning: include(../includes/config.php) [function.include]: failed to open stream: No such file or directory in /home/valerie2/public_html/elinkswap/snorris/install.php on line 24
Warning: include() [function.include]: Failed opening '../includes/config.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/valerie2/public_html/elinkswap/snorris/install.php on line 24
Warning: include(../libs/auth.php) [function.include]: failed to open stream: No such file or directory in /home/valerie2/public_html/elinkswap/snorris/install.php on line 25
Warning: include(../libs/auth.php) [function.include]: failed to open stream: No such file or directory in /home/valerie2/public_html/elinkswap/snorris/install.php on line 25
Warning: include() [function.include]: Failed opening '../libs/auth.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/valerie2/public_html/elinkswap/snorris/install.php on line 25
Fatal error: Call to undefined function phpdighttpvars() in /home/valerie2/public_html/elinkswap/snorris/install.php on line 27
Here is the code that it is getting the error:
24. include $relative_script_path.'./includes/config.php';
25. include $relative_script_path.'./libs/auth.php';
26.
27. extract( phpdigHttpVars(
array('step'=>'integer',
Ok on line 24 where the include is there is a dot I put that in there cause sometimes it will help. But it didn't have one there before and I still had the error. I am not understanding why I can not get these to work. Can someone help me understand?
The actual file it is looking for is
$relative_script_path.'./includes/config.php';
One way to debug is to die with that path, then you can check what it's really looking for:
die($relative_script_path.'./includes/config.php');
The page should stop at that point and display the entire file path. You usually then see what the error could be.

Categories