Title: Install plugin anonymous post problem
Last modified: August 30, 2016

---

# Install plugin anonymous post problem

 *  Resolved [STU ART](https://wordpress.org/support/users/stu-art-1/)
 * (@stu-art-1)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/install-plugin-anonymous-post-problem/)
 * on activation this displays at top of screen
 * warning: reset() expects parameter 1 to be array, null given in /home/stuartd/
   dev/wp-content/plugins/accesspress-anonymous-post/accesspress-anonymous-post.
   php on line 357
 * Warning: key() expects parameter 1 to be array, null given in /home/stuartd/dev/
   wp-content/plugins/accesspress-anonymous-post/accesspress-anonymous-post.php 
   on line 358
 * Warning: session_start(): Cannot send session cache limiter – headers already
   sent (output started at /home/stuartd/dev/wp-content/plugins/accesspress-anonymous-
   post/accesspress-anonymous-post.php:357) in /home/stuartd/dev/wp-content/plugins/
   accesspress-anonymous-post/accesspress-anonymous-post.php on line 132
 * [https://wordpress.org/plugins/accesspress-anonymous-post/](https://wordpress.org/plugins/accesspress-anonymous-post/)

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

 *  [carlosvarela](https://wordpress.org/support/users/carlosvarela/)
 * (@carlosvarela)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/install-plugin-anonymous-post-problem/#post-6617689)
 * same here
 * arameter 1 to be array, null given in /accesspress-anonymous-post/accesspress-
   anonymous-post.php on line 357
 * Warning: key() expects parameter 1 to be array, null given in accesspress-anonymous-
   post/accesspress-anonymous-post.php on line 358
 * Warning: session_start(): Cannot send session cache limiter – headers already
   sent (output started at accesspress-anonymous-post/accesspress-anonymous-post.
   php:357) in accesspress-anonymous-post/accesspress-anonymous-post.php on line
   132
 *  Plugin Author [Access Keys](https://wordpress.org/support/users/access-keys/)
 * (@access-keys)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/install-plugin-anonymous-post-problem/#post-6617723)
 * Hello there,
 * Its strange that we are not getting this issue in our development server but 
   still we will look into the cause of the issue and release an update with the
   fix as soon as possible. Till then please open our plugin’s accesspress-anonymous-
   post.php file and remove line number 60.
 * Thanks.
 *  Thread Starter [STU ART](https://wordpress.org/support/users/stu-art-1/)
 * (@stu-art-1)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/install-plugin-anonymous-post-problem/#post-6617725)
 * hi
 * no code on line 60 in the file
    check again paste the code to remove in this 
   post mucked around for an hour still same problem cant use uninstalled it again
 *  Thread Starter [STU ART](https://wordpress.org/support/users/stu-art-1/)
 * (@stu-art-1)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/install-plugin-anonymous-post-problem/#post-6617726)
 * hi
    had to remove plugin again got this Parse error: syntax error, unexpected
   end of file in /home/stuartd/dev/wp-content/plugins/accesspress-anonymous-post/
   accesspress-anonymous-post.php on line 1
 * removed
 *  Plugin Author [Access Keys](https://wordpress.org/support/users/access-keys/)
 * (@access-keys)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/install-plugin-anonymous-post-problem/#post-6617773)
 * Hello there,
 * Please find below code in the plugin main file and remove it.
 *     ```
       add_action('pre_get_posts',array($this,'restrict_media_library'));
       ```
   
 * Thanks.
 *  Thread Starter [STU ART](https://wordpress.org/support/users/stu-art-1/)
 * (@stu-art-1)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/install-plugin-anonymous-post-problem/#post-6617791)
 * hi removed the code the result was below
    have uninstalled
 * Parse error: syntax error, unexpected end of file in /home/stuartd/dev/wp-content/
   plugins/accesspress-anonymous-post/accesspress-anonymous-post.php on line 1
 *  Thread Starter [STU ART](https://wordpress.org/support/users/stu-art-1/)
 * (@stu-art-1)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/install-plugin-anonymous-post-problem/#post-6617792)
 * this was the code you gave to remove
    add_action('pre_get_posts',array($this,'
   restrict_media_library'));
 * in the accesspress anonymouspost.php file
    this didnt exist i removed the code
   add_action(‘pre_get_posts’,array($this,’restrict_media_library’));//restricts
   user to see only uploaded by logged in user
 *  Plugin Author [Access Keys](https://wordpress.org/support/users/access-keys/)
 * (@access-keys)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/install-plugin-anonymous-post-problem/#post-6617840)
 * Hello there,
 * Thats the same code that we have mentioned to remove. The text after // is just
   the comment for the code.
 * Is the plugin now working for you after removing that code?
 * Thanks.
 *  Thread Starter [STU ART](https://wordpress.org/support/users/stu-art-1/)
 * (@stu-art-1)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/install-plugin-anonymous-post-problem/#post-6617843)
 * No it didnt work but dont worry i have uninstalled and removed not using it anymore

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

The topic ‘Install plugin anonymous post problem’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/accesspress-anonymous-post_fbfbfb.
   svg)
 * [Frontend Post WordPress Plugin - AccessPress Anonymous Post](https://wordpress.org/plugins/accesspress-anonymous-post/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/accesspress-anonymous-post/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/accesspress-anonymous-post/)
 * [Active Topics](https://wordpress.org/support/plugin/accesspress-anonymous-post/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/accesspress-anonymous-post/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/accesspress-anonymous-post/reviews/)

 * 9 replies
 * 3 participants
 * Last reply from: [STU ART](https://wordpress.org/support/users/stu-art-1/)
 * Last activity: [10 years, 7 months ago](https://wordpress.org/support/topic/install-plugin-anonymous-post-problem/#post-6617843)
 * Status: resolved