Cachedassets in front and svg icons in backend problems

Hi,

I need your help on this subject,

After fresh setup of the H5P Plugin, on Moodle V3.51, from edition mode of a course, and adding new activity "H5P" and shoosing "Course Presentation", a Slides Bloc appears with buttons on top an button, without icons ( screenshot : moodle-h5p-admin-course-presentation-creation.PNG). with chrome debugger logs : pluginfile.php/1/mod_hvp/libraries/H5P.CoursePresentation-1.19/icon.svg 404 ( 22 erros).( screenshot : moodle-h5p-admin-course-presentation-creation.PNG). 

I saved the course activity, to display a course, result, white bloc on a course (nothing displayed), i taked screen shot with chrome debugger logs : (moodle-h5p-frontend-problem.PNG) some logs :

  • /mod_hvp/cachedassets/4a74f5ccab22798a78cb13635f146e5dbe65e394.css 404 ()
  • /pluginfile.php/1/mod_hvp/cachedassets/4a74f5ccab22798a78cb13635f146e5dbe65e394.js 404 ()
  • /pluginfile.php/1/mod_hvp/cachedassets/4a74f5ccab22798a78cb13635f146e5dbe65e394.js 404 ()
  • Unable to find constructor for: H5P.CoursePresentation 1.19
  • Uncaught TypeError: Cannot read property 'getCopyrights' of undefined

Ready to provide any other information

thank you in advance.

Summary: 
Cachedassets in front and svg icons in backend problems
icc's picture

Try to add the following line to your config.php file and see if that helps solve the issue:

$CFG->mod_hvp_aggregate_assets = '0';

tested, unfortunately no change

icc's picture

Are you still missing the same files? 

The problem you're seeing can be traced back to one of two things:

1. The files are in Moodle but your web server is refusing to send it to the client. This could be due to an extra security setting in Apache or an extra plugin you've installed.

2. The files weren't inserted correctly into Moodle, in which case you should have seen an error message when installing the content type.

Are you familiar with database tools? In which case you can go into the files table and check if the missing files(404) are there, in which case you know it's 1.

If the files are in fact missing (2.) you should try to re-install them manually. You can do this by temporarily adding the following to your config.php:

$CFG->mod_hvp_dev = true;

And then you go and download the example content from here, and then you upload that file to your local /mod/hvp/library_list.php page. This should re-install most of your content type. Watch out for any error message in your web server's error_log while doing so.

Hi,

yes still missing the same files.

missed 404 console Files exists in "files" DB table (example: evg icons: screenshot attached).

So, here a logerror (Roshnilite" is a used template) :

2018/09/20 09:23:20 [error] 980#980: *20197 FastCGI sent in stderr: "PHP message: PHP Notice:  Undefined property: stdClass::$masonrysubheading in /var/www/sites//theme/roshnilite/layout/home/categories.php on line 84

PHP message: PHP Notice:  Undefined property: stdClass::$masonryurl4 in /var/www/sites/moodle/theme/roshnilite/layout/home/categories.php on line 148" while reading response header from upstream, client: 10.12.1.1, server: moodle, request: "GET / HTTP/1.0", upstream: "fastcgi://unix:/var/run/php-fpm/php-fpm.sock:", host: "moodle.myopenbee.com"

2018/09/20 09:23:36 [error] 981#981: *20223 FastCGI sent in stderr: "PHP message: PHP Notice:  Undefined property: stdClass::$masonrysubheading in /var/www/sites/moodle/theme/roshnilite/layout/home/categories.php on line 84

PHP message: PHP Notice:  Undefined property: stdClass::$masonryurl4 in /var/www/sites/moodle/theme/roshnilite/layout/home/categories.php on line 148" while reading response header from upstream, client: 10.12.1.1, server: moodle.myopenbee.com, request: "GET / HTTP/1.0", upstream: "fastcgi://unix:/var/run/php-fpm/php-fpm.sock:"

icc's picture

Ok, then I think the issue is with the web server configuration/setup not serving those files.

Hi,

nginx replaced by Apache, problem resolved,

thank you very much

BV52's picture

Hi elyes.zitari,

I'm glad it is working now. If you have additional questions feel free to post in the forums.

-BV52