The MU forums have moved to WordPress.org

Warning: constant() [function.constant]: Couldn't find constant yes in line 718 (11 posts)

  1. clark544
    Member
    Posted 15 years ago #

    The full error can be found at the bottom of http://www.themostlyhonesttruth.com. It says
    Warning: constant() [function.constant]: Couldn't find constant yes in /home/clark544/public_html/wp-admin/includes/mu.php on line 718 any ideas what this could be?

  2. SteveAtty
    Member
    Posted 15 years ago #

    I can't see it on the page at all.

    718 in mu.php is

    if( constant( VHOST ) ) {

    So what does the define line look like in wp-config.php. It should look something like:

    define('VHOST', 'no');

  3. clark544
    Member
    Posted 15 years ago #

    Maybe it's because I'm logged into admin.

    Mine says:

    define('VHOST', 'yes');

    It's the same syntax, but what does VHOST mean? I assume it's virtual host. But what exactly is that?

  4. VentureMaker
    Member
    Posted 15 years ago #

    In some of my installs this error in backend appeared when Settings -> General did not have a Blog Title or if it had some funky characters in Blog Title.

  5. andrea_r
    Moderator
    Posted 15 years ago #

    We noticed in some upgrade cases vhost returned a null result when it shoudl be yes or no.

    yes means subdomains, no means subfolders. So check in the config file.

  6. clark544
    Member
    Posted 15 years ago #

    I'm using the domain mapping plugin. I believe I need to have it set to yes.

  7. clark544
    Member
    Posted 15 years ago #

    As I was playing around, you'll notice that some of my links such as categories point to bleepgate.com instead of themostlyhonesttruth.com. Could this be part of the problem? Why would it do this?

  8. clark544
    Member
    Posted 15 years ago #

    I'm going to do a complete reinstall and see what happens

  9. jte
    Member
    Posted 15 years ago #

    I'm seeing this error.

    Should line 718 of mu.php be:

    if( constant( 'VHOST' ) ) {

    instead of

    if( constant ( VHOST ) ) {

    (ie: quotes missing)

    ?

    A quick test seems to suggest this is right, but I know nothing of php.

  10. webmatter
    Member
    Posted 15 years ago #

    The same error seems to be in includes/wpmu-functions.php line 2117, quotes are missing. It should read

    ...
    if( constant( 'VHOST' ) ) {
    $blog->blogname = $blog->domain;
    } else {
    $blog->blogname = $blog->path;
    }

  11. andrea_r
    Moderator
    Posted 15 years ago #

    I think this has been fixed in the 2.7.1 branch.

About this Topic

  • Started 15 years ago by clark544
  • Latest reply from andrea_r