Title: Error &#8220;Cannot access protected property FeedWordPressPostsPage&#8221; On Admin
Last modified: February 8, 2017

---

# Error “Cannot access protected property FeedWordPressPostsPage” On Admin

 *  [compil3r](https://wordpress.org/support/users/compil3r/)
 * (@compil3r)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/error-cannot-access-protected-property-feedwordpresspostspage-on-admin/)
 * 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](https://wordpress.org/support/users/compil3r/)
 * (@compil3r)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/error-cannot-access-protected-property-feedwordpresspostspage-on-admin/#post-8790940)
 * 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](https://wordpress.org/support/users/compil3r/)
 * (@compil3r)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/error-cannot-access-protected-property-feedwordpresspostspage-on-admin/#post-8791132)
 * 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](https://wordpress.org/support/users/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.

 * ![](https://s.w.org/plugins/geopattern-icon/feedwordpress_a6a79a.svg)
 * [FeedWordPress](https://wordpress.org/plugins/feedwordpress/)
 * [Support Threads](https://wordpress.org/support/plugin/feedwordpress/)
 * [Active Topics](https://wordpress.org/support/plugin/feedwordpress/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/feedwordpress/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/feedwordpress/reviews/)

## Tags

 * [cannot](https://wordpress.org/support/topic-tag/cannot/)
 * [Property](https://wordpress.org/support/topic-tag/property/)
 * [protected](https://wordpress.org/support/topic-tag/protected/)

 * 2 replies
 * 1 participant
 * Last reply from: [compil3r](https://wordpress.org/support/users/compil3r/)
 * Last activity: [9 years, 3 months ago](https://wordpress.org/support/topic/error-cannot-access-protected-property-feedwordpresspostspage-on-admin/#post-8791132)
 * Status: not resolved