WordPress.org

Forums

WP Page Widget
[resolved] Errors Everywhere (2 posts)

  1. krisThinkun
    Member
    Posted 2 years ago #

    Hey, I get a huge amount of errors when I turn on wordpress' debugging. Mostly in the 'pw_filter_widgets' function.

    Lines 1044, 1054, 1064, 1069, 1070

    Most are indexing errors, so checking isset should fix it.

    but lines 1064 to 1070 should be changed to something like:

    if ( is_object($post) ){
    $postID = $post->ID
    }
    if (is_admin() && array_key_exists('post', $_GET)) {
    $postID = $_GET['post'];
    }
    
    if(!empty($postID)){
    $enable_customize = get_post_meta($postID, '_customize_sidebars', true);
    $_sidebars_widgets = get_post_meta($postID, '_sidebars_widgets', true);
    }

    http://wordpress.org/extend/plugins/wp-page-widget/

  2. NgaVuThanh
    Member
    Posted 2 years ago #

    Thanks krisThinkun so much!
    The lastest of this plugin works well when turn on WP debug now.

    Best regard,

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WP Page Widget
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.