• Just happened after the update listed as –

    Warning: preg_match(): Unknown modifier ‘1’ in /home1/benjyoun/public_html/wp-includes/class-wp.php on line 207

    Appears on the ‘page’ panel and appears on top of some pages.

    Already deactivated the theme, switched to original and deactivated plug ins, same error.

    line 207 displays as –

    } else {
    				foreach ( (array) $rewrite as $match => $query ) {
    					// If the requesting file is the anchor of the match, prepend it to the path info.
    					if ( ! empty($req_uri) && strpos($match, $req_uri) === 0 && $req_uri != $request )
    						$request_match = $req_uri . '/' . $request;
    
    					if ( preg_match("#^$match#", $request_match, $matches) ||
    						preg_match("#^$match#", urldecode($request_match), $matches) ) {
    
    						if ( $wp_rewrite->use_verbose_page_rules && preg_match( '/pagename=\$matches\[([0-9]+)\]/', $query, $varmatch ) ) {
    							// This is a verbose page match, let's check to be sure about it.
    							$page = get_page_by_path( $matches[ $varmatch[1] ] );
    							if ( ! $page ) {
    						 		continue;
    							}
    
    							$post_status_obj = get_post_status_object( $page->post_status );
    							if ( ! $post_status_obj->public && ! $post_status_obj->protected
    								&& ! $post_status_obj->private && $post_status_obj->exclude_from_search ) {
    								continue;
    							}
    						}
    
    						// Got a match.
    						$this->matched_rule = $match;
    						break;
    					}
    				}
Viewing 1 replies (of 1 total)
  • Geoffrey Shilling

    (@geoffreyshilling)

    Volunteer Moderator

    I would try to re-install WordPress manually and see if the error is still there.

    1. Get the latest WordPress zip (or tar.gz) file.
    2. Unpack the zip file that you downloaded.
    3. Deactivate plugins.
    4. Delete the old wp-includes and wp-admin directories on your web host (through your FTP or shell access).
    5. Using FTP or your shell access, upload the new wp-includes and wp-admin directories to your web host, in place of the previously deleted directories.
    6. Upload the individual files from the new wp-content folder to your existing wp-content folder, overwriting existing files. Do NOT delete your existing wp-content folder. Do NOT delete any files or folders in your existing wp-content directory (except for the one being overwritten by new files).
      Upload all new loose files from the root directory of the new version to your existing wordpress root directory.
Viewing 1 replies (of 1 total)
  • The topic ‘Warning: preg_match():’ is closed to new replies.