Home Forums Newsletter Plugin Support Bug in Sparkpost extension

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #50942
    Ole-Martin Bratteng
    Participant

    Just installed the Sparkpost extension, and it threw an an error, that there was an undefined index, Enabled
    ( ! ) Notice: Undefined index: enabled in /www/wp-content/plugins/newsletter-sparkpost/sparkpost.php on line 53

    The error message went away after I went into settings for Sparkpost and clicked save (Enabled/Disabled didn’t matter)
    I reckon the error is that it’s querying for the “enabled” option, but the option doesn’t exist yet. Hence why it went away after I clicked save.

    There’s two ways to fix it, either run an installation script when the plugin is installed, or do a check to see if the “enabled” option exists, before checking it in a if statement

    #50967
    Stefano
    Keymaster

    Hi, I’ll check suddenly. Once the options are saved that error should disappear, but if you see it even after that this shouldbe definitively checked and fixed.

    Stefano.

    #50976
    Ole-Martin Bratteng
    Participant

    That is correct, once the options have been saved, the error disappears

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.