Forums

[Plugin: Exclude Pages] error: first parameter expected to be a reference (3 posts)

  1. sillybean
    Member
    Posted 2 months ago #

    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/

  2. prasadvemala
    Member
    Posted 2 months ago #

    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

  3. lukescammell
    Member
    Posted 2 months ago #

    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 )

Reply

You must log in to post.

About this Topic