• When trying to change the settings of any feed, even the global ones, I get this error on the admin:

    Cannot access protected property FeedWordPressPostsPage (etc…)

    And the settings don’t get changed.

    Any idea how this can be fixed? Thanks in advance!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter compil3r

    (@compil3r)

    Full error is:

    Fatal error: Uncaught Error: Cannot access protected property FeedWordPressPostsPage::$context in /wp-content/plugins/faf/feedwordpress_advanced_filters.php:464 Stack trace: #0 /wp-content/plugins/faf/feedwordpress_advanced_filters.php(622): FeedWordPressAdvancedFilters->get_page_type(Object(FeedWordPressPostsPage)) #1 /wp-content/plugins/faf/feedwordpress_advanced_filters.php(447): FeedWordPressAdvancedFilters->save_filter_options(Object(FeedWordPressPostsPage), Array) #2 /wp-includes/class-wp-hook.php(298): FeedWordPressAdvancedFilters->posts_save(Array, Object(FeedWordPressPostsPage)) #3 /wp-includes/class-wp-hook.php(323): WP_Hook->apply_filters('', Array) #4 /wp-includes/plugin.php(453): WP_Hook->do_action(Array) #5 /wp-content/plugins in /wp-content/plugins/faf/feedwordpress_advanced_filters.php on line 464

    Line 464 is “switch($page->context)” inside this:

        /** 
        * Determines the current page type and context  
        *
        * In Feedwordpress there is a difference between the multiple pages ( context ) and hence settings.
        * This function is the general way to determine where we are. 
        * 
        * @param Object $page Page Feedwordpress Page Object
        * @return String page_type The name of the current 'context'
        * 
        * @since 0.1
        */
    	protected function get_page_type($page)
    	{
    
      	        switch($page->context)
      		{
    			case "feedwordpresscategories": 
    			case "feedwordpresscategoriesforfeed": 
    				$page_type = "categories";
    			 break;
    			 case "feedwordpresspostspage": 
    			 case "feedwordpresspostspageforfeed":
    				$page_type = "posts"; 
    			 break;
    		}
    		return $page_type; 
    	}
    
    

    I’ve been checking info on the web and it seems the solution is to use a reflection class, but no idea how to change that here. I will keep trying. If anyone can help, please do. Thanks!

    Thread Starter compil3r

    (@compil3r)

    Turns out this is because of another plugin, called “Feedwordpress Advanced Filters”. I forgot I installed it. So, support on this should be posted on their site instead.

    So, I fly away!

    • This reply was modified 9 years, 3 months ago by compil3r.
Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Error “Cannot access protected property FeedWordPressPostsPage” On Admin’ is closed to new replies.