WordPress.org

Ready to get started?Download WordPress

Forums

Help me troubleshoot this error message (6 posts)

  1. Homersapiens
    Member
    Posted 1 year ago #

    I have an error message on my site that says:
    Warning: preg_match() [function.preg-match]: Compilation failed: nothing to repeat at offset 1 in /home/bunnellarts/bunnellarts.com/wp-includes/class-wp.php on line 204

    Warning: preg_match() [function.preg-match]: Compilation failed: nothing to repeat at offset 1 in /home/bunnellarts/bunnellarts.com/wp-includes/class-wp.php on line 205

    Line 204 and 205 in the class-wp.php document reads:
    if ( $wp_rewrite->use_verbose_page_rules && preg_match( '/pagename=\$matches\[([0-9]+)\]/', $query, $varmatch ) ) {

    CAN ANYONE HELP ME change the code so the error message goes away? (I don't understand code, i only cut and paste : )

    Thanks in advance!

  2. Homersapiens
    Member
    Posted 1 year ago #

    Actually line 204 says
    if ( $wp_rewrite->use_verbose_page_rules && preg_match( '/pagename=\$matches\[([0-9]+)\]/', $query, $varmatch ) ) {

    and line 205 says
    // this is a verbose page match, lets check to be sure about it

  3. Homersapiens
    Member
    Posted 1 year ago #

    Am I even asking the right question - "How do I change the code?"
    Is there something else that I could do. Really, I need some help please! Trying to finalize this website for a client, but haven't a clue what to do!

  4. wprock
    Member
    Posted 1 year ago #

    re-upload the fresh wp-includes folder via ftp

  5. Homersapiens
    Member
    Posted 1 year ago #

    do i need to get a new wp-includes folder? or i just upload the one already saved on my computer?

  6. wprock
    Member
    Posted 1 year ago #

    which version (WP) are you using? You upload only that's version files

Topic Closed

This topic has been closed to new replies.

About this Topic