Warning: require_once(/usr/home/pannon/www/sites/all/modules/newsletter/includes/newsletter.basic.inc) [function.require-once]: failed to open stream: No such file or directory _registry_check_code() függvényben (/usr/home/pannon/www/includes/bootstrap.inc 2935 sor).
Warning: require_once(/usr/home/pannon/www/sites/all/modules/newsletter/includes/newsletter.basic.inc) [function.require-once]: failed to open stream: No such file or directory _registry_check_code() függvényben (/usr/home/pannon/www/includes/bootstrap.inc 2935 sor).
Warning: Missing argument 1 for NewsletterMail::__construct(), called in /usr/home/pannon/www/sites/all/modules/mailsystem/mailsystem.module on line 293 and defined NewsletterMail->__construct() függvényben (/usr/home/pannon/www/sites/all/modules/newsletter/includes/newsletter.mail.inc 27 sor).
Notice: Undefined variable: lid NewsletterMail->__construct() függvényben (/usr/home/pannon/www/sites/all/modules/newsletter/includes/newsletter.mail.inc 35 sor).
Notice: Trying to get property of non-object NewsletterMail->getSubscribers() függvényben (/usr/home/pannon/www/sites/all/modules/newsletter/includes/newsletter.mail.inc 60 sor).
Notice: Trying to get property of non-object NewsletterMail->getSubscribers() függvényben (/usr/home/pannon/www/sites/all/modules/newsletter/includes/newsletter.mail.inc 70 sor).
Notice: Trying to get property of non-object NewsletterMail->__construct() függvényben (/usr/home/pannon/www/sites/all/modules/newsletter/includes/newsletter.mail.inc 40 sor).
Notice: Trying to get property of non-object NewsletterMail->__construct() függvényben (/usr/home/pannon/www/sites/all/modules/newsletter/includes/newsletter.mail.inc 41 sor).
Notice: Trying to get property of non-object NewsletterMail->getNodes() függvényben (/usr/home/pannon/www/sites/all/modules/newsletter/includes/newsletter.mail.inc 154 sor).
Notice: Trying to get property of non-object NewsletterMail->getNodes() függvényben (/usr/home/pannon/www/sites/all/modules/newsletter/includes/newsletter.mail.inc 159 sor).
Notice: Trying to get property of non-object NewsletterMail->getQuery() függvényben (/usr/home/pannon/www/sites/all/modules/newsletter/includes/newsletter.mail.inc 130 sor).
Notice: Trying to get property of non-object NewsletterMail->__construct() függvényben (/usr/home/pannon/www/sites/all/modules/newsletter/includes/newsletter.mail.inc 48 sor).
Notice: Trying to get property of non-object NewsletterMail->getNewsletterData() függvényben (/usr/home/pannon/www/sites/all/modules/newsletter/includes/newsletter.mail.inc 88 sor).
Notice: Trying to get property of non-object NewsletterMail->getNewsletterData() függvényben (/usr/home/pannon/www/sites/all/modules/newsletter/includes/newsletter.mail.inc 93 sor).
Notice: Trying to get property of non-object NewsletterMail->getNewsletterData() függvényben (/usr/home/pannon/www/sites/all/modules/newsletter/includes/newsletter.mail.inc 97 sor).
Notice: Trying to get property of non-object NewsletterMail->getNewsletterData() függvényben (/usr/home/pannon/www/sites/all/modules/newsletter/includes/newsletter.mail.inc 100 sor).
Notice: Trying to get property of non-object NewsletterMail->getNewsletterData() függvényben (/usr/home/pannon/www/sites/all/modules/newsletter/includes/newsletter.mail.inc 102 sor).
PDOException: SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'title' cannot be null: INSERT INTO {newsletter_newsletters} (title, send_id, template_id) VALUES (:db_insert_placeholder_0, :db_insert_placeholder_1, :db_insert_placeholder_2); Array ( [:db_insert_placeholder_0] => [:db_insert_placeholder_1] => 1 [:db_insert_placeholder_2] => ) NewsletterMail->getNewsletterData() függvényben (/usr/home/pannon/www/sites/all/modules/newsletter/includes/newsletter.mail.inc 104 sor).
Comments
Comment #1
ParisLiakos CreditAttribution: ParisLiakos commentedSome more info please?
how did you get this message?what where u doing before?
Comment #2
guzmosz CreditAttribution: guzmosz commentedJust installed this module, and I just got this message
Comment #3
ParisLiakos CreditAttribution: ParisLiakos commentedCan you verify that this file:
includes/newsletter.basic.inc
exists and it has correct permissions?seems drupal cant read it
Comment #4
itserich CreditAttribution: itserich commentedDo you have Simplenews installed? I got error messages when I had both Simplenews and Newsletter installed and I think disabling Mail System module fixed it. I think I had to delete a module from the modules folder because the site was inaccessible including the list of modules.
Comment #5
ParisLiakos CreditAttribution: ParisLiakos commentedI checked it a bit and seems mailsystem module creates a class (
NewsletterMail
) that its name conflicts with a newsletter class that already exists.thanks itserich for the hint:)
Comment #6
guzmosz CreditAttribution: guzmosz commentedYes I have a simplenews module, but i disabled that before I installed the newsletter modul.
I will try to remove simplenews
Sorry, my english is bad :(
Comment #7
ParisLiakos CreditAttribution: ParisLiakos commentedYou have to disable mailsystem too
Comment #8
guzmosz CreditAttribution: guzmosz commentedAnd this file is missing
includes/newsletter.basic.inc
maybe the installation not completed
Comment #9
ParisLiakos CreditAttribution: ParisLiakos commentedGuzmosz: search for this file in your
sites/all/modules/newsletter
directorySo all together
sites/all/modules/newsletter/includes/newsletter.basic.inc
Comment #10
guzmosz CreditAttribution: guzmosz commentedAh
It's there i fond it
Comment #11
pillarsdotnet CreditAttribution: pillarsdotnet commentedI can assure you that Mail System does not create a class called NewsletterMail.
Comment #12
ParisLiakos CreditAttribution: ParisLiakos commentedIndeed.my check was very fast:)
It does not create a class but rather an instance of it.
It doesn't provide the $lid argument.thats what all these warnings are about that finally end up to the PDOexception.
Comment #13
pillarsdotnet CreditAttribution: pillarsdotnet commentedWhat is a '$lid' argument?
If
NewsletterMail
implementsMailSystemInterface
then it should not need a '$lid' argument.If it does not implement
MailSystemInterface
, then it shouldn't be registering itself with Mail System. (Conversely, Mail System shouldn't be trying to create an instance of it.)The heuristics that Mail System uses to guess which classes might possibly implement
MailSystemInterface
are a bit on the fuzzy side, and I may have to develop a blacklist withNewsletterMail
as the first entry, especially ifNewsletterMail
lacks a constructor with zero arguments.Comment #14
ParisLiakos CreditAttribution: ParisLiakos commentedNo it doesn't implement it.it just happens to be in a file named newsletter.mail.inc ?
i am not sure yet,how your module instantiates it.
Comment #15
ParisLiakos CreditAttribution: ParisLiakos commentedclass NewsletterMailSystem implements MailSystemInterface { ... }
Thats the class that implements MailSystemInsterface.
Should i must change my class names then?
eg have
class NewsletterMail implements MailSystemInterface { ... }
and figure out an other name for the current NewsletterMail class?Would this make my module work fine with yours?
And that how i register it:
I have the correct name there,so maybe the problem is that it sits in file called newsletter.mail.inc?
i saw some comments in your module about making assumptions that the class should exist in xxx.mail.inc
Comment #16
pillarsdotnet CreditAttribution: pillarsdotnet commentedOkay; I know what I need to do.
Comment #17
TahitiPetey CreditAttribution: TahitiPetey commentedSo, is this problem fixed? I just tried to install Mail System module (I already had Newsletter installed and enabled) and it crashed with this error:
PDOException: SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'title' cannot be null.
Comment #18
pillarsdotnet CreditAttribution: pillarsdotnet commentedMail System doesn't create any databases.
Comment #19
ParisLiakos CreditAttribution: ParisLiakos commented@#17 those modules are still incompatible.
When this issue is marked as fixed it will be ready,please be patient:)
Comment #20
itserich CreditAttribution: itserich commentedThe Mail System conflict with Newsletter appears to be fixed.
I have both enabled and am not getting error messages...
Comment #21
ParisLiakos CreditAttribution: ParisLiakos commentedYes, Newsletter (dev version) and Mailsystem are now compatible, but this issue still needs fixing i guess:)
Comment #22
pillarsdotnet CreditAttribution: pillarsdotnet commentedMailSystemInterface
.MailSystemInterface
be specially registered somehow.MailSystemInterface
.@todo
File a feature request against D8/D9 core asking that the class registry be extended to track the interface and/or parent classes implemented by each loadable class file.
Comment #23
znerol CreditAttribution: znerol commentedMay I suggest the following battleplan to resolve this issue:
: A module implementing
should declare it in this hook (classname along with a human readable description), also expose
for core mailsystems (default / testing).
.
Comment #24
cfischer50 CreditAttribution: cfischer50 commentedI just got the PDO exception described in the issue summary when enabling mimemail and mailsystem. Based on this discussion:
I disabled mimemail and mailsystem, disabled simplenews, enabled mimemail and mailsystem, and then re-enabled simplenews. No errors. Thanks to all for posting!