他のプラグインと組み合わせで不具合

ホーム フォーラム一覧 Plugin Load Filter フォーラム 他のプラグインと組み合わせで不具合

  • このトピックには2件の返信、2人の参加者があり、最後にenomotoにより1年、 6ヶ月前に更新されました。
3件の投稿を表示中 - 1 - 3件目 (全3件中)
  • 投稿者
    投稿
  • #18429
    Anonymous
    メンバー

    Plugin Load Filterを有効化して、以下のプラグインを有効化しました。

    Featured Image from URL (FIFU)
    Use an external image/video/audio as featured image/video/audio of a post or WooCommerce product.
    Featured Image from URL (FIFU)

    管理画面にログインできなくなったり、ログアウトできなくなりました。

    featured-image-from-urlのフィルターは特に設定していません。

    Plugin Load Filterを無効化すれば、問題は起きなくなります。

    エラー詳細
    ===============
    エラータイプ E_ERROR が dummy/wp-content/plugins/featured-image-from-url/includes/attachment.php ファイルの 56 行目で発生しました。 エラーメッセージ: Uncaught Error: Call to undefined function fifu_is_web_story() in dummy/wp-content/plugins/featured-image-from-url/includes/attachment.php:56
    Stack trace:
    #0 dummy/wp-includes/class-wp-hook.php(309): fifu_query_attachments(‘ AND wpi3_posts…’)
    #1 dummy/wp-includes/plugin.php(235): WP_Hook->apply_filters(‘ AND wpi3_posts…’, Array)
    #2 dummy/wp-includes/class-wp-query.php(2626): apply_filters_ref_array(‘posts_where’, Array)
    #3 dummy/wp-includes/class-wp-query.php(3586): WP_Query->get_posts()
    #4 dummy/wp-includes/class-wp-query.php(3718): WP_Query->query(Array)
    #5 dummy/wp-content/mu-plugins/plf-filter.php(961): WP_Query->__construct(Array)

    #18430
    enomoto
    キーマスター

    報告ありがとうございます
    現象を確認できました

    ログインやログアウト時に Plugin Load Filter が WP_Query を発行するタイミングが featured image from url のロード処理と干渉して、初期化途中で発行されることでエラーとなります

    featured image from url の初期化時のファイルロード順に起因していて、
    通常は問題にはならないはずなのですが、PLFがちょっと特殊なプラグインであり、
    リクエストされたページを調べるためのデータベースへの処理が featured image from url が想定していないタイミングで発行されるために起こるようです

    PLF側で干渉しないように対応しますので、少し時間をいただければと思います

    #18431
    enomoto
    キーマスター

    修正して Ver4.0.10 を公開しました
    ご確認ください

3件の投稿を表示中 - 1 - 3件目 (全3件中)
  • このトピックに返信するにはログインが必要です。
go-to-top