WordPress.org

Ready to get started?Download WordPress

Forums

WP Email Capture
[resolved] Bug: Undefined variable: delid on WordPress dashboard (4 posts)

  1. Ov3rfly
    Member
    Posted 1 year ago #

    With define('WP_DEBUG', true); in wp-config.php an error can be observed on WordPress dashboard in WP Email Capture metabox:

    Notice: Undefined variable: delid in /../wp-content/plugins/wp-email-capture/inc/tabledata.php on line 46

    Wrong:

    if ($limit == 0) {
    $delid = wp_email_capture_formdelete($result->id, $result->email);
    }

    Suggested fix:

    if ($limit == 0) {
    $delid = wp_email_capture_formdelete($result->id, $result->email);
    } else {
    $delid = '';
    }

    General note: Please check the whole plugin for these kind of bugs, I showed the free Lite version to a customer who wanted to buy an email capture plugin but then all these notices appeared when they tested on dev-server and scared them away from the plugin, too bad.

    http://wordpress.org/extend/plugins/wp-email-capture/

  2. Rhys Wynne
    Member
    Plugin Author

    Posted 1 year ago #

    Hi,

    To answer your emails (very difficult to respond when your form email ID is no-reply@no-email-here.com). I am due to implement this in the next few days.

    Unfortunately personal issues has meant that I've been unable to commit time to implementing your changes yet.

    Kind Regards

    Rhys

  3. Ov3rfly
    Member
    Posted 1 year ago #

    No need for email, just wanted to make you aware of the issues described in this forum.

    Take your time and thanks for the great plugin.

  4. Rhys Wynne
    Member
    Plugin Author

    Posted 1 year ago #

    Resolved as it's been updated in 2.7.7

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.