You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I run the script inside a moodle 4.5.5+ (Build: 20250718) site
I get the following for every shortname of the plugin:
Shortname of plugin:local_qtracker
PHP Warning: file_get_contents(https://download.moodle.org/api/1.3/pluglist.php): Failed to open stream: HTTP request failed! HTTP/1.1 403 Forbidden
in /usr/local/bin/moosh50/Moosh/Command/Generic/Plugin/PluginList.php on line 38
Invalid JSON file, deleted /root/.moosh/plugins.json. Run command again.
for every shortname of the plugin
line 38 of the file listed
file_get_contents(self::$APIURL, false, PluginDownload::createProxyContext($this->expandedOptions))
This reported in the error:
Invalid JSON file, deleted /root/.moosh/plugins.json
there is no plugins.json file at that location.
If I go to the plugins site via browser, find a plugin, am able to copy
the URL behind the button to download, go to the terminal on the server
and use:
wget URLto.zip file without problems.
Transfers the .zip file to location where I issued the wget command.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Have a moosh script to check addon plugins.
moosh version 1.31
PHP 8.2.29 (cli)
php -i |grep json
json
json support => enabled
The script which is executable by root user only:
while read i
do
echo 'Shortname of plugin:'$i;
moosh -n plugin-list |grep $i
done < ./dlist.txt
dlist.txt
is a listing of the shortname of the plugins
and is:
mod_game
mod_hsuforum
mod_hvp
mod_journal
mod_kanban
mod_mootyper
mod_quizgame
block_cohortspecifichtml
block_completion_progress
block_configurable_reports
block_course_contacts
block_dedication
block_edwiser_grader
block_filtered_course_list
block_glossary_export_to_quiz
block_grade_me
block_grades_sorter
block_mystudents
block_qtracker
block_studentstracker
block_tasklist
qtype_combined
qtype_essayautograde
qtype_geogebra
qtype_recordrtc
qtype_wordselect
qbehaviour_selfassess
tiny_htmlblock
tool_cmcompetency
format_buttons
format_tiles
report_cmcompetency
report_customsql
report_modulecompletion
theme_moove
local_adminer
local_custom_service
local_deleteoldquizattempts
local_mail
local_purgequestioncategory
local_qtracker
When I run the script inside a moodle 4.5.5+ (Build: 20250718) site
I get the following for every shortname of the plugin:
Shortname of plugin:local_qtracker
PHP Warning: file_get_contents(https://download.moodle.org/api/1.3/pluglist.php): Failed to open stream: HTTP request failed! HTTP/1.1 403 Forbidden
in /usr/local/bin/moosh50/Moosh/Command/Generic/Plugin/PluginList.php on line 38
Invalid JSON file, deleted /root/.moosh/plugins.json. Run command again.
for every shortname of the plugin
line 38 of the file listed
file_get_contents(self::$APIURL, false, PluginDownload::createProxyContext($this->expandedOptions))
If I use:
https://download.moodle.org/api/1.3/pluglist.php
in a browser, I briefly see the contents of a json file ... looks like list all the plugins.
Then screen changes to one that has:
timestamp 1753836300
plugins (2441)[ {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, … ]
Nothing clickable above.
This reported in the error:
Invalid JSON file, deleted /root/.moosh/plugins.json
there is no plugins.json file at that location.
If I go to the plugins site via browser, find a plugin, am able to copy
the URL behind the button to download, go to the terminal on the server
and use:
wget URLto.zip file without problems.
Transfers the .zip file to location where I issued the wget command.
So what's broken with moosh?
Beta Was this translation helpful? Give feedback.
All reactions