Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
If I send newsletters with a list of few subscribers, everything works. My newsletter with 100 subscribers doesn´t. In this case, no log entry is created.
The only log entries I get related to newsletter is: "Notice: Undefined index: 4 in newsletter_template_load() (line 42..." and "Notice: Undefined index: 4 in newsletter_template_load() (line 42.."
Does anyone know, what´s happening here?
Comments
Comment #1
ParisLiakos CreditAttribution: ParisLiakos commentedDid you delete a template?
If so, you need to assign a new one to your list
Comment #2
anni CreditAttribution: anni commentedNo I didn´t delete a template and one is assigned.
Comment #3
ParisLiakos CreditAttribution: ParisLiakos commentedCheck your database.
Do you have a template with id
4
in the tablenewsletter_template
?Comment #4
anni CreditAttribution: anni commentedYes I do. It was a deleted list.
After deleting the database entry the error remains.
Additional I get the error: "Notice: Trying to get property of non-object in newsletter_exposed_lists() (line 186...all/modules/newsletter/includes/newsletter.functions.inc".
Comment #5
ParisLiakos CreditAttribution: ParisLiakos commentedthere is something wrong with this list..can you visit all your lists and just re-save them?
when these errors appears?on every page load?or a particular page?
Comment #6
anni CreditAttribution: anni commentedFortunately after resaving my lists, my new created list was sent.
Many thanks for this!!!
The errors still appear. It´s on every page request.
4 Errors, one twice:
"Notice: Trying to get property of non-object in newsletter_exposed_lists() (line 186...all/modules/newsletter/includes/newsletter.functions.inc"
"Notice: Undefined index: 4 in newsletter_template_load() (line 42..." and "Notice: Undefined index: 4 in newsletter_template_load() (line 42...sites/all/modules/newsletter/includes/newsletter.functions.inc"
"Notice: Trying to get property of non-object in newsletter_exposed_lists() (line 186...all/modules/newsletter/includes/newsletter.functions.inc"
"Notice: Undefined index: 5 in newsletter_template_load() (line 42..." and "Notice: Undefined index: 4 in newsletter_template_load() (line 42...sites/all/modules/newsletter/includes/newsletter.functions.inc"
Comment #7
ParisLiakos CreditAttribution: ParisLiakos commentedClear your cache.
i cant understand why it cant find the templates with id 4 and 5 since they exist in database
Comment #8
ParisLiakos CreditAttribution: ParisLiakos commentedbtw if you update to the latest dev version, this warnings will be gone for sure
(be sure to back everything up before you do though, there are a lot of changes:P)
Comment #9
anni CreditAttribution: anni commentedI´ll give it a try.
Comment #10
anni CreditAttribution: anni commentedSorry, but after upgrading to .dev no mails where sent.
Comment #11
ParisLiakos CreditAttribution: ParisLiakos commentedany entries in dblog?
warnings disappear right?
Comment #12
anni CreditAttribution: anni commentedIt tells:
"1 Newsletter Lists failed to send because no subscribers found subscribed to them"
But there are subscribers. As test I deleted them and added them another time. Nothing...
Comment #13
ParisLiakos CreditAttribution: ParisLiakos commentedcan you send me a database dump of the following tables:
my mail is my username here at gmail.com
there is something really wrong happening there:/
Comment #14
ParisLiakos CreditAttribution: ParisLiakos commentedComment #15
anni CreditAttribution: anni commentedI´ll try out a clean installation and report back.
I can´t send all tables because of customer data, sorry.
Comment #16
ParisLiakos CreditAttribution: ParisLiakos commentedNo problem,i understand..
Did you check it?i plan to release a new beta version soon and wonder if i should check this more before
Comment #17
mvahlsing CreditAttribution: mvahlsing commentedWas there any more information found on this issue? I have the same issue across two different installs - drops the error on me when trying to manually send out newsletters.
Thanks for any info -
MV
Comment #18
tafsir001 CreditAttribution: tafsir001 commentedI am also got this type of notice.
Notice: Undefined index: 14 in newsletter_newsletter_load() (line 1023 of /home/testing/sites/all/modules/contrib/newsletter/newsletter.module).
Notice: Trying to get property of non-object in NewsletterCustom->updateNewsletter() (line 29 of /home/testing/sites/all/modules/contrib/newsletter/includes/newsletter.custom.inc).
Notice: Trying to get property of non-object in NewsletterCustom->updateNewsletter() (line 40 of /home/testing/sites/all/modules/contrib/newsletter/includes/newsletter.custom.inc).
I am getting the notice when I am running the cron.
The templates is sending only two or three subscribers,who subscribed first.The subscribers who subscribed early not sending the templates but they are receiving confirmation and welcome mail.plz help me
Comment #19
Tetris7 CreditAttribution: Tetris7 commentedHi, im getting this problem too.
My version 7.x-1.0-beta10. As tafsir001, for subscribers is not sending the templates but they are receiving confirmation and welcome mail.
EDIT:
After investigating i saw that at table "variable", the var "newsletter_custom_for_next_cron" have a blob with some newsletters that i've removed from admin panel. Don't know why still there when text was removed.
As a temporary solution, i have cloned a record of the table "newsletter_newsletter" and pasted it in that table for each index that drupal said that was undefined (i know that is a stupid solution , but meanwhile :/)
Now i need to investigate how to truncate this var and keep just my current newsletters.