WordPress.org

Forums

WP-Members
Mulitple notices/warnings when debug=true (3 posts)

  1. ykessler
    Member
    Posted 4 years ago #

    When using the latest WordPress and wp-members plugin on a clean local MAMP install with debug = true, I'm getting numerous notices and warnings, including the following output on all screens after activation:

    Notice: Constant WPMEM_VERSION already defined in /Applications/MAMP/htdocs/wp_3/wp-content/plugins/wp-members/wp-members.php on line 74

    Notice: Undefined variable: content in /Applications/MAMP/htdocs/wp_3/wp-content/plugins/wp-members/wp-members.php on line 85

    Notice: Undefined index: a in /Applications/MAMP/htdocs/wp_3/wp-content/plugins/wp-members/wp-members-core.php on line 24

    Any ideas??

  2. Chad Butler
    Member
    Plugin Author

    Posted 4 years ago #

    Not sure why you are getting those... Note: I haven't done any testing in a MAMP environment. Here's some initial thoughts:

    You should turn off debugging; it's more for echoing certain variables to screen output (for checking settings).

    You can comment out line 74 in wp-members.php if it's throwing an error.

    Not quite sure what's going on with the others two problems, but check on the first two items above for starters...

  3. ykessler
    Member
    Posted 4 years ago #

    Thanks for the quick response...

    I commented out line 74 previously, but that only solved that particular notice- The other stuff was still showing up and I didn't want to go around commenting multiple lines in your plug-in.

    Turning debugging off DOES fix the issue in that output is no longer dumping to the screen, and the plugin does function correctly, but as I'm doing a number of things in a dev environment i do need debugging enabled. Perhaps there's a way to route it to a log file instead...

    Strange that this would only be a MAMP thing, as nothing else has given me problems thus far...

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WP-Members
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags