Home Forums Newsletter Plugin Support Error when previewing

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #344071
    Killer PCs Inc.
    Participant

    Since the latest update, I’ve been seeing the following in the PHP error log:

    Fatal error: Uncaught Error: Cannot use object of type WP_Error as array in /var/www/SITE.com/html/wp-content/plugins/newsletter-automated/preview.php:30

    Timestamp: 2025-05-09 17:38:35 UTC

    Stack Trace
    ———–
    1. {anonymous}()
    /var/www/SITE.com/html/wp-content/plugins/newsletter-automated/preview.php:30
    2. include()
    /var/www/SITE.com/html/wp-content/plugins/newsletter-automated/plugin.php:108
    3. NewsletterAutomated->hook_newsletter_action()
    /var/www/SITE.com/html/wp-includes/class-wp-hook.php:326
    4. WP_Hook->apply_filters()
    /var/www/SITE.com/html/wp-includes/class-wp-hook.php:348
    5. WP_Hook->do_action()
    /var/www/SITE.com/html/wp-includes/plugin.php:517
    6. do_action()
    /var/www/SITE.com/html/wp-content/plugins/newsletter/plugin.php:314
    7. Newsletter->do_action()
    /var/www/SITE.com/html/wp-content/plugins/newsletter/plugin.php:281
    8. Newsletter->hook_wp_loaded()
    /var/www/SITE.com/html/wp-includes/class-wp-hook.php:324
    9. WP_Hook->apply_filters()
    /var/www/SITE.com/html/wp-includes/class-wp-hook.php:348
    10. WP_Hook->do_action()
    /var/www/SITE.com/html/wp-includes/plugin.php:517
    11. do_action()
    /var/www/SITE.com/html/wp-settings.php:749
    12. require_once(‘/var/www/SITE.c…’)
    /var/www/SITE.com/html/wp-config.php:118
    13. require_once(‘/var/www/SITE.c…’)
    /var/www/SITE.com/html/wp-load.php:50
    14. require_once(‘/var/www/SITE.c…’)
    /var/www/SITE.com/html/wp-blog-header.php:13
    15. require(‘/var/www/SITE.c…’)
    /var/www/SITE.com/html/index.php:17

    Context
    ——-
    URL : /?ts=1746812314&real=1&na=automated-preview&id=1&_wpnonce=4492de01e4
    Referer : https://SITE.com/wp-admin/admin.php?page=newsletter_automated_edit&id=1
    HTTP Method : GET
    HTTP Host : SITE.com
    HTTP Status : 200
    isSSL : Yes
    Current Filter : wp_loaded, newsletter_action
    Execution Time : 0.282 s
    Memory Usage : 18.34 MiB
    PHP SAPI : fpm-fcgi

    #344076
    Stefano
    Keymaster

    Hi, could you check the versions of the Automated Addon and the Newsletter plugin?
    Even using a not updated Automated addon, you should not have that error.

    #344084
    Killer PCs Inc.
    Participant

    Automated addon is version 4.8.2, and the Newsletter plugin itself is version 8.8.2. 🙂

    #344085
    Killer PCs Inc.
    Participant

    Here’s what I see in the automated newsletter preview. Seems that it only happens if there are no posts to preview, as I hit “Generate and send now”. I usually send my emails after previewing them.

    #344088
    Stefano
    Keymaster

    Argh!!! Bug!
    Fixed on Automated 4.8.3, thank you for reporting it!

    #344089
    Killer PCs Inc.
    Participant

    Hehehe, you’re welcome! Cheers, and thanks for finding it so quickly!

    #350499
    Johan Morris
    Participant

    Strange, I have this (same?) bug now in Automated v 4.8.6 but with a slightly different error message:

    Template result: The block number 3 stopped the generation
    Note: draft and private posts could be visible when creating the template, but cannot be used or included in the generated newsletter.

    Also with the monthly newsletter sent today, the images extracted form every item are wrong, they are from (older) different topics. They were correct in the newsletter sent last month (october 2)

    #350548
    Michael
    Keymaster

    Hello Johan,

    that’s a different error. May I ask you the courtesy of opening another thread so we can keep things separate?

    Michael

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