我使用查詢監控插件檢查了 WordPress,我得到了這個錯誤:Undefined index: postthe error in plugin n-custom-point錯誤位置是:1- wp-content/plugins/n-custom-point/class/metabox-user-group.php:17 prefix_register_meta_boxes() 這是第 17 行if($post->ID != $_REQUEST['post']) {2- wp-includes/class-wp-hook.php:287 apply_filters('rwmb_meta_boxes') 這是第 287 行$value = call_user_func_array( $the_['function'], $args );3- wp-content/plugins/n-custom-point/inc/meta-box/inc/core.php:50 RWMB_Core->register_meta_boxes() 這是第 50 行$configs = apply_filters( 'rwmb_meta_boxes', array() );4- wp-includes/class-wp-hook.php:287 do_action('init') 這是第 287 行$value = call_user_func_array( $the_['function'], $args );5- wp-settings.php:540 這是第 540 行do_action( 'init' );我想知道如何解決這個問題。
1 回答

紅糖糍粑
TA貢獻1815條經驗 獲得超6個贊
這是一個 PHP 通知,可以通過更改以下行來修復:
if($post->ID != $_REQUEST['post']) {
到
if( isset( $_REQUEST['post'] ) && $post->ID != $_REQUEST['post']) {
- 1 回答
- 0 關注
- 97 瀏覽
添加回答
舉報
0/150
提交
取消