WordPress.org

Support

Support » Plugins and Hacks » Lots of debug warnings

Lots of debug warnings

  • David Anderson
    Participant

    @davidanderson

    Nice plugin, thank you (I am a subscriber to the Pro version).

    If WP_DEBUG is turned on, then this plugin is noisy; e.g.:

    Notice: Use of undefined constant WPMEM_USE_NONCE - assumed 'WPMEM_USE_NONCE' in wp-content/plugins/wp-members/wp-members-dialogs.php on line 336
    Notice: Undefined index: log in wp-content/plugins/wp-members/wp-members-dialogs.php on line 350
    Notice: Undefined index: first_name in wp-content/plugins/wp-members/wp-members-dialogs.php on line 404

    http://wordpress.org/extend/plugins/wp-members/

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

    @cbutlerjr

    David – if you are a rocketgeek.com site member, why didn’t you just post this over there?

    It’s hard to say exactly what caused the specific messages when no context is provided. I do know that the WPMEM_USE_NONCE one has been addressed in the 2.8.3 release, which is in beta. But you shouldn’t be running a production site with WP_DEBUG turned on anyway.

    bobbingwide
    Participant

    @bobbingwide

    Hi, I had the same problem, running in a development site. My list was slightly longer than David’s as none of the defined fields are set ( in line 404 ) when the registration form is first displayed.

    The messages are issued when a visitor is attempting to view a restricted post.

    Problems seem to be resolved in the development version (2.8.3)

    Plugin Author Chad Butler
    Participant

    @cbutlerjr

    Similar answer:

    You shouldn’t be running a production site with WP_DEBUG turned on anyway.

    David Anderson
    Participant

    @davidanderson

    I had WP_DEBUG turned on on a development site, as recommended in Codex. WP-Members’ noisiness then made it hard work to develop that site:

    NOTE: While it is not mandatory to account for WP_DEBUG in plugins and themes it is highly recommended that plugin and theme developers use WP_DEBUG mode while working on code they plan to release publicly. If your plugin or theme is not compatible then the errors, notices and warnings it throws will make it impossible for other developers to use your plugin/theme while they have WP_DEBUG enabled and your theme will not be eligible for promotion via the official WordPress tools.

    http://codex.wordpress.org/Debugging_in_WordPress

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Lots of debug warnings’ is closed to new replies.