Error with Moodle 3.1.17
Submitted by theomh on Wed, 03/20/2019 - 15:46
Dear H5P Developer,
I installed H5P with Moodle 3.5.x and it works without any issues.
But if I try to install H5P with Moodle 3.1.17 I get this error message right after installing it via GIT repo:
"Fatal error: Class mod_hvp\file_storage contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (H5PFileStorage::saveFileFromZip) in /var/www/html/moodle/mod/hvp/classes/file_storage.php on line 40"
I tried everything, but without luck. I use the stable branch (version 1.17.2)
Thanks for any help
Best regards
Andreas
tpan
Thu, 03/28/2019 - 16:44
Permalink
Moodle H5PFileStorage error
Hello Andreas,
Did you find a solution to your problem:
I have Moodle 3.5.4+ (Build: 20190222) version and when I try to reinstall H5P after removing the older version, I get the same error:
Fatal error: Class mod_hvp\file_storage contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (H5PFileStorage::saveFileFromZip) in /var/www/html/moodle/mod/hvp/classes/file_storage.php on line 40
Best regards,
tpan
theomh
Fri, 03/29/2019 - 07:38
Permalink
Hi Tpan,sorry no solution yet
Hi Tpan,
sorry no solution yet. Still waiting for a hint from the developer :-)
Best regards
Andreas
theomh
Fri, 03/29/2019 - 07:39
Permalink
Hi Tpan,sorry, no solution
Hi Tpan,
sorry, no solution yet. I'm waitnign for a hint from the developer :-)
Best regards
Andreas
tpan
Fri, 03/29/2019 - 14:38
Permalink
I`ve solved my problem
After searching on google, I realized the issue on GitHub "Master is actually Dev?? "
and reinstalled the plugin with stable branch instead of master, and the problem is solved.
Did you also use stable while installing the plugin?
Regards,
tpan
theomh
Mon, 04/01/2019 - 08:10
Permalink
Luuk you :-)
Dear tpan,
thanks for your advice, but for me not :-) I used the stable branch (version 1.17.2) and after installing I get a white screen. with Moodle 3.1.17. Sadly no one else responses to my question, so H5P isn't available for me right now :-(
theomh
Mon, 04/01/2019 - 13:40
Permalink
I digged deeper...
Hi tpan,
...and was on another server successful with installing the libraries and get H5P running on Moodle 3.1.x.
On the production server I test every pernission combination, because in another thread I saw that such problems avoid loading content types.
If I use the chrome browser console, I get this error and have again no idea how to fix it:
"wwwroot/moodle/mod/hvp/ajax.php?contextId=10708&token=0f775dd62fc46&action=content-type-cache 403 (Forbidden)
Do you had such an error before also?
Thanks
Andreas
tpan
Mon, 04/01/2019 - 17:46
Permalink
Hello Andreas,No, I did not
Hello Andreas,
No, I did not have such an error before. It is weird to have it working in one of the servers and not working in another.
Good luck with search for a solution,
Regards,
Tpan
BV52
Tue, 04/02/2019 - 04:19
Permalink
Hi Andreas,The error message
Hi Andreas,
The error message you are getting is usually caused by permission settings or the .htaccess is misconfigured or corrupted. You mentioned that you already made a few changes in the permission so .htaccess could be culprit. I hope this helps.
-BV52
theomh
Thu, 04/11/2019 - 10:00
Permalink
Hi BV52,I tested again on a
Hi BV52,
I tested again on a clean test installation of Moodle 3.5.5+ and H5P on a RedHat 7 Server with PHP 7.0. The web server admin didn't find any issues with the installation nor the .htaccess file.
But in Chrome network console I found this link, whicht gives a 403 error:
https://WEBROOT/moodle/mod/hvp/ajax.php?contextId=21&token=8d909b65c76c4...
The console messsage ist: Success false: You're haven't the permission to watch content-types."
The Moode debug code is:
Hope this helps and thanks for your support
Andreas
icc
Mon, 04/15/2019 - 09:48
Permalink
Very strange, I've never seen
Very strange, I've never seen this before. If you look inside mod/hvp/db/access.php you should see that the mod/hvp:savecontentuserdata is defined on line 102.
I recommend that you uninstall the plugin and then reinstall using the zip file provided here: https://moodle.org/plugins/mod_hvp
theomh
Tue, 04/16/2019 - 05:52
Permalink
Thanks for helping :-) That
Thanks for helping :-) That did the trick. Maybe somethings wrong with the GIT repo?