Fehlermeldung newspostmail unter php 7.2

Du hast Probleme beim Installieren oder bei der Benutzung einer Extension? In diesem Forum bist du richtig.
Forumsregeln
Bei Fragen zu einer bestimmten Extension sind Extension-Name und die Downloadquelle der Extension erforderlich. Letztere in Form der URL zum Download.
Benutzeravatar
FuGu
Mitglied
Beiträge: 202
Registriert: 16.01.2008 18:17

Fehlermeldung newspostmail unter php 7.2

Beitrag von FuGu »

Ich habe heute mal, nach dem Update auf 3.2.5, php auf Version 7.2 aktiviert und ausgehend von dieser Extension
viewtopic.php?f=88&t=163228&start=120
folgende Fehlermedlung erhalten:

Code: Alles auswählen

[phpBB Debug] PHP Warning: in file [ROOT]/newpost2mail.config.php on line 150: Use of undefined constant post - assumed 'post' (this will throw an Error in a future version of PHP)
[phpBB Debug] PHP Warning: in file [ROOT]/newpost2mail.config.php on line 151: Use of undefined constant reply - assumed 'reply' (this will throw an Error in a future version of PHP)
[phpBB Debug] PHP Warning: in file [ROOT]/newpost2mail.config.php on line 152: Use of undefined constant quote - assumed 'quote' (this will throw an Error in a future version of PHP)
[phpBB Debug] PHP Warning: in file [ROOT]/newpost2mail.config.php on line 153: Use of undefined constant edit - assumed 'edit' (this will throw an Error in a future version of PHP)
[phpBB Debug] PHP Warning: in file [ROOT]/newpost2mail.config.php on line 243: Use of undefined constant en - assumed 'en' (this will throw an Error in a future version of PHP)
[phpBB Debug] PHP Warning: in file [ROOT]/newpost2mail.config.php on line 243: Use of undefined constant mode - assumed 'mode' (this will throw an Error in a future version of PHP)
[phpBB Debug] PHP Warning: in file [ROOT]/newpost2mail.config.php on line 244: Use of undefined constant en - assumed 'en' (this will throw an Error in a future version of PHP)
[phpBB Debug] PHP Warning: in file [ROOT]/newpost2mail.config.php on line 244: Use of undefined constant forum - assumed 'forum' (this will throw an Error in a future version of PHP)
[phpBB Debug] PHP Warning: in file [ROOT]/newpost2mail.config.php on line 245: Use of undefined constant en - assumed 'en' (this will throw an Error in a future version of PHP)
[phpBB Debug] PHP Warning: in file [ROOT]/newpost2mail.config.php on line 245: Use of undefined constant thread - assumed 'thread' (this will throw an Error in a future version of PHP)
[phpBB Debug] PHP Warning: in file [ROOT]/newpost2mail.config.php on line 246: Use of undefined constant en - assumed 'en' (this will throw an Error in a future version of PHP)
[phpBB Debug] PHP Warning: in file [ROOT]/newpost2mail.config.php on line 246: Use of undefined constant subject - assumed 'subject' (this will throw an Error in a future version of PHP)
[phpBB Debug] PHP Warning: in file [ROOT]/newpost2mail.config.php on line 247: Use of undefined constant en - assumed 'en' (this will throw an Error in a future version of PHP)
[phpBB Debug] PHP Warning: in file [ROOT]/newpost2mail.config.php on line 247: Use of undefined constant user - assumed 'user' (this will throw an Error in a future version of PHP)
[phpBB Debug] PHP Warning: in file [ROOT]/newpost2mail.config.php on line 248: Use of undefined constant en - assumed 'en' (this will throw an Error in a future version of PHP)
[phpBB Debug] PHP Warning: in file [ROOT]/newpost2mail.config.php on line 248: Use of undefined constant ip_hostname - assumed 'ip_hostname' (this will throw an Error in a future version of PHP)
[phpBB Debug] PHP Warning: in file [ROOT]/newpost2mail.config.php on line 249: Use of undefined constant en - assumed 'en' (this will throw an Error in a future version of PHP)
[phpBB Debug] PHP Warning: in file [ROOT]/newpost2mail.config.php on line 249: Use of undefined constant host_na - assumed 'host_na' (this will throw an Error in a future version of PHP)
[phpBB Debug] PHP Warning: in file [ROOT]/newpost2mail.config.php on line 250: Use of undefined constant en - assumed 'en' (this will throw an Error in a future version of PHP)
[phpBB Debug] PHP Warning: in file [ROOT]/newpost2mail.config.php on line 250: Use of undefined constant actions - assumed 'actions' (this will throw an Error in a future version of PHP)
[phpBB Debug] PHP Warning: in file [ROOT]/newpost2mail.config.php on line 251: Use of undefined constant en - assumed 'en' (this will throw an Error in a future version of PHP)
[phpBB Debug] PHP Warning: in file [ROOT]/newpost2mail.config.php on line 251: Use of undefined constant reply - assumed 'reply' (this will throw an Error in a future version of PHP)
[phpBB Debug] PHP Warning: in file [ROOT]/newpost2mail.config.php on line 252: Use of undefined constant en - assumed 'en' (this will throw an Error in a future version of PHP)
[phpBB Debug] PHP Warning: in file [ROOT]/newpost2mail.config.php on line 252: Use of undefined constant quote - assumed 'quote' (this will throw an Error in a future version of PHP)
[phpBB Debug] PHP Warning: in file [ROOT]/newpost2mail.config.php on line 253: Use of undefined constant en - assumed 'en' (this will throw an Error in a future version of PHP)
[phpBB Debug] PHP Warning: in file [ROOT]/newpost2mail.config.php on line 253: Use of undefined constant edit - assumed 'edit' (this will throw an Error in a future version of PHP)
[phpBB Debug] PHP Warning: in file [ROOT]/newpost2mail.config.php on line 254: Use of undefined constant en - assumed 'en' (this will throw an Error in a future version of PHP)
[phpBB Debug] PHP Warning: in file [ROOT]/newpost2mail.config.php on line 254: Use of undefined constant delete - assumed 'delete' (this will throw an Error in a future version of PHP)
[phpBB Debug] PHP Warning: in file [ROOT]/newpost2mail.config.php on line 255: Use of undefined constant en - assumed 'en' (this will throw an Error in a future version of PHP)
[phpBB Debug] PHP Warning: in file [ROOT]/newpost2mail.config.php on line 255: Use of undefined constant info - assumed 'info' (this will throw an Error in a future version of PHP)
[phpBB Debug] PHP Warning: in file [ROOT]/newpost2mail.config.php on line 256: Use of undefined constant en - assumed 'en' (this will throw an Error in a future version of PHP)
[phpBB Debug] PHP Warning: in file [ROOT]/newpost2mail.config.php on line 256: Use of undefined constant pm - assumed 'pm' (this will throw an Error in a future version of PHP)
[phpBB Debug] PHP Warning: in file [ROOT]/newpost2mail.config.php on line 257: Use of undefined constant en - assumed 'en' (this will throw an Error in a future version of PHP)
[phpBB Debug] PHP Warning: in file [ROOT]/newpost2mail.config.php on line 257: Use of undefined constant email - assumed 'email' (this will throw an Error in a future version of PHP)
[phpBB Debug] PHP Warning: in file [ROOT]/newpost2mail.config.php on line 258: Use of undefined constant en - assumed 'en' (this will throw an Error in a future version of PHP)
[phpBB Debug] PHP Warning: in file [ROOT]/newpost2mail.config.php on line 258: Use of undefined constant attachments - assumed 'attachments' (this will throw an Error in a future version of PHP)
[phpBB Debug] PHP Warning: in file [ROOT]/newpost2mail.config.php on line 259: Use of undefined constant en - assumed 'en' (this will throw an Error in a future version of PHP)
[phpBB Debug] PHP Warning: in file [ROOT]/newpost2mail.config.php on line 259: Use of undefined constant edited_by - assumed 'edited_by' (this will throw an Error in a future version of PHP)
[phpBB Debug] PHP Warning: in file [ROOT]/newpost2mail.config.php on line 260: Use of undefined constant en - assumed 'en' (this will throw an Error in a future version of PHP)
[phpBB Debug] PHP Warning: in file [ROOT]/newpost2mail.config.php on line 260: Use of undefined constant edit_reason - assumed 'edit_reason' (this will throw an Error in a future version of PHP)
[phpBB Debug] PHP Warning: in file [ROOT]/newpost2mail.config.php on line 268: Use of undefined constant de - assumed 'de' (this will throw an Error in a future version of PHP)
[phpBB Debug] PHP Warning: in file [ROOT]/newpost2mail.config.php on line 268: Use of undefined constant mode - assumed 'mode' (this will throw an Error in a future version of PHP)
[phpBB Debug] PHP Warning: in file [ROOT]/newpost2mail.config.php on line 269: Use of undefined constant de - assumed 'de' (this will throw an Error in a future version of PHP)
[phpBB Debug] PHP Warning: in file [ROOT]/newpost2mail.config.php on line 269: Use of undefined constant forum - assumed 'forum' (this will throw an Error in a future version of PHP)
[phpBB Debug] PHP Warning: in file [ROOT]/newpost2mail.config.php on line 270: Use of undefined constant de - assumed 'de' (this will throw an Error in a future version of PHP)
[phpBB Debug] PHP Warning: in file [ROOT]/newpost2mail.config.php on line 270: Use of undefined constant thread - assumed 'thread' (this will throw an Error in a future version of PHP)
[phpBB Debug] PHP Warning: in file [ROOT]/newpost2mail.config.php on line 271: Use of undefined constant de - assumed 'de' (this will throw an Error in a future version of PHP)
[phpBB Debug] PHP Warning: in file [ROOT]/newpost2mail.config.php on line 271: Use of undefined constant subject - assumed 'subject' (this will throw an Error in a future version of PHP)
[phpBB Debug] PHP Warning: in file [ROOT]/newpost2mail.config.php on line 272: Use of undefined constant de - assumed 'de' (this will throw an Error in a future version of PHP)
[phpBB Debug] PHP Warning: in file [ROOT]/newpost2mail.config.php on line 272: Use of undefined constant user - assumed 'user' (this will throw an Error in a future version of PHP)
[phpBB Debug] PHP Warning: in file [ROOT]/newpost2mail.config.php on line 273: Use of undefined constant de - assumed 'de' (this will throw an Error in a future version of PHP)
[phpBB Debug] PHP Warning: in file [ROOT]/newpost2mail.config.php on line 273: Use of undefined constant ip_hostname - assumed 'ip_hostname' (this will throw an Error in a future version of PHP)
[phpBB Debug] PHP Warning: in file [ROOT]/newpost2mail.config.php on line 274: Use of undefined constant de - assumed 'de' (this will throw an Error in a future version of PHP)
[phpBB Debug] PHP Warning: in file [ROOT]/newpost2mail.config.php on line 274: Use of undefined constant host_na - assumed 'host_na' (this will throw an Error in a future version of PHP)
[phpBB Debug] PHP Warning: in file [ROOT]/newpost2mail.config.php on line 275: Use of undefined constant de - assumed 'de' (this will throw an Error in a future version of PHP)
[phpBB Debug] PHP Warning: in file [ROOT]/newpost2mail.config.php on line 275: Use of undefined constant actions - assumed 'actions' (this will throw an Error in a future version of PHP)
[phpBB Debug] PHP Warning: in file [ROOT]/newpost2mail.config.php on line 276: Use of undefined constant de - assumed 'de' (this will throw an Error in a future version of PHP)
[phpBB Debug] PHP Warning: in file [ROOT]/newpost2mail.config.php on line 276: Use of undefined constant reply - assumed 'reply' (this will throw an Error in a future version of PHP)
[phpBB Debug] PHP Warning: in file [ROOT]/newpost2mail.config.php on line 277: Use of undefined constant de - assumed 'de' (this will throw an Error in a future version of PHP)
[phpBB Debug] PHP Warning: in file [ROOT]/newpost2mail.config.php on line 277: Use of undefined constant quote - assumed 'quote' (this will throw an Error in a future version of PHP)
[phpBB Debug] PHP Warning: in file [ROOT]/newpost2mail.config.php on line 278: Use of undefined constant de - assumed 'de' (this will throw an Error in a future version of PHP)
[phpBB Debug] PHP Warning: in file [ROOT]/newpost2mail.config.php on line 278: Use of undefined constant edit - assumed 'edit' (this will throw an Error in a future version of PHP)
[phpBB Debug] PHP Warning: in file [ROOT]/newpost2mail.config.php on line 279: Use of undefined constant de - assumed 'de' (this will throw an Error in a future version of PHP)
[phpBB Debug] PHP Warning: in file [ROOT]/newpost2mail.config.php on line 279: Use of undefined constant delete - assumed 'delete' (this will throw an Error in a future version of PHP)
[phpBB Debug] PHP Warning: in file [ROOT]/newpost2mail.config.php on line 280: Use of undefined constant de - assumed 'de' (this will throw an Error in a future version of PHP)
[phpBB Debug] PHP Warning: in file [ROOT]/newpost2mail.config.php on line 280: Use of undefined constant info - assumed 'info' (this will throw an Error in a future version of PHP)
[phpBB Debug] PHP Warning: in file [ROOT]/newpost2mail.config.php on line 281: Use of undefined constant de - assumed 'de' (this will throw an Error in a future version of PHP)
[phpBB Debug] PHP Warning: in file [ROOT]/newpost2mail.config.php on line 281: Use of undefined constant pm - assumed 'pm' (this will throw an Error in a future version of PHP)
[phpBB Debug] PHP Warning: in file [ROOT]/newpost2mail.config.php on line 282: Use of undefined constant de - assumed 'de' (this will throw an Error in a future version of PHP)
[phpBB Debug] PHP Warning: in file [ROOT]/newpost2mail.config.php on line 282: Use of undefined constant email - assumed 'email' (this will throw an Error in a future version of PHP)
[phpBB Debug] PHP Warning: in file [ROOT]/newpost2mail.config.php on line 283: Use of undefined constant de - assumed 'de' (this will throw an Error in a future version of PHP)
[phpBB Debug] PHP Warning: in file [ROOT]/newpost2mail.config.php on line 283: Use of undefined constant attachments - assumed 'attachments' (this will throw an Error in a future version of PHP)
[phpBB Debug] PHP Warning: in file [ROOT]/newpost2mail.config.php on line 284: Use of undefined constant de - assumed 'de' (this will throw an Error in a future version of PHP)
[phpBB Debug] PHP Warning: in file [ROOT]/newpost2mail.config.php on line 284: Use of undefined constant edited_by - assumed 'edited_by' (this will throw an Error in a future version of PHP)
[phpBB Debug] PHP Warning: in file [ROOT]/newpost2mail.config.php on line 285: Use of undefined constant de - assumed 'de' (this will throw an Error in a future version of PHP)
[phpBB Debug] PHP Warning: in file [ROOT]/newpost2mail.config.php on line 285: Use of undefined constant edit_reason - assumed 'edit_reason' (this will throw an Error in a future version of PHP)
[phpBB Debug] PHP Warning: in file [ROOT]/newpost2mail.php on line 91: Use of undefined constant en - assumed 'en' (this will throw an Error in a future version of PHP)
[phpBB Debug] PHP Warning: in file [ROOT]/newpost2mail.php on line 127: Use of undefined constant sitename - assumed 'sitename' (this will throw an Error in a future version of PHP)
[phpBB Debug] PHP Warning: in file [ROOT]/newpost2mail.php on line 182: Use of undefined constant attachment_data - assumed 'attachment_data' (this will throw an Error in a future version of PHP)
[phpBB Debug] PHP Warning: in file [ROOT]/newpost2mail.php on line 187: Use of undefined constant message - assumed 'message' (this will throw an Error in a future version of PHP)
[phpBB Debug] PHP Warning: in file [ROOT]/newpost2mail.php on line 187: Use of undefined constant bbcode_uid - assumed 'bbcode_uid' (this will throw an Error in a future version of PHP)
[phpBB Debug] PHP Warning: in file [ROOT]/newpost2mail.php on line 187: Use of undefined constant bbcode_bitfield - assumed 'bbcode_bitfield' (this will throw an Error in a future version of PHP)
[phpBB Debug] PHP Warning: in file [ROOT]/newpost2mail.php on line 187: Use of undefined constant forum_desc_options - assumed 'forum_desc_options' (this will throw an Error in a future version of PHP)
[phpBB Debug] PHP Warning: in file [ROOT]/newpost2mail.php on line 193: Use of undefined constant attachment_data - assumed 'attachment_data' (this will throw an Error in a future version of PHP)
[phpBB Debug] PHP Warning: in file [ROOT]/newpost2mail.php on line 209: Use of undefined constant post_edit_reason - assumed 'post_edit_reason' (this will throw an Error in a future version of PHP)
[phpBB Debug] PHP Warning: in file [ROOT]/newpost2mail.php on line 279: Use of undefined constant forum_id - assumed 'forum_id' (this will throw an Error in a future version of PHP)
[phpBB Debug] PHP Warning: in file [ROOT]/newpost2mail.php on line 312: Use of undefined constant to - assumed 'to' (this will throw an Error in a future version of PHP)
[phpBB Debug] PHP Warning: in file [ROOT]/newpost2mail.php on line 312: Use of undefined constant email - assumed 'email' (this will throw an Error in a future version of PHP)
[phpBB Debug] PHP Warning: in file [ROOT]/newpost2mail.php on line 313: Use of undefined constant to - assumed 'to' (this will throw an Error in a future version of PHP)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 1855: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3314)
Nun hat der Autor dieser Extension diese leider aufgegeben. Kann sich das bitte mal jemand anschauen?
Nutze diese Mod / Ext schon seit Jahren und würde sie schmerzlich vermissen!

Diese Extension läuft bis einschließlich php 7.1 fehlerfrei...
Die in Frage kommenden Dateien kann ich auch hier einstellen falls das erforderlich ist.
Benutzeravatar
Dr.Death
Moderator
Moderator
Beiträge: 17395
Registriert: 23.04.2003 08:22
Wohnort: Xanten
Kontaktdaten:

Re: Fehlermeldung newspostmail unter php 7.2

Beitrag von Dr.Death »

Ohne den Code zu sehen (Download link?) kann hier nur die Glaskugel was sagen:

In dem Code wurden Arrays genutzt die ggf. nicht in einfachen Anführungszeichen stehen:

ALT:
$_POST[email]
NEU:
$_POST[[color=#FF0000]'[/color]email[color=#FF0000]'[/color]]



Gefunden per Google nach " php Use of undefined constant " :-)

http://www.php-faq.de/q-fehler-konstante.html
https://stackoverflow.com/questions/294 ... stant-mean
http://thisinterestsme.com/use-of-undefined-constant/
Benutzeravatar
FuGu
Mitglied
Beiträge: 202
Registriert: 16.01.2008 18:17

Re: Fehlermeldung newspostmail unter php 7.2

Beitrag von FuGu »

Kein Problem... hier sind die beiden in Frage kommenden Dateien:

https://www.phpbb.de/pastebin/?mode=view&s=64

https://www.phpbb.de/pastebin/?mode=view&s=65
Benutzeravatar
chris1278
Mitglied
Beiträge: 3526
Registriert: 12.11.2007 06:20
Wohnort: Euskirchen
Kontaktdaten:

Re: Fehlermeldung newspostmail unter php 7.2

Beitrag von chris1278 »

Also wenn ich das richtig verstehe bekommt man durch diese Extension die neuen BEiträge in html form an die Email geschickt.

Naja wenn man das unbedingt braucht. Wäre nicht einfachere Alles so einzustellen das man alles als Lesezeichen hat und eine Benachrichtigung per Email bekommt wenn ein neuer Beitrag aufs lesezeichen oder meinetwegen Aboniertes Thema kommt.

Warum brauchst du dann noch ein Forum wenn du eh nicht online gehst und dir das da durchliest.
Benutzeravatar
Dr.Death
Moderator
Moderator
Beiträge: 17395
Registriert: 23.04.2003 08:22
Wohnort: Xanten
Kontaktdaten:

Re: Fehlermeldung newspostmail unter php 7.2

Beitrag von Dr.Death »

Chris: Über den Zweck zu Diskutieren geht es hier doch nicht.

Jeder hat seinen eigenen Use-Case für die Verwendung irgendeiner Extension...


Und die Lösung habe ich bereits gepostet.... :-)

Beispiele:

ALT:

Code: Alles auswählen

 $n2m_MAIL_ON[post]  = 1;
 $n2m_MAIL_ON[reply] = 1;
 $n2m_MAIL_ON[quote] = 1;
 $n2m_MAIL_ON[edit]  = 1;
müssen NEU so aussehen:

Code: Alles auswählen

$n2m_MAIL_ON['post']  = 1;
$n2m_MAIL_ON['reply'] = 1;
$n2m_MAIL_ON['quote'] = 1;
$n2m_MAIL_ON['edit']  = 1;
und natürlich alle anderen Vorkommen....
Benutzeravatar
chris1278
Mitglied
Beiträge: 3526
Registriert: 12.11.2007 06:20
Wohnort: Euskirchen
Kontaktdaten:

Re: Fehlermeldung newspostmail unter php 7.2

Beitrag von chris1278 »

Nein ist ok die frage war nicht ganz durchdacht. Daher bitte ich meinen Kommentar zu vergessen!
Benutzeravatar
FuGu
Mitglied
Beiträge: 202
Registriert: 16.01.2008 18:17

Re: Fehlermeldung newspostmail unter php 7.2

Beitrag von FuGu »

@ Dr. Death
Ich danke dir!
Ich hab die Änderungen vorgenommen und keine Fehlermeldungen mehr.
Würdest du das denn ggf. in dem entsprechenden Thread der Mod / Ext posten? Vielleicht gibt es ja noch andere die diese Ext nutzen und gleiches Problem haben...
Könnte ich aber auch machen, wenn du meinst das ist ok?!

@ Chris
Ich nutze das in zwei Gamer Foren... und die Jungs driften in ihren Diskussionen mal schnell ab. So kann man auch von unterwegs flott überfliegen und ggf. "einschreiten". Ich bin mir natürlich um die von dir genannten Funktionen bewusst. Brauche aber genau diese Ext für die Moderatoren, da sie mehr still agieren...
Benutzeravatar
Dr.Death
Moderator
Moderator
Beiträge: 17395
Registriert: 23.04.2003 08:22
Wohnort: Xanten
Kontaktdaten:

Re: Fehlermeldung newspostmail unter php 7.2

Beitrag von Dr.Death »

Ich hab mal eine Datei versucht im Blindflug anzupassen:

https://www.phpbb.de/pastebin/?mode=view&s=66

Probiere es mal aus........ und sag Bescheid ;-)


Die Änderungen oder Hinweise auf die neuere PHP Version und dass Lösung kannst Du im ursprünglichen Thema gerne selbst platzieren.... kein Problem.
Benutzeravatar
FuGu
Mitglied
Beiträge: 202
Registriert: 16.01.2008 18:17

Re: Fehlermeldung newspostmail unter php 7.2

Beitrag von FuGu »

Hey Death...

Hatte ich doch schon! :roll:

Jetzt hab ich ein schlechtes Gewissen, weil du dir die Mühe gemacht hast. Hatte aber nach deinem Post direkt geändert und als positiv getestet!
Benutzeravatar
Dr.Death
Moderator
Moderator
Beiträge: 17395
Registriert: 23.04.2003 08:22
Wohnort: Xanten
Kontaktdaten:

Re: Fehlermeldung newspostmail unter php 7.2

Beitrag von Dr.Death »

Das war keine große Mühe..... nur ein paar lockere Copy & Paste Fingerübungen ;-)
Antworten

Zurück zu „Extension Support“