Title: [Plugin: Exclude Pages] error: first parameter expected to be a reference
Last modified: August 19, 2016

---

# [Plugin: Exclude Pages] error: first parameter expected to be a reference

 *  [Stephanie Leary](https://wordpress.org/support/users/sillybean/)
 * (@sillybean)
 * [16 years, 9 months ago](https://wordpress.org/support/topic/plugin-exclude-pages-error-first-parameter-expected-to-be-a-reference/)
 * I use this plugin on several sites, and it’s been great. However, I just moved
   one of them to a Windows server (running Apache). Before I shut off PHP errors
   entirely, I got this:
 * >  Warning: Parameter 1 to ep_exclude_pages() expected to be a reference, value
   > given in D:\Web\SLC\wp-includes\plugin.php on line 166
 * The plugin activates but doesn’t work, and it kills the page list functions.
 * Any ideas?
 * [http://wordpress.org/extend/plugins/exclude-pages/](http://wordpress.org/extend/plugins/exclude-pages/)

Viewing 4 replies - 1 through 4 (of 4 total)

 *  [prasadvemala](https://wordpress.org/support/users/prasadvemala/)
 * (@prasadvemala)
 * [16 years, 9 months ago](https://wordpress.org/support/topic/plugin-exclude-pages-error-first-parameter-expected-to-be-a-reference/#post-1200956)
 * Removing & from the parameter of the function ep_exclude_pages in exclude_pages.
   php worked for me. I know its strange, but worked.
 * Try your luck
 *  [lukescammell](https://wordpress.org/support/users/lukescammell/)
 * (@lukescammell)
 * [16 years, 9 months ago](https://wordpress.org/support/topic/plugin-exclude-pages-error-first-parameter-expected-to-be-a-reference/#post-1200957)
 * I can confirm this worked for me as well – thanks prasadvemala!
 * I changed line 37 from:
    `function ep_exclude_pages( & $pages )`
 * to:
    `function ep_exclude_pages( $pages )`
 *  [ajmel625](https://wordpress.org/support/users/ajmel625/)
 * (@ajmel625)
 * [16 years, 2 months ago](https://wordpress.org/support/topic/plugin-exclude-pages-error-first-parameter-expected-to-be-a-reference/#post-1201034)
 * Worked for me too!!
 * Have been stressing over this error for weeks thinking I’d mis-hacked something
   in my local install.
 * Thanks prasadvemala & lukescammell for posting the exact details.
 * Phew.
 *  [StefanMz](https://wordpress.org/support/users/stefanmz/)
 * (@stefanmz)
 * [15 years, 10 months ago](https://wordpress.org/support/topic/plugin-exclude-pages-error-first-parameter-expected-to-be-a-reference/#post-1201050)
 * I found out, that version 1.5 was indicated to be the current version and there
   is no further update available (in the WP admin plugins page). However, this 
   was not true, version 1.9 is available, which does not show the error reported
   here (because the bug is fixed).
 * So, check the version of “Exclude Pages”.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘[Plugin: Exclude Pages] error: first parameter expected to be a reference’
is closed to new replies.

 * 4 replies
 * 5 participants
 * Last reply from: [StefanMz](https://wordpress.org/support/users/stefanmz/)
 * Last activity: [15 years, 10 months ago](https://wordpress.org/support/topic/plugin-exclude-pages-error-first-parameter-expected-to-be-a-reference/#post-1201050)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
