Title: Error with variable
Last modified: September 19, 2023

---

# Error with variable

 *  [Griffinit](https://wordpress.org/support/users/griffinit/)
 * (@griffinit)
 * [2 years, 7 months ago](https://wordpress.org/support/topic/error-with-variable/)
 * Running WordPress 6.3.1
 * Getting error:
 * Only variables should be assigned by reference in <b>/home/…../public_html/……./
   wordpress/wp-content/plugins/exclude-pages/exclude_pages.php</b> on line <b>92
   </b>
 * Function in exclude_pages.php is:
 * function ep_ancestor_excluded( $page, $excluded_ids, $pages ) {
   $parent = & ep_get_page(
   $page->post_parent, $pages );// Is there a parent?if ( ! $parent )return false;//
   Is it excluded?if ( in_array( $parent->ID, $excluded_ids ) )return (int) $parent-
   >ID;// Is it the homepage?if ( $parent->ID == 0 )return false;// Otherwise we
   have another ancestor to checkreturn ep_ancestor_excluded( $parent, $excluded_ids,
   $pages );}
 * where line 92 is
 *     ```wp-block-code
       $parent = & ep_get_page( $page->post_parent, $pages );
       ```
   
 * I don’t know what this error means.

Viewing 1 replies (of 1 total)

 *  Moderator [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/)
 * (@sterndata)
 * Volunteer Forum Moderator
 * [2 years, 7 months ago](https://wordpress.org/support/topic/error-with-variable/#post-17063768)
 * I recommend asking at [https://wordpress.org/support/plugin/exclude-pages/#new-post](https://wordpress.org/support/plugin/exclude-pages/#new-post)
   so the plugin’s / theme’s developers and support community can help you with 
   this.
 * HOWEVER, that plugin hasn’t been updated in over 11 years, so maybe you should
   find another.

Viewing 1 replies (of 1 total)

The topic ‘Error with variable’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/)
 * Last activity: [2 years, 7 months ago](https://wordpress.org/support/topic/error-with-variable/#post-17063768)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
