WordPressのプラグイン「Newpost Catch」エラー「Illegal string offset ‘active’」の解決方法

プラグイン Newpost Catchをインストールして有効化し、

固定ページにウィジェットを挿入したところページを開くと

下記のようなエラーが表示されてしまいました。

 

エラー内容:

Warning: Illegal string offset 'active' in /home/XXXXX/www/ドメイン名/wp/wp-content/plugins/newpost-catch/class.php on line 158 Warning: Illegal string offset 'active' in /home/XXXXX/www/ドメイン名/wp/wp-content/plugins/newpost-catch/class.php on line 158 Warning: Illegal string offset 'active' in /home/XXXXX/www/ドメイン名/wp/wp-content/plugins/newpost-catch/class.php on line 158 Warning: Illegal string offset 'active' in /home/XXXXX/www/ドメイン名/wp/wp-content/plugins/newpost-catch/class.php on line 158 Warning: Cannot modify header information - headers already sent by (output started at /home/XXXXX/www/ドメイン名/wp/wp-content/plugins/newpost-catch/class.php:158) in /home/XXXXX/www/ドメイン名/wp/wp-admin/post.php on line 198 Warning: Cannot modify header information - headers already sent by (output started at /home/XXXXX/www/ドメイン名/wp/wp-content/plugins/newpost-catch/class.php:158) in /home/XXXXX/www/ドメイン名/wp/wp-includes/pluggable.php on line 1219

 

 

解決方法

  1. 「プラグイン 」→「プラグイン 編集」
  2. 右上の「」から「Newpost Catch」を選択し、「選択」ボタンをクリック
  3. class.phpをクリック
  4. $options[$key] = $val[‘css’][‘active’];という記載を検索(function enqueue_stylesheet() の中にあります。 現時点では41行目)
  5. $options[$key] = $val[‘css’][‘active’];を$options[$key] = “”;
    if(isset($val[‘css’][‘active’])){$options[$key] = $val[‘css’][‘active’];}に変換します。

 

以上でエラーが回避できました。

 

 


仕事以外でも収入が欲しい方

まずは、こちらを読んでみてください。読むのはもちろんタダです。自分にあったものがきっと見つかるはず。



無在庫販売でお小遣い稼ぎしませんか?






初心者も多数使っているので安心して始められます。




コメントを残す

メールアドレスが公開されることはありません。 が付いている欄は必須項目です

ABOUTこの記事をかいた人

モットーはスティーブ・ジョブズのStay hungry Stay Foolish. 野心を持って正しい方法を身につければ誰でも成功できることを証明していきます。 本職以外で収入を得たい方の手助けができればと思います。