Closed tksadmin closed 2 years ago
Confirm. I have no any notifications in browser.
Ok, i digged a little bit further. AJAX notifications seems to be loaded by static function loadJavascript() in Html.php (line 6171). However, this function is called only in popFooter()
Adding
self::loadJavascript();
at the end of static footer() function in Html.php seems to fix the issue.
Hi,
Could you check if #10664 fixes this issue ?
Regards
Yes, it works!
Thank you
Hmm
I have such nitification(
php-errors.log: [2022-02-15 20:16:24] glpiphplog.WARNING: *** PHP User Warning (512): NotificationEventAjax::send should not be called! in /var/www/html/glpi/src/NotificationEventAjax.php at line 80 Backtrace : src/NotificationEventAjax.php:80 trigger_error() src/QueuedNotification.php:462 NotificationEventAjax::send() src/QueuedNotification.php:102 QueuedNotification->sendById() src/MassiveAction.php:1175 QueuedNotification::processMassiveActionsForOneItemtype() src/MassiveAction.php:1153 MassiveAction->processForSeveralItemtypes() front/massiveaction.php:57 MassiveAction->process()
hello friends, I tried the solution mentioned in the GLPI 10.0.0 release, however, without success, could you help me?
Code of Conduct
Is there an existing issue for this?
Version
[GLPI 10.0.0-rc1]
Bug description
AJAX notifications seems to be ignored and sent always like a mail. When I send a test browser notification nothing happens. I can see it in the notification queue, but when I try to force sending, it throws an error, attached in the log output. This seems to happen everytime for every notification, also for the custom ones.
Relevant log output
Page URL
No response
Steps To reproduce
Setup -> Notifications -> Browser followups configuration -> Send a test browser notification to you -> Nothing happens
Administration -> Notification Queue -> Click on the generated notification -> Actions -> Send -> Post -> Error
---- This happens also with custom notifies
Setup -> Notifications -> Notifications Template -> Add -> Name:test, Type:ticket -> Add -> Subject:test, Email text body:test -> Add Setup -> Notifications -> Notifications -> Add -> Name:test, Active:yes, Type:ticket, Event:New Ticket -> Save -> Templates -> Add a Template, select previous created template, Mode:Browser, recipient:super-admin
Your GLPI setup information
Information about system installation and configuration
Server
GLPI constants
Libraries
SQL replicas
Notifications
Plugins list
Anything else?
No response