WordPress.org

Support

Support » How-To and Troubleshooting » Error: No ending delimiter – classes.php

Error: No ending delimiter – classes.php

  • 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.

Viewing 5 replies - 1 through 5 (of 5 total)
  • What’s line 1499? And a couple lines before and after….

    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;
    }
    }

    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;
    }
    }

    anybody?

    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?

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Error: No ending delimiter – classes.php’ is closed to new replies.