Wordpress problem with spider.txt

I have done a search but could not find an answer to this. I am trying to select the theme after install and this error is displayed:

Warning: file() [function.file]: Unable to access spiders.txt in /var/www/vhosts/mangawhaiweather.co.nz/httpdocs/include-whos-online-header.php on line 104

Thanks

Do you have the spiders.txt file in the same directory where your wordpress is.

Chuck

Chuck is correct.

This is noted in Step 1)

… and in
whos-online\readme-files\known-issues.txt

Problem:

if you use the wordpress blog plugin, you will get an error that spiders.txt file cannot be opened when you are on a blog page

Solution:

put a copy of the spiders.txt from the whos-online zip file in your wordpress main folder
yoursite.com/wxblog (substitute wxblog with whatever you named your wordpress installation folder)

Thanks, I missed that part of the readme file :oops: on computer to late at night.

Cannot figure out why I get this error now, obviously a path problem but not sure!

Warning: fopen() [function.fopen]: Unable to access ./flyout-menu.xml in /var/www/vhosts/mangawhaiweather.co.nz/httpdocs/flyout-menu.php on line 79

This is the code on line 79 in my flyput-menu.php

Try step 5 on this page:

Got that part working now thanks Mike but now get following error.

Warning: include() [function.include]: open_basedir restriction in effect. File(/header.php) is not within the allowed path(s): (/var/www/vhosts/mangawhaiweather.co.nz/httpdocs:/tmp:/usr/share/pear) in…

Can I disable open basedir with .htaccess file?

You probably have to open a support ticket with your web host so they can configure that.

Actually that would be a good block.

You are attempting to load header.php from the Root of the Server, not the root of your own directory and understandable security breach.

If you are not going to use a relative address, set it to your own directory root instead (which they showed you in the error message).

/var/www/vhosts/mangawhaiweather.co.nz/httpdocs/header.php

You should however be able obtain your root directory from the server though…

What happens when you try as a separate file:

<?php

echo "Test Script
<pre>";

echo "DOCUMENT_ROOT: " . $_SERVER['DOCUMENT_ROOT'] . "\n";
echo "SERVER_NAME:   " . $_SERVER['SERVER_NAME'] . "\n";
echo "PHP_SELF:      " . htmlentities( substr($_SERVER['PHP_SELF'], 0,  
	strcspn( $_SERVER['PHP_SELF'] , "\n\r") ), ENT_QUOTES ) . "\n";

Assuming this works, which it should, you should then be able to use something like:

$headerfile = $_SERVER['DOCUMENT_ROOT'] . "/header.php";

or however you need to use it.

Thanks Kevin that worked for me :slight_smile: