• Skip to primary navigation
  • Skip to main content

RocketGeek

Home of WP-Members, The Original WordPress Membership Plugin

  • WordPress Plugins
    • WP-Members
      • FAQs
      • Quick Start
      • Documentation
      • Extensions
    • Advanced Options
      • Documentation
      • Purchase the Plugin
      • Get the Pro Bundle
    • Download Protect
      • Documentation
      • Purchase the Plugin
      • Get the Pro Bundle
    • Invite Codes
      • Documentation
      • Purchase the Plugin
      • Get the Pro Bundle
    • MailChimp Integration
      • Documentation
      • Purchase the Plugin
      • Get the Pro Bundle
    • PayPal Subscriptions
      • Documentation
      • Purchase the Plugin
      • Get the Pro Bundle
    • Salesforce Web-to-Lead
    • Security
      • Documentation
      • Purchase the Plugin
      • Get the Pro Bundle
    • Text Editor
      • Purchase the Plugin
      • Get the Pro Bundle
    • User List
      • Documentation
      • Purchase the Plugin
      • Get the Pro Bundle
    • User Tracking
      • Documentation
      • Purchase the Plugin
      • Get the Pro Bundle
    • Memberships for WooCommerce
    • WordPass
  • Blog
    • Basics
    • Tips and Tricks
    • Filters
    • Actions
    • Code Snippets
    • Shortcodes
    • Design
    • Release Announcements
  • Store
    • Cart
    • Checkout
  • Contact
  • Log In
  • Show Search
Hide Search
Home » Blog » WP-Members 2.8.2 Error When Saving Post or Page

WP-Members 2.8.2 Error When Saving Post or Page

Chad Butler · Apr 25, 2013 ·

This article is provided free. Find out how you can get full access to premium content, including how-to articles and support forums, as well as priority email support and member exclusive plugin extensions..

 

If you are running WordPress in debug mode or you have PHP set to display all notices and warnings, you may get an error when saving a post or a page with WP-Members 2.8.2.  This is the result of a typo that slipped through quality control before this version was released.

The error has already been corrected in the 2.8.3 project package, but since that is not out yet, you can easily apply the fix as follows: 

In the /wp-members/ folder, look at the file /admin/post.php.  At line 94 it will read as follows:

if( !current_user_can( 'edit_post' ) ) return; 

Change it to this:

if( !current_user_can( 'edit_posts' ) ) return; 

The difference is an “s” in “edit_posts”.  There is no “edit_post” capability, which is what throws the error.

Incidentally, you should probably not be running WordPress in debug mode on a production site anyway.  But if you are, this fix will clean up the issue.

Blog bug-fix

Ready to get started?

Join Today!

© 2025 · butlerblog.com · RocketGeek is built using WordPress, WP-Members, and the Genesis Framework

  • butlerblog.com
  • WP-Members Support Subscription
  • Terms of Service
  • Privacy Policy
  • Refund Policy