·
Added a discussion

Hello,

after upgrading to UNA ver. 14.0.0-RC3 we are getting this error:

PHP Fatal error:  Uncaught Error: Call to undefined method BxDolPush::getInstance() in /path/to/una/modules/boonex/notifications/classes/BxNtfsModule.php:702
Stack trace:
#0 /path/to/una/modules/boonex/notifications/classes/BxNtfsCronQueue.php(39): BxNtfsModule->sendNotificationPush()
#1 /path/to/una/periodic/cron.php(121): BxNtfsCronQueue->processing()
#2 /path/to/una/periodic/cron.php(159): runJob()
#3 {main}
  thrown in /path/to/una/modules/boonex/notifications/classes/BxNtfsModule.php on line 702

Cron runs every minute as:

/usr/bin/php8.2 -f /path/to/una/periodic/cron.php

Anyone else? This PHP error start after upgrade.

Any help maybe?

  • 1326
Comments
    • I have the same error.

      • I'll take a guess but could be right, I'll explain now.

        The upgrade happens systematically, and per module...

        It could still be in progress. Please share the last bit of entries of the upgrade log which is in Public_html/logs folder.

        I won't really recommend a live site to be on auto or forced upgrade by default, hence will you use this feature. Run the upgrade on your dev box first, always.

        Also, switch on automatic update maybe on a Friday afternoon, when production hours are not that much compromised, but on Dev, keep it always on, to keep up "what happens behind the scene"

        To conclude, always check if there are any update in the AppStore after an upgrade.

        (The above might not be on point, but a rather close speculation if one tries to figure out.)

        • Hello @Chris Andre Buys

          thank you for yor reply.

          Our site is not set to auto-update. I did the upgrade manually from Studio and I have also upgraded all the upgradbale modules - without any error during the process.

          I am hoping for some more clues what might be the couse for this PHP error

          • Hi @Antonio

            I hope that someone will help us with the problem.

            • @Mayki You welcome,

              Very well Then. One more thing, when doing manual update/upgrade, and this is from my experience, it's not like you press the Update button once and it's done. You gotto repeat the process a couple of times. and where we really see the process through, could it be /public_html/logs/upgrade.log

              Sometime we overlook the little things.

              PHP errors... Server PHP version and if not, the upgrade has not complete its full cycle yet, and looking at the type of error... the notification module is making a call probably to an upgraded instance/module or the other way round. (just check your notification but specifically its version)

              • Hi @Chris Andre Buys

                I understand the "secrets" and "funs" with UNA.... I've been around since the Dolphin era...., but thank you anyway for your tips. I think I was able to find the problem and I will post the solution here, a bit later, just need to be sure if the mentioned PHP problem is gone for good.

                Kind regards

                Mayki

                • That is good news... ag, as long as you solved the issue and that is why I sounded so irritated perhaps, because I know the feelings of wanting answers quick from the forum.

                  • Nothing?

                    • Hello @Antonio !

                      Do you still have those errors in your error log after update of all installed modules? Or maybe you have it somewhere on the site?

                      • This is stil a problem and I think it efect the e-mails being sent out to members.... 

                        Before this we have had a few tousand e-mails sent out per day but after this problem we are sennding out only a few hundred e-mail notifications. So it is a big issue not just a minor PHP Error..., it is fatal indeed ....

                        Please help.....

                        • Hope to see an answer too. Since the latest update, we are having issues with Push notifications not working (not sure if these are related). Good luck with this!

                          • Hello,

                            it is definatly something with push notification.

                            What I did today was:

                            • I disabbled SMTP Mailer ( I did that because before this PHP Fatal Error as I already wrote abowe we have had a few tousand e-mails sent out per day but after this problem we are sennding out only a few hundred e-mail notifications.) If a member with 2, 3 houndred friends posted something on site, only one or two e-mail were sent instead 2-3 hundred so I thought it might be some issue with SMTP Mailer...; I've tested sending a Test e-mail from the SMTP Mailer module and it was OK, the e-mail was actually sent to the receiver. But I dissabled it anyway.
                            • Next I opened sttings for Notifications module and I've dissabled all Notifications for Site, Email and Push notofication....., cleared all cache and then I waited for aprox. 20min and no email to site admin about PHP Error was received. I have re-enabled SMTP Mailer (I needed to set up it's all the parameters again 'couse it losess all of it'ssetings if you just disable it, I thought the data stays im MySQL if the module is just "temporarry" dissabled but not for this module. Anyhow, after settings were done I tryed to sent test e-mail again and it was all OK again. I was then waiting for aprox 30min and no PHP Error e.mail received.... So far so good...
                            • Next I re-enabled all the notifications in Notifications module except for the Push notifications - I left them dissabled. I soon noticed that the site started to send out a "normal" amout of emails as it was sending them before this PHP Error. I then waited for more then 6 houres and not single PHP Fatal Error was sent out to Admin.
                            • Last step was re-enabeling Push notification. Bam! In a matter of a 30s Admin received 3 emails about PHP Fatal Error. So for now we need to have them dissabled ( the Push notification never really worked from our site, so no big deal)

                            I hope UNA guys will find the way for solving this issue ( I am sure they know how but will they?? Well that's diffrent storry). For now the problem is not considered as bug so I don't have very high hopes to see the solution in near future....😩

                            Best regards, Mayki

                            • Hi @Mayki .. I feel you..and it is very frustrating too, but... don't give up.

                              Please share your config like in php version, database engine and version also some of the last entries in relevant log files.

                              Regards

                              Chris

                              • Hello @Chris Andre Buys

                                Server config is like:

                                Linux Ubuntu 24.04.2 LTS, web server: Apache/2.4.58 (Ubuntu), MySQL database engine, ver.8.0.41-0ubuntu0.24.04.1 (Ubuntu) and php ver. PHP 8.3.17.

                                About "relevant log files" - which one do you mean? Also now it wont be any logs about that error since the Push notifications are turned off completely ....

                                Best regards

                                Mayki

                                • Bear in mind.. the cause of things evolved from php fatal errors, but

                                  My hope was together with the config and in conjunction with the recent log files entries, trace processes to it be sql queries or php code that are faulty perhaps. The reason for latest log file considering upgrades finally completed. Can you perhaps simulate this on the dev box, hope you have a mirror

                                  I know, it seems as if we back and forth with the ordeal, but it is essential to pin point to recent events.

                                  I know I am not the the likes of @LeonidS who are the professionals, but I have extensive knowledge in the field of Linux Ubuntu 24.04.2 LTS and be rest assured, I don't intend to waist your time.

                                    • Getting the same errors after upgrading.

                                      • I already wrote this in Disussion :

                                        https://unacms.com/d/14-rc3-issue-push-notification-not-working

                                        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....

                                        • I just want to say that now, for a few days push notification are working. I don't know exactly what was the cause for not working..., I was plying with notification settings and then all of the sudden push notifications started to work....

                                          image_transcoder.php?o=sys_images_editor&h=2576&dpx=2&t=1741266654

                                          👌

                                          • Thanks for the update. They are working but are stuck in the Queue. Did you make sure that these notification actually reached to their recipients? For me I see the same, notification are flooding the queue but are not sent out. They are not working. Hope UNA team address this issue.

                                            @Anton L

                                            @LeonidS

                                            • When I wrote "push notification are working" above I meant actually working. Not just flooding the DB. I can confirm receiving Push notification from our site to my mobile device.

                                              I can also monitor Push notification on my OneSignal Dashboard:

                                              image_transcoder.php?o=sys_images_editor&h=2577&dpx=2&t=1741269127

                                              • That's great. My understanding (and experience) is that when push are sent, the queue should clean to zero, do your queue push counters go to zero after all pushes are sent out? (mine is all stuck in the queue (example below) and notifications are not sent to mobile device (only emails are sent).

                                                Not sure why, this happned only after RC3 update.

                                                image_transcoder.php?o=sys_images_editor&h=2578&dpx=2&t=1741269547

                                                Login or Join to comment.