実現したいこと
エラーの修正
前提
ここに質問の内容を詳しく書いてください。
ワードプレスのダッシュボードにエラーがでています。
どうすれば修正できるのでしょうか?
発生している問題・エラーメッセージ
エラーメッセージ
Warning: preg_match(): Compilation failed: quantifier does not follow a repeatable item at offset 1 in /home/sigokix/public_html/4519garden.com/wp-includes/class-wp.php on line 235
Warning: preg_match(): Compilation failed: quantifier does not follow a repeatable item at offset 1 in /home/sigokix/public_html/4519garden.com/wp-includes/class-wp.php on line 234
Warning: preg_match(): Compilation failed: quantifier does not follow a repeatable item at offset 1 in /home/sigokix/public_html/4519garden.com/wp-includes/class-wp.php on line 235
Warning: Cannot modify header information - headers already sent by (output started at /home/sigokix/public_html/4519garden.com/wp-includes/class-wp.php:234) in /home/sigokix/public_html/4519garden.com/wp-admin/admin-header.php on line 9
該当のソースコード
ソースコード
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; }
試したこと
ここに問題に対して試したことを記載してください。
phpのバージョンアップ
検索結果で解決策がないか調査
WordPress ワードプレスのエラー解説:Warning: preg_match() [function.preg-match]: Unknown modifier | ワードプレスドクター https://wp-doctor.jp/blog/2016/03/11/wordpress-%E3%83%AF%E3%83%BC%E3%83%89%E3%83%97%E3%83%AC%E3%82%B9%E3%81%AE%E3%82%A8%E3%83%A9%E3%83%BC%E8%A7%A3%E8%AA%AC%EF%BC%9Awarning-preg_match-function-preg-match-unknown-modifier/
補足情報(FW/ツールのバージョンなど)
ワードプレスのバージョン 6.11
ここにより詳細な情報を記載してください。
