Warning: require_once(/opt/bitnami/apps/wordpress/htdocs/wp-config.php): failed to open stream: Permission denied in /opt/bitnami/apps/wordpress/htdocs/wp-load.php on line 37

【不具合内容】

サーバをGoogle Cloud Platformに変更後に発生。

【原因】

PHPバージョンが上がったため。非推奨のcreate_function()を使用していることが原因。

【解決方法】

create_function ()をfunction(){}形式に変更する。

変更前:

add_action( ‘widgets_init’, create_function( ”, “register_widget( ‘IPT_KB_Affix_Widget’ );” ) );

変更後:

add_action( ‘widgets_init’, function(){“register_widget( ‘IPT_KB_Affix_Widget’ );”;} );

コメントを残す

* 印は必須項目です。メールアドレスは公開されません。

次のHTMLタグと属性を使用することができます: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

このサイトはスパムを低減するために Akismet を使っています。コメントデータの処理方法の詳細はこちらをご覧ください