• 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
  • Store
    • Cart
    • Checkout
  • Blog
    • Basics [Free]
    • Tips and Tricks
    • Filters
    • Actions
    • Code Snippets
    • Shortcodes
    • Design
    • Release Announcements
  • Contact
  • Sign 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

Welcome to RocketGeek Interactive › Forums › WP-Members 2.8.2 Error When Saving Post or Page

Tagged: bug-fix, free

  • This topic has 0 replies, 1 voice, and was last updated 7 years, 10 months ago by Chad Butler.
Viewing 0 reply threads
  • Author
    Posts
    • April 25, 2013 at 9:30 am #2473
      Chad Butler
      Keymaster

      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
      [See the full post at: WP-Members 2.8.2 Error When Saving Post or Page]

  • Author
    Posts
Viewing 0 reply threads
  • You must be logged in to reply to this topic.
Log In

Ready to get started?

Join Today!

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

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