• 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??

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Chad Butler

    (@cbutlerjr)

    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…

    Thread Starter ykessler

    (@ykessler)

    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…

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: WP-Members] Mulitple notices/warnings when debug=true’ is closed to new replies.