WordPress.org

Ready to get started?Download WordPress

Forums

Error: No ending delimiter - classes.php (6 posts)

  1. tyman
    Member
    Posted 7 years ago #

    I got this error in wordpress after some reconfiguring of my web hosting today.

    Warning: preg_match() [function.preg-match]: No ending delimiter '!' found in /home/7864/domains/tyman.net/html/wp/wp-includes/classes.php on line 1499

    You can view it at http://www.tyman.net.

    I looked at the code, although my php knowledge is pretty shallow, I couldn't see anything wrong with it.

    Thanks for your help in advance.

  2. vkaryl
    Member
    Posted 7 years ago #

    What's line 1499? And a couple lines before and after....

  3. tyman
    Member
    Posted 7 years ago #

    Here's the whole if statement.

    if (preg_match("!^$match!", $request_match, $matches) || preg_match("!^$match!", urldecode($request_match), $matches)) {
    // Got a match.
    $this->matched_rule = $match;

    // Trim the query of everything up to the '?'.
    $query = preg_replace("!^.+\?!", '', $query);

    // Substitute the substring matches into the query.
    eval("\$query = \"$query\";");
    $this->matched_query = $query;

    // Parse the query.
    parse_str($query, $query_vars);

    // If we're processing a 404 request, clear the error var
    // since we found something.
    if (isset($_GET['error']))
    unset($_GET['error']);

    if (isset($error))
    unset($error);

    break;
    }
    }

  4. tyman
    Member
    Posted 7 years ago #

    Line 1499 is the first line of the if statement.

    if (preg_match("!^$match!", $request_match, $matches) || preg_match("!^$match!", urldecode($request_match), $matches)) { //This Line Returns An Error
    // Got a match.
    $this->matched_rule = $match;
    // Trim the query of everything up to the '?'.
    $query = preg_replace("!^.+?!", '', $query);
    // Substitute the substring matches into the query.
    eval("$query = \"$query\";");
    $this->matched_query = $query;
    // Parse the query.
    parse_str($query, $query_vars);
    // If we're processing a 404 request, clear the error var
    // since we found something.
    if (isset($_GET['error']))
    unset($_GET['error']);
    if (isset($error))
    unset($error);
    break;
    }
    }

  5. tyman
    Member
    Posted 7 years ago #

    anybody?

  6. vkaryl
    Member
    Posted 7 years ago #

    Sorry, I don't see anything obviously logical as a problem there. Did you try asking your host support folks if anything that happened during "after some reconfiguring of my web hosting today" would have caused this?

Topic Closed

This topic has been closed to new replies.

About this Topic