Recent Topics

1 Jul 08, 2007 00:22    

My b2evolution Version: 1.10.x

Can someone please help me am getting this error message below:

Your baseurl (http://www.whosusingwhat.com) set in _basic_config.php seems invalid. You probably missed the "http://" prefix or the trailing slash. Please correct that.

This is my code in the .PHP file:

* @global string $baseurl
*/
$baseurl = 'http://www.whosusingwhat.com';

/**

Does anyone know why am getting that error message.

The domain is a addon domain name on my server.

Thanks
Leonna

2 Jul 08, 2007 00:37

Thank I got it to work

3 Jul 08, 2007 01:14

Now am getting this error code below:

Notice: Undefined variable: baseurl in /home/innoge65/public_html/whosusingwhat/conf/_advanced.php on line 117

Notice: Undefined variable: baseurl in /home/innoge65/public_html/whosusingwhat/conf/_advanced.php on line 126
Your baseurl () set in _basic_config.php seems invalid. You probably missed the "http://" prefix or the trailing slash. Please correct that.

and the script I have in my advance.php is:

// Get hostname out of baseurl
// YOU SHOULD NOT EDIT THIS unless you know what you're doing
if( preg_match( '#^(https?://(.+?)(:.+?)?)/#', $baseurl, $matches ) )
{
$baseurlroot = $matches[1]; // no ending slash!
// echo "baseurlroot=$baseurlroot <br />";
$basehost = $matches[2];
// echo "basehost=$basehost <br />";
}
else
{
die( 'Your baseurl ('.$baseurl.') set in _basic_config.php seems invalid. You probably missed the "http://" prefix or the trailing slash. Please correct that.' );
}

/**

How do I fix the error message am getting?

Thanks

4 Jul 08, 2007 01:33

It's telling you that there is an error in your $baseurl. Open up your /conf/_basic_config.php and find the section at lines ~74-89 that looks like this:


/**
 * $baseurl is where your blogs reside by default. CHECK THIS CAREFULLY or nothing will work.
 * It should be set to the URL where you can find the blog templates and/or the blog stub files,
 * that means index.php, blog_b.php, etc.
 * Note: Blogs can be in subdirectories of the baseurl. However, no blog should be outside
 * of there, or some tricky things may fail (e-g: pingback)
 *
 * IMPORTANT: If you want to test b2evolution on your local machine, do NOT use that machine's
 * name in the $baseurl!
 * For example, if you machine is called HOMER, do not use http://homer/b2evolution/blogs/ !
 * Use http://localhost/b2evolution/blogs/ instead. And log in on localhost too, not homer!
 * If you don't, login cookies will not hold.
 *
 * @global string $baseurl
 */
$baseurl = 'http://www.yourdomain.com/';

and make sure that last line reflects your domain name... i.e. the address of your blog.

I just loaded your page (http://www.whosusingwhat.com) and it appears to be showing up fine. I'm not seeing the errors you're getting. Are you seeing them when you load your blog, or are you seeing them in the admin section?

jj.

5 Jul 08, 2007 01:45

I figure it out I had to change the permission on some of the folders.

Thank you for replying.


Form is loading...