質問をすることでしか得られない、回答やアドバイスがある。

15分調べてもわからないことは、質問しよう!

新規登録して質問してみよう
ただいま回答率
85.46%
PHP

PHPは、Webサイト構築に特化して開発されたプログラミング言語です。大きな特徴のひとつは、HTMLに直接プログラムを埋め込むことができるという点です。PHPを用いることで、HTMLを動的コンテンツとして出力できます。HTMLがそのままブラウザに表示されるのに対し、PHPプログラムはサーバ側で実行された結果がブラウザに表示されるため、PHPスクリプトは「サーバサイドスクリプト」と呼ばれています。

Q&A

解決済

1回答

1100閲覧

ホームページが開かなくなりました

AKIRAF

総合スコア1

PHP

PHPは、Webサイト構築に特化して開発されたプログラミング言語です。大きな特徴のひとつは、HTMLに直接プログラムを埋め込むことができるという点です。PHPを用いることで、HTMLを動的コンテンツとして出力できます。HTMLがそのままブラウザに表示されるのに対し、PHPプログラムはサーバ側で実行された結果がブラウザに表示されるため、PHPスクリプトは「サーバサイドスクリプト」と呼ばれています。

0グッド

0クリップ

投稿2021/07/08 02:41

編集2021/07/08 08:33

前提・実現したいこと

ホームページが表示されなくなったのです

発生している問題・エラーメッセージ

Notice: Trying to access array offset on value of type int in /home/fujitaseikotsuin/www/roppongimidtown-seikotsuin.com/wp-content/plugins/secure-wordpress/res/inc/SwpaPlugin.php on line 242

HPが表示されなくなりデバックしたらこの表示です。
それで調べたら以下までは進みました。

これから何をしたらいいのか?わかりません

<?php if(! defined('SWPA_PLUGIN_PREFIX')) return; /** * Class SwpaPlugin * Static class */ class SwpaPlugin { public static function createWpMenu() { if (current_user_can('administrator') && function_exists('add_menu_page')) { $reqCap = 'activate_plugins'; add_menu_page('Secure WP', 'Secure WP', $reqCap, SWPA_PLUGIN_PREFIX, array(get_class(),'pageMain'), SwpaUtil::imageUrl('logo-small.png')); add_submenu_page(SWPA_PLUGIN_PREFIX, 'Dashboard', __('Dashboard'), $reqCap, SWPA_PLUGIN_PREFIX, array(get_class(),'pageMain')); add_submenu_page(SWPA_PLUGIN_PREFIX, 'Database', __('Database'), $reqCap, SWPA_PLUGIN_PREFIX.'database', array(get_class(),'pageDatabase')); add_submenu_page(SWPA_PLUGIN_PREFIX, 'Scanner', __('Scanner'), $reqCap, SWPA_PLUGIN_PREFIX.'scanner', array(get_class(),'pageScanner')); add_submenu_page(SWPA_PLUGIN_PREFIX, 'Live traffic', __('Live traffic'), $reqCap, SWPA_PLUGIN_PREFIX.'live_traffic', array(get_class(),'pageLiveTraffic')); add_submenu_page(SWPA_PLUGIN_PREFIX, 'Blog', __('Blog'), $reqCap, SWPA_PLUGIN_PREFIX.'blog', array(get_class(),'pageBlog')); add_submenu_page(SWPA_PLUGIN_PREFIX, 'Settings', __('Settings'), $reqCap, SWPA_PLUGIN_PREFIX.'settings', array(get_class(),'pageSettings')); add_submenu_page(SWPA_PLUGIN_PREFIX, 'About', __('About'), $reqCap, SWPA_PLUGIN_PREFIX.'about', array(get_class(),'pageAbout')); } } public static function pageMain() { SwpaUtil::includePage('dashboard.php'); } public static function pageDatabase() { SwpaUtil::includePage('database.php'); } public static function pageScanner() { SwpaUtil::includePage('scanner.php'); } public static function pageLiveTraffic() { SwpaUtil::includePage('live_traffic.php'); } public static function pageBlog() { SwpaUtil::includePage('blog.php'); } public static function pageSettings() { SwpaUtil::includePage('settings.php'); } public static function pageAbout() { SwpaUtil::includePage('about.php'); } public static function loadResources() { if(SwpaUtil::canLoad()){ wp_enqueue_style('wsd-styles-base', SwpaUtil::cssUrl('styles.base.css')); wp_enqueue_style('wsd-styles-alerts', SwpaUtil::cssUrl('styles.alerts.css')); wp_enqueue_style('wsd-styles-general', SwpaUtil::cssUrl('styles.general.css')); wp_enqueue_style('wsd-styles-status', SwpaUtil::cssUrl('styles.status.css')); wp_enqueue_script('wsdplugin-js-util', SwpaUtil::jsUrl('wsd-util.js'), array('jquery')); } } /** * Common method to add an alert to database. * @static * @param string $actionName The name of the action of the alert * @param int $type Can only be one of the following: SWPA_PLUGIN_ALERT_TYPE_OVERWRITE | SWPA_PLUGIN_ALERT_TYPE_STACK. Defaults to SWPA_PLUGIN_ALERT_TYPE_OVERWRITE * @param int $severity Can only have one of the following values: 0 1 2 3. Defaults to 0. * @param string $title * @param string $description * @param string $solution * @return bool */ public static function alert($actionName, $type = 0, $severity = 0, $title = '', $description = '', $solution = '') { global $wpdb; $table = self::getTableName(); if($type == SWPA_PLUGIN_ALERT_TYPE_STACK) { //#! Check the max number of stacked alerts to keep and remove the exceeding ones $afsDate = $wpdb->get_var("SELECT alertFirstSeen FROM $table WHERE alertActionName = '$actionName' ORDER BY `alertDate`;"); if(empty($afsDate)){ $afsDate = "CURRENT_TIMESTAMP()";} else { $afsDate = "'".$afsDate."'"; } $result = $wpdb->get_var("SELECT COUNT(alertId) FROM $table WHERE alertActionName = '$actionName';"); if($result >= SWPA_PLUGIN_ALERT_STACK_MAX_KEEP){ // remove older entries to make room for the new ones $query = "DELETE FROM $table ORDER BY alertDate ASC LIMIT ".($result - (SWPA_PLUGIN_ALERT_STACK_MAX_KEEP - 1)); $wpdb->query($query); } //Add the new entry $query = $wpdb->prepare( "INSERT INTO $table (`alertType`, `alertSeverity`, `alertActionName`, `alertTitle`, `alertDescription`, `alertSolution`, `alertDate`, `alertFirstSeen`) VALUES (%d, %d, '%s', '%s', '%s', '%s', CURRENT_TIMESTAMP(), $afsDate );" ,$type, $severity, $actionName, $title, $description, $solution); } elseif($type == SWPA_PLUGIN_ALERT_TYPE_OVERWRITE) { //#! Find the record by actionName and update fields $result = $wpdb->get_var("SELECT alertId FROM $table WHERE

試したこと

ここまではこれたのですが
この先が全くどうしたらいいのか?わかりません。
わかる方いたら、教えてください。
宜しくお願い致します。

補足情報(FW/ツールのバージョンなど)

ここにより詳細な情報を記載してください。

気になる質問をクリップする

クリップした質問は、後からいつでもMYページで確認できます。

またクリップした質問に回答があった際、通知やメールを受け取ることができます。

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

K_3578

2021/07/08 02:44

状況が何も分かりません。 何をどうして現在どうなっているのですか?
m.ts10806

2021/07/08 02:58

その一行だけのコードになってない文字列だけ提示されても他者には応えようがありません。 赤の他人に確実に状況を伝え再現できるコードと環境情報を提示してください
BeatStar

2021/07/08 03:44

ご自分の質問を『第三者的視点で』、フラットな状態で読んでみてください。
退会済みユーザー

退会済みユーザー

2021/07/08 07:36

phpで書いているのであれば、phpのコードをすべて掲載したほうが伝わりますし、今掲載されている断片だけでは何もわかりません。webブラウザでどういうurlを入力したら、webブラウザ上にはどういう表示が出ているのか、urlの元になっているphpファイルの中身はどうなっているのか、この3点は最低でも開示してもらわないと。
K_3578

2021/07/08 08:06

エラーメッセージが見えなくなっているので、 ``` Notice: Trying to access... ``` というように、上下をバッククォートで囲むようにしてください
AKIRAF

2021/07/08 08:08

アドバイスありがとうございます。 全くの初心者なので ご迷惑おかけしています。
退会済みユーザー

退会済みユーザー

2021/07/08 08:09

WordPressに係る質問のようなので、質問のタグにWordPressを添えることを強くおすすめします。
BeatStar

2021/07/08 08:14

まずさぁ、ご自分の質問を『第三者的視点で』、フラットな状態で読んでみようよ? それとエラーメッセージは怒声でも暴言でも罵倒でもハラスメントでもなく、 インタプリタとかからのメッセージですよ? 『ここ、なんかおかしいんじゃない? もしかして……これかな?』とかみたいな。 でも今の状態は『相手の話を聞かずに逆ギレしている人』です。 そんな人はコミュニケーションなんて取れませんよね。 それと、エラーメッセージを読むと、『242行目でエラーが発生』とあるけど、 質問にあるコード、たった1行しかないよね? エラーになる原因はいくらでもありますよ? たとえば『特定の行が問題』『特定の行より上の行が問題』 『(ファイルの読み込み等で)ファイルがない』『DBが無い』 『メモリが足りない』『OSの設定によるもの』 『WordPress等の環境によるもの』…… 相当ありますよ? それを『プロなんだからわかるだろ』はもはや暴論です。 いくら初心者でもちゃんと情報を提示する事はできますよね? まずは情報を提示してください。 少なくともちゃんとしたコードぐらいは。
AKIRAF

2021/07/08 08:19

厳しいお言葉ありがとうございます。 それを『プロなんだからわかるだろ』はもはや暴論です。 こんなつもりは毛頭ありません。 わからないことをわからないと表現しているだけで 詳しい方にとってはそんなこともわからないの? だともいますが みんな最初は初心者でな?という考え方です。
BeatStar

2021/07/08 08:25 編集

『わからない』ことが問題ではないのです。 『情報を提示しない事』が問題なのです。 簡単に言えば『思考停止』です。 回答者は質問者と同じ環境にある……わけじゃないので、提示された情報からしか読み取れません。 ですが、たった一行だけ出されてもね…… 実際、質問者さんの質問内容にm6uさんがお答えしていますが、 その返信で『○○ってどこ?』と聞かれていますね。 わかりませんよ。誰にも。 だって、コードは1行しかないんだから他人がわかるはずがないでしょ。 面と向かってですらわからないのに、ネットを介しての質問で、 情報を省いた状態で聞いてもわかるはずがないでしょ。 ※ ちなみに私は怒ってはいません。あくまで指摘です。
K_3578

2021/07/08 08:23

>質問者さん 質問編集画面では質問投稿する時の書き方のヒントもありますし、なんなら質問するときのヒントという ページもあります。 https://teratail.com/help/question-tips エラーが出て焦っている、不安になっているのはわかりますが、 回答者はエスパーではないので詳細を書いてもらわなければ当てずっぽうで回答するしか出来ません。
BeatStar

2021/07/08 08:40

全然足りていませんよ。行数が。 もし字数制限で投稿できないのなら、GitHubなりPastebin ( https://pastebin.pl/ ) なりの サービスを利用してアップしてください。
m.ts10806

2021/07/08 09:07

たぶん自分が書いたコードではないのでしょうけど、そこに至るまでに何をしたのかは覚えている範囲で書いたほうが良いです。 プログラムは書いたとおりにしか動かないので何もせずにいきなりということはないです。 (それと再三依頼されている「質問タグの追加」はしましょう。PHPに詳しい人とWordpressに詳しい人はイコールではないです。むしろteratailでは少数派の印象)
AKIRAF

2021/07/08 09:13

ありがとうございます。もちろん何もしていません。 初心者なので質問タグの追加の仕方もわからないです。 ごめんなさい。
m.ts10806

2021/07/08 09:15

投稿時に追加できたならやり方は同じです。質問タグ入力のところでWとでも打てば候補も出るでしょう
AKIRAF

2021/07/08 09:17

ありがとうございます。 やってみます
m.ts10806

2021/07/08 09:26

また、触ってないプラグインのコードそのまま提示されてもあまり意味はないのでm6uさんの回答で指摘されている通り、バージョン確認してそのバージョンを記載したほうが良いかもしれません。 プラグインのアップデートが手動なのか自動なのかにもよりますし、何も変わっていないということはないです。 何かが変わったからこうなった。 今の所他者から言えるのは可能性だけで、直球のアドバイスは誰にもできないと思います。
guest

回答1

0

ベストアンサー

意味としては、$entryを配列みなしてアクセスしようとしたけど、どうやらint型の値が入っていてできないよってことかと。
$entryに値を詰めている箇所が示されていないので、これ以上はなんとも。
SwpaPlugin.php の該当行から上方向にさかのぼっていきながら、
$entryに値を詰めている箇所を特定してください。


WordPressそのもののバージョン、実行しているPHPのバージョン、
それと、使用しようとしているプラグインのバージョンや掲載(配布元)ページの情報があれば、
情報通の人の助言が得られるかもしれません。

メンテナンスされていない古いプラグインを最新のWordPressに組み合わせたりすると発生したりとか。

ところで、そのSwpaPlugin.phpってファイル名でググると、
「マルコトラベル MALCOトラベル」ってところが出てきたんだけど、まさかね。

サイトを設置しているレンタルサーバーの業者から、
例えばサーバーのPHPをバージョン上げるとかいう連絡が来ていなかっただろうか。
あるいは、自分で、WordPressのバージョンアップを特に意識せずやってしまったりしていないだろうか。
ソースコード的に改変していないのに「突然そうなった」のだとすると、
動作環境の変化によるものなので、そういう情報もほしい。
もしそうなのだとしたら、
「wordpress プラグイン 手動で無効化」などとして検索すると参考記事が見つかる。


Acunetix Secure WordPressっていうプラグインが問題を起こしているということが、ファイル名やエラーメッセージから推察できました。
https://www.acunetix.com/websitesecurity/wordpress-security-plugin/
https://wordpress.org/plugins/wp-security-scan/
6年前で更新が止まっているプラグインなので、最新のWordPressでは動かない可能性があります。

WordPress デバッグモードについて - Qiita

デバッグモードを試してとりあえず管理画面が開くかどうかを試す。
それが駄目なら、
強制的にプラグインをすべて無効化する下記のやり方を参考にいじってみてください:
不具合の原因確認にも便利!プラグインを一気に無効化する方法 | ワードプレステーマTCD

投稿2021/07/08 08:11

編集2021/07/08 08:42
退会済みユーザー

退会済みユーザー

総合スコア0

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

AKIRAF

2021/07/08 08:12

ありがとうございます。 $entryに値を詰めている箇所 とはどこにあるのですか?
AKIRAF

2021/07/08 08:22

優しく教えていただきありがとうございます。
AKIRAF

2021/07/08 08:24

<?php if(! defined('SWPA_PLUGIN_PREFIX')) return; /** * Class SwpaPlugin * Static class */ class SwpaPlugin { public static function createWpMenu() { if (current_user_can('administrator') && function_exists('add_menu_page')) { $reqCap = 'activate_plugins'; add_menu_page('Secure WP', 'Secure WP', $reqCap, SWPA_PLUGIN_PREFIX, array(get_class(),'pageMain'), SwpaUtil::imageUrl('logo-small.png')); add_submenu_page(SWPA_PLUGIN_PREFIX, 'Dashboard', __('Dashboard'), $reqCap, SWPA_PLUGIN_PREFIX, array(get_class(),'pageMain')); add_submenu_page(SWPA_PLUGIN_PREFIX, 'Database', __('Database'), $reqCap, SWPA_PLUGIN_PREFIX.'database', array(get_class(),'pageDatabase')); add_submenu_page(SWPA_PLUGIN_PREFIX, 'Scanner', __('Scanner'), $reqCap, SWPA_PLUGIN_PREFIX.'scanner', array(get_class(),'pageScanner')); add_submenu_page(SWPA_PLUGIN_PREFIX, 'Live traffic', __('Live traffic'), $reqCap, SWPA_PLUGIN_PREFIX.'live_traffic', array(get_class(),'pageLiveTraffic')); add_submenu_page(SWPA_PLUGIN_PREFIX, 'Blog', __('Blog'), $reqCap, SWPA_PLUGIN_PREFIX.'blog', array(get_class(),'pageBlog')); add_submenu_page(SWPA_PLUGIN_PREFIX, 'Settings', __('Settings'), $reqCap, SWPA_PLUGIN_PREFIX.'settings', array(get_class(),'pageSettings')); add_submenu_page(SWPA_PLUGIN_PREFIX, 'About', __('About'), $reqCap, SWPA_PLUGIN_PREFIX.'about', array(get_class(),'pageAbout')); } } public static function pageMain() { SwpaUtil::includePage('dashboard.php'); } public static function pageDatabase() { SwpaUtil::includePage('database.php'); } public static function pageScanner() { SwpaUtil::includePage('scanner.php'); } public static function pageLiveTraffic() { SwpaUtil::includePage('live_traffic.php'); } public static function pageBlog() { SwpaUtil::includePage('blog.php'); } public static function pageSettings() { SwpaUtil::includePage('settings.php'); } public static function pageAbout() { SwpaUtil::includePage('about.php'); } public static function loadResources() { if(SwpaUtil::canLoad()){ wp_enqueue_style('wsd-styles-base', SwpaUtil::cssUrl('styles.base.css')); wp_enqueue_style('wsd-styles-alerts', SwpaUtil::cssUrl('styles.alerts.css')); wp_enqueue_style('wsd-styles-general', SwpaUtil::cssUrl('styles.general.css')); wp_enqueue_style('wsd-styles-status', SwpaUtil::cssUrl('styles.status.css')); wp_enqueue_script('wsdplugin-js-util', SwpaUtil::jsUrl('wsd-util.js'), array('jquery')); } } /** * Common method to add an alert to database. * @static * @param string $actionName The name of the action of the alert * @param int $type Can only be one of the following: SWPA_PLUGIN_ALERT_TYPE_OVERWRITE | SWPA_PLUGIN_ALERT_TYPE_STACK. Defaults to SWPA_PLUGIN_ALERT_TYPE_OVERWRITE * @param int $severity Can only have one of the following values: 0 1 2 3. Defaults to 0. * @param string $title * @param string $description * @param string $solution * @return bool */ public static function alert($actionName, $type = 0, $severity = 0, $title = '', $description = '', $solution = '') { global $wpdb; $table = self::getTableName(); if($type == SWPA_PLUGIN_ALERT_TYPE_STACK) { //#! Check the max number of stacked alerts to keep and remove the exceeding ones $afsDate = $wpdb->get_var("SELECT alertFirstSeen FROM $table WHERE alertActionName = '$actionName' ORDER BY `alertDate`;"); if(empty($afsDate)){ $afsDate = "CURRENT_TIMESTAMP()";} else { $afsDate = "'".$afsDate."'"; } $result = $wpdb->get_var("SELECT COUNT(alertId) FROM $table WHERE alertActionName = '$actionName';"); if($result >= SWPA_PLUGIN_ALERT_STACK_MAX_KEEP){ // remove older entries to make room for the new ones $query = "DELETE FROM $table ORDER BY alertDate ASC LIMIT ".($result - (SWPA_PLUGIN_ALERT_STACK_MAX_KEEP - 1)); $wpdb->query($query); } //Add the new entry $query = $wpdb->prepare( "INSERT INTO $table (`alertType`, `alertSeverity`, `alertActionName`, `alertTitle`, `alertDescription`, `alertSolution`, `alertDate`, `alertFirstSeen`) VALUES (%d, %d, '%s', '%s', '%s', '%s', CURRENT_TIMESTAMP(), $afsDate );" ,$type, $severity, $actionName, $title, $description, $solution); } elseif($type == SWPA_PLUGIN_ALERT_TYPE_OVERWRITE) { //#! Find the record by actionName and update fields $result = $wpdb->get_var("SELECT alertId FROM $table WHERE alertActionName = '".$actionName."'; "); //#! found. do update
AKIRAF

2021/07/08 08:24

if($result > 0){ $query = $wpdb->prepare("UPDATE $table SET `alertType` = %d, `alertSeverity` = %d, `alertActionName` = '%s', `alertTitle` = '%s', `alertDescription` = '%s', `alertSolution` = '%s', `alertDate` = CURRENT_TIMESTAMP() WHERE alertId = %d;", $type, $severity, $actionName, $title, $description, $solution,$result); } //#! record not found. insert query else { $query = $wpdb->prepare("INSERT INTO $table (`alertType`, `alertSeverity`, `alertActionName`, `alertTitle`, `alertDescription`, `alertSolution`, `alertDate`, `alertFirstSeen`) VALUES (%d, %d, '%s', '%s', '%s', '%s', CURRENT_TIMESTAMP(), CURRENT_TIMESTAMP() );", $type, $severity, $actionName, $title, $description, $solution); } } $result = $wpdb->query($query); if($result === false){ //#! MySQL error return false; } return true; } public static function getTableName($tableName = SWPA_PLUGIN_ALERT_TABLE_NAME){ global $wpdb; return $wpdb->prefix.$tableName; } /** * Get all alerts grouped by alertActionName * @return array */ public static function getAlerts() { global $wpdb; $columns = "`alertId`,`alertType`,`alertSeverity`,`alertActionName`,`alertTitle`,`alertDescription`,`alertSolution`,`alertDate`,`alertFirstSeen`"; return $wpdb->get_results("SELECT $columns FROM ".self::getTableName(SWPA_PLUGIN_ALERT_TABLE_NAME)." GROUP BY `alertActionName`;"); } // filter alerts by input public static function getAlertsBy($alertSeverity) { global $wpdb; $columns = "`alertId`,`alertType`,`alertSeverity`,`alertActionName`,`alertTitle`,`alertDescription`,`alertSolution`,`alertDate`,`alertFirstSeen`"; return $wpdb->get_results("SELECT $columns FROM ".self::getTableName(SWPA_PLUGIN_ALERT_TABLE_NAME)." WHERE `alertSeverity` = '$alertSeverity' GROUP BY `alertActionName`;"); } public static function getChildAlerts($alertId, $alertType) { global $wpdb; $columns = "`alertId`,`alertType`,`alertSeverity`,`alertActionName`,`alertTitle`,`alertDescription`,`alertSolution`,`alertDate`,`alertFirstSeen`"; return $wpdb->get_results("SELECT $columns FROM ".self::getTableName()." WHERE (alertId <> $alertId AND alertType = '$alertType') ORDER BY `alertDate` DESC"); } /** * Retrieve the settings from database. This method will extract all methods found in the SwpaSecurity class and provide them as * settings in the settings page. It will also auto update itself in case new methods are added to the class or if * some of them were removed. * @return array */ public static function getSettings() { $className = 'SwpaSecurity'; if(! class_exists($className)){ return array(); } $settings = get_option(SWPA_PLUGIN_SETTINGS_OPTION_NAME); $class = new ReflectionClass($className); $methods = $class->getMethods(); if(empty($settings)) { $settings = array(); foreach($methods as $method) { $mn = $method->name; if($className != $method->class){ continue; } $comment = $method->getDocComment(); if(false !== ($pos = strpos($mn,SwpaSecurity::$methodPrefix))){ $settings[$mn] = array( 'name' => $mn, 'value' => 0, // 0 or 1 ; whether or not the option will show as selected by default in the plugin's settings page 'desc' => trim(str_replace(array('/**','*/'),'', $comment)) ); } } add_option(SWPA_PLUGIN_SETTINGS_OPTION_NAME, $settings); } else { $n1 = (isset($settings['keepNumEntriesLiveTraffic']) ? $settings['keepNumEntriesLiveTraffic'] : 500); $n2 = (isset($settings['liveTrafficRefreshRateAjax']) ? $settings['liveTrafficRefreshRateAjax'] : 10); // Check to see whether or not new methods were added or subtracted $numSettings = count($settings); $numMethods = count($methods); if($numMethods <> $numSettings) { // add new methods $_temp = array(); foreach($methods as $method){ if($className != $method->class){ continue; } $comment = $method->getDocComment(); if(false === ($pos = strpos($method->name,SwpaSecurity::$methodPrefix))){ continue; } if(! isset($settings[$method->name])){ $settings[$method->name] = array( 'name' => $method->name, 'value' => 0, 'desc' => trim(str_replace(array('/**','*/'),'', $comment)) ); } array_push($_temp, $method->name); } // remove missing methods foreach($settings as $k => &$entry){ if(! in_array($entry['name'], $_temp)){
AKIRAF

2021/07/08 08:25

1列目から242列目までです。
退会済みユーザー

退会済みユーザー

2021/07/08 08:28

質問内容は何度も編集できます。 回答へのコメント欄に長いコードを書いても読みづらいので、 お手数ですが質問文中に追記をしてください。 その際、 ``` のみの行でコードを挟んで、 ``` コード コード コード ``` のようになるようにしてください。 バッククォート3文字です。
AKIRAF

2021/07/08 08:29

やってみます
AKIRAF

2021/07/08 08:35

10000文字までとなってしまいます
退会済みユーザー

退会済みユーザー

2021/07/08 08:43

コードの掲載は、とりあえずいいです。 回答に新たな対処方法を書いてみたので、お試しください。
AKIRAF

2021/07/08 08:49

やってみます ありがとうございます。
AKIRAF

2021/07/08 09:15

Acunetix Secure WordPressっていうプラグインを削除しましたが以下の表示です。 このサイトで重大なエラーが発生しました。対応手順については、サイト管理者のメール受信ボックスを確認してください。 WordPress のトラブルシューティングについてはこちらをご覧ください。
退会済みユーザー

退会済みユーザー

2021/07/08 09:20

500エラーが発生したのかもしれません。 webサーバーとしてのエラーログファイルを確認できるようなら、そこから直近のエラーメッセージを発掘してみてください。 webサイトの立ち上げノウハウを持っていなくて意味がわからないとかいうことであれば、 費用がかかってもプロに頼んだほうがいいです。
AKIRAF

2021/07/08 09:24

かしこまりました 感謝
guest

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

15分調べてもわからないことは
teratailで質問しよう!

ただいまの回答率
85.46%

質問をまとめることで
思考を整理して素早く解決

テンプレート機能で
簡単に質問をまとめる

質問する

関連した質問