
2026年の11月、自動アップデートでWordpressプラグインのPz-LinkCardがアップデートされたら、Wordpressにログインできなくなりました。
1つのサイトはこのページの下部掲載のエラーがでてログイン画面は出るけど、パスワードを入れてもダッシュボードに遷移しなくなりました。
もう1つのサイトはログイン画面真っ白になりました。
解決策から書くと以下になります。一旦PZ-linkcardを無効かしてから、ログインしなおして、ダッシュボードのマーケットプレイスから修正された最新版にアップデートして有効化し直してください。
- WPがインストールされているサーバーのディレクトリを操作して
wp-content/plugins/pz-linkcardをpz-linkcard-disabledにリネームし、プラグインを強制的に無効化する。 - WordPressの管理画面にログインする。
- Pz-LinkCardを修正版の2.6.5.1にアップデートする。
- プラグインを再度有効化する。
これにより、ログインエラーは解消しました。
原因は、プラグイン内のpz-linkcard-options.phpにBOMが追加されていたことだそうです。開発者の方が対応されて今は解決済みということだと思います。
生成AI曰く、HTTPヘッダーの送信前に意図しない出力が発生し、ログイン用Cookieを正常に設定できなくなる場合があるそうです。
無料で公開されているプラグインですが、開発者の方はこういう事態に対処しないといけないので大変ですよね・・・。
ただ、ちょっとWordpress.comで運用している別サイトでは、Pz-LinkCardはクロスサイトスクリプティングの警告がでてますが、ずっと対応されてなかったり(管理画面上でしか悪意のあるスクリプトを仕込めないのであまり問題ではない)、ちょっとメンテナンスに不安があります。でも、無料で使わせていただいているので文句を言ってはいけないですよね。
ただ、最近Wordpress純正のGutenbergの埋め込みリンクカードでもいいのかもしれないと思うようになりました。過去記事の移行がめんどくさいですね。
それでは。
Warning: Cannot modify header information – headers already sent by (output started at /home/r0193264/public_html/chionanthus.jp/wp-content/plugins/pz-linkcard/lib/traits/pz-linkcard-options.php:1) in /home/r0193264/public_html/chionanthus.jp/wp-login.php on line 515
Warning: Cannot modify header information – headers already sent by (output started at /home/r0193264/public_html/chionanthus.jp/wp-content/plugins/pz-linkcard/lib/traits/pz-linkcard-options.php:1) in /home/r0193264/public_html/chionanthus.jp/wp-login.php on line 531
Warning: Cannot modify header information – headers already sent by (output started at /home/r0193264/public_html/chionanthus.jp/wp-content/plugins/pz-linkcard/lib/traits/pz-linkcard-options.php:1) in /home/r0193264/public_html/chionanthus.jp/wp-includes/functions.php on line 7144
Warning: Cannot modify header information – headers already sent by (output started at /home/r0193264/public_html/chionanthus.jp/wp-content/plugins/pz-linkcard/lib/traits/pz-linkcard-options.php:1) in /home/r0193264/public_html/chionanthus.jp/wp-includes/functions.php on line 7168
Error: Cookies are blocked due to unexpected output. For help, please see this documentation or try the support forums.



