Cannot load page

Created on 23 January 2021, almost 4 years ago
Updated 19 March 2023, over 1 year ago

Problem/Motivation

After successfully installing with drush si, when loading a page for the very first time, I get:

Fatal error: Maximum execution time of 240 seconds exceeded in web/modules/contrib/h5p/vendor/h5p/h5p-core/h5p.classes.php on line 909

Note that I've raised the PHP limit from 30 to 240 seconds I'm getting the same error.

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Active

Version

3.0

Component

Code

Created by

🇷🇴Romania claudiu.cristea Arad 🇷🇴

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • 🇷🇴Romania claudiu.cristea Arad 🇷🇴

    First, it feels weird that this heavy process (opigno_module_page_top()) happens on all pages.

  • 🇷🇴Romania claudiu.cristea Arad 🇷🇴

    As the problem is located in opigno_module, let's move this issue there

  • 🇷🇴Romania claudiu.cristea Arad 🇷🇴

    Fixing version

  • 🇷🇴Romania claudiu.cristea Arad 🇷🇴

    Some statistics: In 500 seconds (set as time limit) it fetched only 1,710 files out of 2,683 from the ZIP archive. Anyway, having a 500 sec time limit is dangerous and was only set for this testing purpose. This process is extremely time consuming.

    As, web/modules/contrib/opigno_module/h5plib/libraries.h5p is part of the module's codebase, I wonder why this attempt to parse the assets on each page? I think it would be enough to do it:

    • On module install
    • When libraries.h5p changes, but then the module can provide an post-update script

    Both can benefit from a service to fetch the files from ZIP.

    Also, I have a curiosity: Why the the same ZIP file is also stored in the profile? Yes, web/profiles/contrib/opigno_lms/h5plib/libraries.h5p, I'm looking at you.

    I would love to get some feedback from the maintainers.

  • 🇫🇷France flocondetoile Lyon

    Looks like this issue is fixed in 3.0.9 ? I install a new project based on 3.0.9 without issues.

Production build 0.71.5 2024