Home › Forums › Newsletter Plugin Support › Error when previewing
- This topic has 7 replies, 4 voices, and was last updated 1 month, 2 weeks ago by
Michael.
-
AuthorPosts
-
May 9, 2025 at 7:58 pm #344071
Killer PCs Inc.
ParticipantSince 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:17Context
——-
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-fcgiMay 9, 2025 at 10:07 pm #344076Stefano
KeymasterHi, 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.May 9, 2025 at 10:35 pm #344084Killer PCs Inc.
ParticipantAutomated addon is version 4.8.2, and the Newsletter plugin itself is version 8.8.2. 🙂
May 10, 2025 at 12:55 am #344085Killer PCs Inc.
ParticipantHere’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.
May 10, 2025 at 7:04 am #344088Stefano
KeymasterArgh!!! Bug!
Fixed on Automated 4.8.3, thank you for reporting it!May 10, 2025 at 7:54 am #344089Killer PCs Inc.
ParticipantHehehe, you’re welcome! Cheers, and thanks for finding it so quickly!
November 6, 2025 at 9:09 am #350499Johan Morris
ParticipantStrange, 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)
November 7, 2025 at 12:20 pm #350548Michael
KeymasterHello Johan,
that’s a different error. May I ask you the courtesy of opening another thread so we can keep things separate?
Michael
-
AuthorPosts
- You must be logged in to reply to this topic.