亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

未定義索引:post(wordpress 插件)

未定義索引:post(wordpress 插件)

PHP
MM們 2022-12-23 16:41:16
我使用查詢監控插件檢查了 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']) {



查看完整回答
反對 回復 2022-12-23
  • 1 回答
  • 0 關注
  • 97 瀏覽

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號