juacas / moodle-message_appcrue Goto Github PK
View Code? Open in Web Editor NEWIntegración de la mensajería push de AppCrue con Moodle.
License: Other
Integración de la mensajería push de AppCrue con Moodle.
License: Other
Hi @juacas,
Today, after the upgrade using the path provided for #7, we are still facing the same error:
Sending messages to YYYYYYYYY (NNNNNNN)
++ Push API Response:{"errors":{"type":"NotificationNotCreated","message":["Target can not be empty"]}} ++
* line 167 of /message/output/appcrue/message_output_appcrue.php: call to debugging()
* line 106 of /message/output/appcrue/message_output_appcrue.php: call to message_output_appcrue->send_api_message()
* line 509 of /lib/classes/message/manager.php: call to message_output_appcrue->send_message()
* line 388 of /lib/classes/message/manager.php: call to core\message\manager::call_processors()
* line 356 of /lib/classes/message/manager.php: call to core\message\manager::send_message_to_processors()
* line 346 of /lib/messagelib.php: call to core\message\manager::send_message()
* line 369 of /mod/forum/classes/task/send_user_notifications.php: call to message_send()
* line 153 of /mod/forum/classes/task/send_user_notifications.php: call to mod_forum\task\send_user_notifications->send_post()
* line 341 of /lib/cronlib.php: call to mod_forum\task\send_user_notifications->execute()
* line 198 of /lib/cronlib.php: call to cron_run_inner_adhoc_task()
* line 76 of /lib/cronlib.php: call to cron_run_adhoc_tasks()
* line 178 of /admin/cli/cron.php: call to cron_run()
So, it seems that we need to specify something into attribute target
. Yes or yes.
Could you please provide some patch for it. I do not know what to put there, however, according to the API.
Thanks for your time.
The plugin performs low-level access to forum
and forum_discussions
DB tables.
Even when mod_forum
is the standard plugin, it would be cleaner to declare explicit dependency on it in this case as per https://docs.moodle.org/dev/Communication_Between_Components#General_rules_for_inter-component_communications
See https://docs.moodle.org/dev/version.php for details
In our institution have found some problem with this plugin. It seems that the implementation of the push message is not fully suit.
Since November 3rd, 2022 (we have found detected this today), our Moodle instance tries to send message without success.
The problem shown in Moodle cron says something like:
Sending messages to NNNNNNNNNN (MMMMMM) ++ Push API Response:{"errors":{"type":"NotificationNotCreated","message":["Target can not be empty"]}} ++
* line 163 of /message/output/appcrue/message_output_appcrue.php: call to debugging()
* line 105 of /message/output/appcrue/message_output_appcrue.php: call to message_output_appcrue->send_api_message()
* line 509 of /lib/classes/message/manager.php: call to message_output_appcrue->send_message()
* line 388 of /lib/classes/message/manager.php: call to core\message\manager::call_processors()
* line 356 of /lib/classes/message/manager.php: call to core\message\manager::send_message_to_processors()
* line 346 of /lib/messagelib.php: call to core\message\manager::send_message()
* line 369 of /mod/forum/classes/task/send_user_notifications.php: call to message_send()
* line 153 of /mod/forum/classes/task/send_user_notifications.php: call to mod_forum\task\send_user_notifications->send_post()
* line 341 of /lib/cronlib.php: call to mod_forum\task\send_user_notifications->execute()
* line 198 of /lib/cronlib.php: call to cron_run_inner_adhoc_task()
* line 76 of /lib/cronlib.php: call to cron_run_adhoc_tasks()
* line 178 of /admin/cli/cron.php: call to cron_run()
And before sending message, the piece of code initializes an empty target stdClass.
Maybe have the protocol requisites changed?
Moodle plugins should not use low-level curl_exec()
calls. Instead, a new instance of the core curl
class should be used as it respects other settings such as proxy or security helpers.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.