Postponed (maintainer needs more info)
Project:
Newsletter (D7)
Version:
7.x-1.x-dev
Component:
Miscellaneous
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
22 Feb 2012 at 13:11 UTC
Updated:
24 Nov 2014 at 11:50 UTC
Jump to comment: Most recent
Comments
Comment #1
ParisLiakos commentedDid you delete a template?
If so, you need to assign a new one to your list
Comment #2
anni commentedNo I didn´t delete a template and one is assigned.
Comment #3
ParisLiakos commentedCheck your database.
Do you have a template with id
4in the tablenewsletter_template?Comment #4
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 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 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 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 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 commentedI´ll give it a try.
Comment #10
anni commentedSorry, but after upgrading to .dev no mails where sent.
Comment #11
ParisLiakos commentedany entries in dblog?
warnings disappear right?
Comment #12
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 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 commentedComment #15
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 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 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 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 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.