14-RC3 issue: Push notification NOT working
We have some experienced colleagues looked at the issue of "Push notification" stopped working after 14-RC3 update and it was concluded that this feature stopped working after the new update.
I hope our friends in UNA team look at this ASAP.
-
-
·
Alex T⚜️
- ·
Please check the following setting in Studio > Settings > Push notifications
If it's None, then select OneSignal there and save.
-
·
Alex T⚜️
-
Thanks, @Alex T⚜️. Yes, we already changed it to OneSignal.
-
Already changed. Can you suggest another solution please? @Alex T⚜️ @LeonidS
-
- · Romulus
-
·
In reply to Alex T⚜️
- ·
web app from UNA push notifications from UNA don't work on my Android phone either, I think this is a general problem since the last update it doesn't work for anyone anymore, I also have a una test version online in which I installed a my test site and the push notifications don't work on that site either since I updated to 14.0.0-RC3
-
Thank you so much for your input @Romulus . Much appreciated, I hope UNA team will get this issue addressed promptly.
-
-
·
Anton L
- ·
Hello. Thank you for the report: https://github.com/unacms/una/issues/4930
-
·
Anton L
-
Thanks, @Anton L .
I see that there is bug fix for the issue of Push notification (https://unacms.com/cmts-view/usnzsi?sys=bx_forum&cmt_id=51680).
Do you think this can be applied before waiting for the next release?
-
- · Romulus
- ·
Always Use a Stable Version for Your Websites!
Keeping your website updated is crucial for security, performance, and functionality. However, immediately applying the latest updates without prior testing can introduce unexpected issues. While new versions bring improvements, they may also contain bugs, compatibility problems, or unforeseen performance issues.
The Risks of Immediate Updates
Every software update is designed to enhance security and functionality, but new versions can also introduce:
- Unresolved bugs that may affect critical features.
- Compatibility issues with plugins, themes, or custom integrations.
- Performance instability due to unexpected changes.
If an update is applied directly to a live site without prior testing, it can lead to downtime, broken functionality, or a poor user experience.
A Professional Approach to Updates
To maintain a stable and reliable website, follow a structured update process:
- Disable automatic updates on your live site. This prevents untested versions from being deployed unexpectedly.
- Set up a dedicated test environment (e.g., yoursite.com/dev/) where the latest updates can be applied safely.
- Thoroughly test each update in the development environment, checking for compatibility and stability.
- Only update your live site once testing is complete and you are confident everything works as expected.
Why This Strategy Ensures Stability
By implementing a structured update process, you can:
✔ Minimize downtime and disruptions.
✔ Ensure full compatibility with your existing setup.
✔ Maintain optimal performance and security.
A well-maintained website is essential for a seamless user experience, but updates should be handled carefully. Always test new versions in a development environment before applying them to your live site. By prioritizing stability over immediacy, you can prevent issues and ensure a reliable online presence.
-
- · Devin Young
- ·
Same here. No site notifications. I'm not sure if this is the same thing, but are others getting this error:
PHP Fatal error: Uncaught Error: Call to undefined method BxDolPush::getInstance() in /home/djcaa/web/website.org/public_html/modules/boonex/notifications/classes/BxNtfsModule.php:702
Stack trace:
#0 /home/djcaa/web/website.org/public_html/modules/boonex/notifications/classes/BxNtfsCronQueue.php(39): BxNtfsModule->sendNotificationPush()
#1 /home/djcaa/web/website.org/public_html/periodic/cron.php(121): BxNtfsCronQueue->processing()
#2 /home/djcaa/web/website.org/public_html/periodic/cron.php(159): runJob()
#3 {main}
thrown in /home/djcaa/web/website.org/public_html/modules/boonex/notifications/classes/BxNtfsModule.php on line 702
-
I'm getting the notifications now but I still get this error each time I get the notification:
#0 /home/djcaa/web/website.org/public_html/modules/boonex/notifications/classes/BxNtfsCronQueue.php(39): BxNtfsModule->sendNotificationPush()
#1 /home/djcaa/web/website.org/public_html/periodic/cron.php(121): BxNtfsCronQueue->processing()
#2 /home/djcaa/web/website.org/public_html/periodic/cron.php(159): runJob()
#3 {main}
thrown in /home/djcaa/web/website.org/public_html/modules/boonex/notifications/classes/BxNtfsModule.php on line 702
Any idea how to fix?
-
- · Tajrebatee
- ·
Unfortunately, Not fixed yet.
We applied the bug fix in GitHub, however, push notification are now stuck in Queue and not being sent.
-
- · Tajrebatee
- ·
Attached is the error.log file I got. Any help will be appreciated!
-
- · Tajrebatee
- ·
@Anton L I appreciate looking at the updated error above.
-
Hello. You are welcome and yes, you may apply it manually. The bug fix is simple and it cannot affect anything else.
-
Thanks. I already did and Push notifications still not working. Please look at comments above.
-
- · Tajrebatee
- ·
When I checked the table "sys_queue_push", i notied that the column "profile ID" is the same for all different messages and is equal to "0". (see attached image below)
So, not sure if this finding is related to the reason of failing to send Push notification and get them stuck in the queue?
-
- · Mayki
-
·
In reply to Tajrebatee
- ·
@Tajrebatee - link for bug fix is not working ?
-
- · Tajrebatee
-
·
In reply to Mayki
- ·
Well, it led to the push notification to get stuck in queue, but not sent. Still hoping to get it work..
-
- · Mayki
- ·
I've changed both files ( ../inc/classes/BxDolQueuePush.php and .../modules/boonex/notfications/classes/BxNtfsModule.php ) enabled some push notifications since all Push notification was turned off due to this Discussion: here ( https://unacms.com/d/php-fatal-error-notifications )
Now the PHP Fatal errors are gone but no Push notification at all....
-
- · Tajrebatee
-
·
In reply to Mayki
- ·
So, Push Notification is still not working yet, correct?
-
- · Mayki
-
·
In reply to Tajrebatee
- ·
No, at least not on our site.
But after applying the fix several thousand e-mails were sent out to our members - A lot of e-mail weren't sent before the fix.... and I didn't realize that they were all waiting in a Table: sys_queue_email 🙄
-
- · Tajrebatee
-
·
In reply to Mayki
- ·
You can always view your queues (email and push) in the studio -> dashboard ->Queues.
Thanks for the update. I hope someone can fix this issue with the Push notification. In online community websites, this features is so crucial to keep people know about what is going on and keep visiting the site. Otherwise, the sites will dry out.
-
Hello. It looks like you didn't copy the error message itself. It should be before line with '#0 /home/djcaa/web/...'
-
Hello.
After UNA 14-RC3 release we found the following issue https://github.com/unacms/una/issues/4930 The fix was applied on this site and Push notifications back to work.
The chages made in RC3 broke the mechanism which puts Push notifications in the queue. It also cause PHP errors on CronTab execution. The problems was fixed in the specified ticket. But in your case notifications are in the queue and the problem is that the profile_id is emplty. It means that all the notifications should be sent to non existed user. So, you need to find out why notifications are generated for Profile with ID = 0. I cannot reproduce the issue on our DEV and Live sites.
-
Thanks @Anton L for your input. Any insights or general guidance on what things we should investigate as potential culprit for this issue?
-
These notifications are sent with Notifications module. Do you have the latest version of the module? Did you do any customizations in it?
Also you may check sys_queue_email table simultaneously with sys_queue_push one. If notification settings are the same for Email and Push notifications then you should receive identical records in both tables. Compare them.
-
Thanks a lot for your prompt reply.
1-Notification module is the latest version (14.0.6) and no customizations made.
2-Email notifications working fine. I checked the table (below) nothing is stuck there.
Any more suggestions? Appreciate your help!
email table:
Push notification table:
-
OK. All this notifications for 'non existed' user aren't needed. Try to remove all of them from the queue (sys_queue_push table) and test. Check both tables simultaneously to see if they get similar records related to the action you perform on the site.
-
Did as you recommended above. Same thing. Email table is free of stuck messages and notification works for email. Push notifications stuck.
So, tables are different. Essentially, as the images shown above (I can resend if needed).
Not sure what the issue is, and where to go from here.
-
I think this ticket needs to be reopened and refixed as it still not working correctly even for fresh install.
-
OK. I have another site, that has the same issue (push notifications stuck in queue). When I checked the same table (in the second site) it has correct profile ID but yet, stuck in queue (see image below).
-
Thank you so much @Stephen-Mystic Inam !
-
- · Mayki
-
·
In reply to Tajrebatee
- ·
You can always view your queues (email and push) in the studio -> dashboard ->Queues.
Yes, I know that but there was no record ( it was 0) for Mail Queue like so:
-
- · Tajrebatee
-
·
In reply to Mayki
- ·
That is strange!
-
- · Mayki
-
·
In reply to Tajrebatee
- ·
Very.
-
- · Tajrebatee
- ·
@Anton L @LeonidS @Alex T⚜️
I did resolve the issue of "Profile_id" = zero (see image below), however, messages are still stuck in push queue. However, I compared head to head to an older version of RC2 (before the update) and it worked OK.
I really appreciate relooking at this module again to help address this issue.
-
- · Mayki
- ·