View Full Version : invalid forumpath specified! $forumpath variable.
mooremetal2
06-21-2007, 09:54 AM
I am receiving this message. I read the bulletins and tried the suggestions but I do not know what I am doing. I am trying to find out what is up. My host company changed my server on me and I think that has something to do with it. Should they not be able to fix it themselves or is it something I have should have to fix myself. If I have to fix it myself I do not understand enough about it to do it. I do not want to screw up my site so I am lost here. My host company is not doing anything about it and my site has been down for over 6 hours now. Any help would be appriciated.
invalid forumpath specified! Please edit this file and be sure to include the correct path for your $forumpath variable.
mooremetal2
06-21-2007, 10:33 AM
This is what I got when I tried to correct it via Brians file to upload. I do not know what to do.
<?php
if ($_SERVER['PATH_TRANSLATED'])
{
$path = $_SERVER['PATH_TRANSLATED'];
}
else if ($_SERVER['SCRIPT_FILENAME'])
{
$path = $_SERVER['SCRIPT_FILENAME'];
}
else
{
echo 'We are sorry, but this script is unable to determine your forums path.';
exit;
}
echo substr($path, 0, (strlen($path) - 14));
?>
Brian
06-21-2007, 11:03 AM
Upload the forumpath.php file to the same folder you have vBulletin installed in on your server. Then go to it in your web browser by going to http://yoursite.com/forum/forumpath.php. That should print out your forum path for you. Copy the path that's printed out, and change your $forumpath variable in your main CMP file (the one that's giving you the message about an incorrect forum path).
mooremetal2
06-21-2007, 02:00 PM
I did that and it is working but now I am getting another message at the top of my forum while everything else is working. Here is the message.
Warning: Invalid argument supplied for foreach() in /includes/functions_editor.php on line 596
I do not know what it means or how to fix it. Do you have any suggestions?
Brian
06-21-2007, 02:05 PM
That wouldn't have anything to do with the CMPS, so you'll need to ask for help at vbulletin.com on that one.
Accountant1
07-19-2007, 11:59 AM
Hi there,
I tried what was recommended here and I am still coming up with the Invalid forumpath specified. I even used the forumpath routine to identify my path.
I am hosted through 1and1.com which is weird at the best of times..
Forumpath.php shows it as
/kunden/homepages/20/d164538654/htdocs/mydrivingtripcafe/Forum
my forum location is mydrivingtripcafe.com/Forum
This is what I put in the cmps_index.php file based on the cut and paste from forumpath.php
$forumpath = 'kunden/homepages/20/d164538654/htdocs/mydrivingtripcafe/Forum';
Any ideas?
Brian
07-19-2007, 01:16 PM
Try using this:
$forumpath = './Forum';
Accountant1
07-19-2007, 01:26 PM
No luck with that one.... I am assuming that it is looking for the directory where my index file from vBulletin is sitting correct?
Brian
07-19-2007, 01:39 PM
Yes, it needs to point to the same folder you have uploaded your vBulletin files to.
Just to be sure, you tried using './Forum' (with the '.'), right? In most cases, just adding that with the name of folder vB is in will work. If none of those paths are working for you though and you'd like to submit a support ticket via the Members' Area here I'll be glad to take a look at things for you.
mooremetal2
07-19-2007, 02:59 PM
Thanks that fixed it.
vBulletin® v3.8.4, Copyright ©2000-2012, Jelsoft Enterprises Ltd.