General discussion of development ideas and the approaches taken in the 3.x branch of phpBB. The current feature release of phpBB 3 is 3.3/Proteus.
Forum rules Please do not post support questions regarding installing, updating, or upgrading phpBB 3.3.x. If you need support for phpBB 3.3.x please visit the 3.3.x Support Forum on phpbb.com.
If you have questions regarding writing extensions please post in Extension Writers Discussion to receive proper guidance from our staff and community.
I know that there have been some changes to the notification system in 3.2 - although I cannot say that I have seen any documentation as to what has changed.
I am struggling with notifications in 3.2 (to be honest I was struggling with notifications in 3.1 - but that's another story!). With any notification created by an extension in 3.2 I keep coming up with the same error messageThe service definition "" does not exist. - this is occurring not only with my extensions but with the Board Rules extension.
This is not a particularly helpful error message and even with the development error reporting there are no clues (well not to me) as to what is causing this error.
Taking the Board Rules as an example - the same code works fine on 3.1, so my question is what has changed to cause this error - or is it a bug?
David Remember: You only know what you know -
and you do not know what you do not know!
Catchable Fatal Error: Argument 1 passed to phpbb\notification\type\base::__construct() must implement interface phpbb\db\driver\driver_interface, instance of phpbb\user_loader given, called in C:\htdocs\phpbb_dev\ext\phpbb\boardrules\notification\boardrules.php on line 43 and defined
After fixing these (there were four altogether) I then got the The service definition "" does not exist. again
David Remember: You only know what you know -
and you do not know what you do not know!
DavidIQ wrote: ↑Mon Apr 25, 2016 1:30 pm
There is no such branch in the Board Rules extension repo:
There is - it is the Master branch.
Now that you have pointed me to the 3.2 version I am making headway - I have managed to get a notification to work, albeit not as I want it to but it is now a work in progress
David Remember: You only know what you know -
and you do not know what you do not know!
That's true. F.e. notifications_table injection was removed from user notifications.
For 3.2, the parent instruction can be used for notification service definition instead of arguments list, f.e. https://github.com/phpbb-extensions/boa ... ml#L72-L79
For the record, and for anybody having the same problem, the original error of The service definition "" does not exist. was caused by this line in the find_users_for_notification() function