Notify Admin on Registration

NotifyAdmin on phpBB 3.3 [SOLVED] - Notify Admin on Registration

NotifyAdmin on phpBB 3.3 [SOLVED]

by brainsys » Tue Jan 07, 2020 2:04 pm

On updating the system disabled the extension with the message:
Exception: The file "/ext/dmzx/notifyadmin/config/services.yml" does not contain valid YAML: The reserved indicator "@" cannot start a plain scalar; you need to quote the scalar at line 5 (near "- @auth").

Any chance of an upgrade iin the future to this great extension - or is there a patch I could apply to the code?

Stuart
Last edited by brainsys on Wed Jan 08, 2020 12:47 pm
brainsys
Registered User
Posts: 59
Joined: Mon Sep 20, 2004 8:03 pm
Contact:

Re: NotifyAdmin on phpBB 3.3

by rleeden » Tue Jan 07, 2020 5:40 pm

It seems it's complaining about missing quotes, so just edit the file it mentions (/ext/dmzx/notifyadmin/config/services.yml) and put single quotes around the arguments - i.e:

Code: Select all

services:
    dmzx.notifyadmin.listener:
        class: dmzx\notifyadmin\event\listener
        arguments:
            - '@auth'
            - '@config'
            - '@dbal.conn'
            - '@user'
            - '@template'
            - '@request'
            - '%core.php_ext%'
            - '%core.root_path%'
        tags:
            - { name: event.listener }
I[ve not tested if the extension still works as expected, but it stops phpBB reporting an error.
User avatar
rleeden
Registered User
Posts: 23
Joined: Sun Jul 23, 2006 11:57 am
Contact:

Re: NotifyAdmin on phpBB 3.3

by brainsys » Wed Jan 08, 2020 12:46 pm

Thank you. Tested and working!

Best,
Stuart
brainsys
Registered User
Posts: 59
Joined: Mon Sep 20, 2004 8:03 pm
Contact:

Re: NotifyAdmin on phpBB 3.3 [SOLVED]

by dmzx » Wed Jan 08, 2020 5:35 pm

Will update the extension also here for 3.3.x
Above is indeed the quick fix for it.
Contact me on dmzx-web.net
 Need a Host or buy me a beer Donate and try binance.com
User avatar
dmzx
Registered User
Posts: 829
Joined: Fri Sep 05, 2014 6:48 am
Location: The Netherlands
Contact:

Re: NotifyAdmin on phpBB 3.3 [SOLVED]

by SandtD » Thu Mar 19, 2020 2:48 am

Is there a updated version for phpBB 3.3 yet?
SandtD
Registered User
Posts: 3
Joined: Thu Mar 19, 2020 2:27 am
Contact:

Re: NotifyAdmin on phpBB 3.3 [SOLVED]

by MIMATA » Mon Apr 20, 2020 9:54 am

Hello,

Same question : ersion for phpbb 3.3 will be release soon ?

Thank you for your work. This extension is very usefull.
User avatar
MIMATA
Registered User
Posts: 5
Joined: Thu Dec 09, 2010 3:59 am
Location: France
Contact: