Home › Forums › Newsletter Plugin Support › Exception in module-base.php

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #359229
    User
    Participant

    I get an Exception in module-base.php.
    The problem is located in unsubscription.php. With the latest update, the function get_resubscribe_url was erroneously changed from

    function get_resubscribe_url($user, $email = null, $duration = DAY_IN_SECONDS) {
    return $this->build_action_url(‘r’, $user, $email, $duration);
    }

    to

    function get_resubscribe_url($user, $duration = DAY_IN_SECONDS) {
    return $this->build_action_url(‘r’, $user, $duration);
    }

    Detailed exception stack trace:
    ErrorException: Warning: Object of class stdClass could not be converted to int
    #0 /wp-content/plugins/newsletter/includes/module-base.php(500): NewsletterModuleBase::get_user_key
    #1 /wp-content/plugins/newsletter/includes/module-base.php(1072): NewsletterModuleBase::build_action_url
    #2 /wp-content/plugins/newsletter/unsubscription/unsubscription.php(61): NewsletterUnsubscription::get_resubscribe_url
    #3 /wp-content/plugins/newsletter/unsubscription/unsubscription.php(316): NewsletterUnsubscription::hook_newsletter_replace
    #4 /wp-includes/class-wp-hook.php(353): WP_Hook::apply_filters
    #5 /wp-includes/plugin.php(206): apply_filters
    #6 /wp-content/plugins/newsletter/includes/module.php(951): NewsletterModule::replace
    #7 /wp-content/plugins/newsletter/classes/NewsletterEngine.php(328): NewsletterEngine::build_message
    #8 /wp-content/plugins/newsletter/classes/NewsletterEngine.php(186): NewsletterEngine::send
    #9 /wp-content/plugins/newsletter/classes/NewsletterEngine.php(48): NewsletterEngine::run
    #10 /wp-content/plugins/newsletter/plugin.php(495): Newsletter::hook_newsletter
    #11 /wp-includes/class-wp-hook.php(353): WP_Hook::apply_filters
    #12 /wp-includes/class-wp-hook.php(377): WP_Hook::do_action
    #13 /wp-includes/plugin.php(571): do_action_ref_array
    #14 /wp-cron.php(191)

Viewing 1 post (of 1 total)
  • You must be logged in to reply to this topic.