Grid Format

Course formats ::: format_grid
Maintained by Gareth J BarnardGareth J Barnard
A modular and visual course format. Hides all topics and creates a grid of icons (one for each topic) with short titles. Clicking on an icon brings up the content from the corresponding topic.
Latest release:
7439 sites
3k downloads
155 fans
Current versions available: 20

A modular and visual course format. Hides all topics and creates a grid of icons (one for each topic) with short titles. Clicking on an icon brings up the content from the corresponding topic in a "lightbox" style display.

Support:

The format comes with NO support.  Please see the 'Support' section in 'Readme.md' file that comes with the format.  This is because the format is complex and I regret that I don't have the time / resources to freely assist with questions pertaining to specific enhancements / changes / knowledge improvement.

I will investigate genuine bugs and issue fixes in a timescale set by myself.  When reporting issues you MUST clearly state the full version and release of both Moodle and the Grid format format as contained within their 'version.php' files - if not it takes me longer to figure out, often resulting in me asking for the details anyway and slowing the process of solving your problem down.  It really helps to upload and describe in detail the issue you are having on the 'Course formats' forum.

Screen cast:


More to follow as new icons have been added....

Privacy API support starts with V3.3.0.5 for M3.3 and V3.4.0.4 for M3.4 where the API has been implemented in the minor release of Moodle.

Screenshots

Screenshot #0
Screenshot #1
Screenshot #2
Screenshot #3

Contributors

Gareth J Barnard
Gareth J Barnard (Lead maintainer): Maintainer
Please login to view contributors details and/or to contact them

Comments RSS

Comments

  • Thu, May 30, 2019, 10:52 PM
    Dear Gareth,

    Hope you can help with our query.

    Moodle was upgraded in our site from 3.2 to 3.6 and therefore this plugin was also updated from the 3.2 version to 3.6.

    Since the upgrade and update, accessing some of the courses in Grid course format gives the below error message and therefore the grid cannot be viewed;
    'Cannot convert uploaded image to displayed image...'

    Removing the section images from the course in the database helps resolve the issue, albeit the images need to be re-uploaded. With hundreds of courses, this would take too long to resolve one by one.

    What would you suggest we do to resolve the issue for all courses?

    Many thanks,

    Fardin
  • Gareth J Barnard
    Thu, May 30, 2019, 11:22 PM
    Dear Fardin,

    I don't know why or how that it has happened. Can you tell me please:

    The exact error in the php log file.
    If for the given file in the files table with the given 'itemid' that there is or is not an 'image' entry of the same file name for the 'sectionid' in the 'format_grid_icon_table'.
    How did you perform the upgrade? Did you transpose the database? Use the same database? Uninstall and reinstall Grid? What 'exact' process did you follow?
    Did you perform a trial run of the upgrade on a test server first?

    Please make a post with replies on the 'Courses and course formats' forum: https://moodle.org/mod/forum/view.php?id=47.

    Depending on your answers might lead to a new custom script (which will take me some time to write) or another solution. But it all depends on the more information that you give me.

    I cannot tell you want to do for the best at the moment without the new information.

    Gareth
  • Gareth J Barnard
    Thu, May 30, 2019, 11:25 PM
    P.S. Is the GD PHP extension installed on the new M3.6 system?
  • Mon, Jun 3, 2019, 10:15 PM
    Hi Gareth,

    The php.log file does not show any error

    Putting the site on debugging mode displays the following errors on the course page:

    line 494 of /lib/setuplib.php: moodle_exception thrown
    line 2302 of /course/format/grid/lib.php: call to print_error()
    line 849 of /course/format/grid/renderer.php: call to format_grid->setup_displayed_image()
    line 392 of /course/format/grid/renderer.php: call to format_grid_renderer->make_block_icon_topics()
    line 257 of /course/format/grid/format.php: call to format_grid_renderer->print_multiple_section_page()
    line 280 of /course/view.php: call to require()

    We have only upgraded the test server and we haven't pushed it to live just yet until we have resolved all issues. We are using the same database. For the upgrade, Moodle was upgraded first and then the plugins updated individually. Nothing was uninstalled and then reinstalled.

    Many thanks

    Fardin


  • Gareth J Barnard
    Tue, Jun 4, 2019, 4:19 AM
    Dear Fardin,

    Thank you for the information, however I still require as requested originally:

    If for the given file in the files table with the given 'itemid' that there is or is not an 'image' entry of the same file name for the 'sectionid' in the 'format_grid_icon' table.

    Also when you did the upgrade first on Moodle, was the format installed at the time? If so, was this the old or new version? By 'same database' i.e. was the 'format_grid_icon' table always there.
    If you did not uninstall / reinstall the format then how did you update it? What instructions did you follow?

    And..... Please make a post with replies on the 'Courses and course formats' forum: https://moodle.org/mod/forum/view.php?id=47. - so not HERE!

    Kind regards,

    Gareth
  • Mon, Aug 12, 2019, 6:36 AM
    Hi Gareth,

    Firstly thank you for your wonderful work!
    I had a question about how Grid/Moodle handles the images for the Grids. Eg. I have a large 1920x1409 jpg image and I use it as a Grid image. Does the user download the full sized image each time they load the page or are they downloading a smaller resized jpg?

    Cheers,

    Phuong
  • Gareth J Barnard
    Mon, Aug 12, 2019, 8:29 PM
    Hi Phuong,

    The format takes the uploaded image and resizes it according to the settings.

    G
  • Thu, Mar 12, 2020, 12:52 PM
    moodle version 3.5 and gride version 3.5 have some error issue "editimage.php page is not loading ... can anyone please help me. thanks in advance.
  • Gareth J Barnard
    Sat, Mar 14, 2020, 9:04 PM
    Dear Sabbir,

    Sorry, not enough information to tell as I don't know what the error is.

    G
  • Sun, Jun 7, 2020, 8:12 PM
    hey everyone,

    I wanna know that can we start activity directly by click on course grid without going to another quiz pages. I want to create a button in course grid card and show here a attempt button, if course is already done by user than review button. Is it possible ??
  • Gareth J Barnard
    Sun, Jun 7, 2020, 8:30 PM
    Dear Petter,

    The format comes with no support. Please post on https://moodle.org/mod/forum/view.php?id=47.

    Gareth
  • Gareth J Barnard
    Thu, May 13, 2021, 1:46 AM
    Dear Ricardo,

    No idea. Anything in the PHP log?

    G
  • Mon, May 17, 2021, 11:45 AM
    The most recent update fails to install on Moodle 3.9.7 (even if it is a completely new install).
    The following error displays:

    (directories changed for privacy)

    PHP Warning: copy(/moodledata/filedir/1a/d5/1ad58f0cb4c1331f0b4b985bd23a6c9a7b22c028): failed to open stream: No such file or directory in /moodle/lib/filestorage/file_system_filedir.php on line 234
    PHP Warning: getimagesize(/moodledata/temp/gridformatdisplayedimagecontainer/1ad58f0cb4c1331f0b4b985bd23a6c9a7b22c028): failed to open stream: No such file or directory in /moodle/course/format/grid/lib.php on line 2762
    Database transaction aborted automatically in /moodle/admin/cli/upgrade.php
    Default exception handler: Image information is empty - itemid > 64568, filename > goi_Welcome 2.png, sectionimage_sectionid > 64568, sectionimage_image > goi_Welcome 2.png, sectionimage_newimage > goi_Welcome 2.png and sectionimage_displayedimageindex > 1. Please report error details and the information contained in the php.log file to developer. Debug: generate_image
    Error code: noimageinformation

    line 498 of /lib/setuplib.php: moodle_exception thrown

    line 2765 of /course/format/grid/lib.php: call to print_error()

    line 2502 of /course/format/grid/lib.php: call to format_grid::generate_image()

    line 2731 of /course/format/grid/lib.php: call to format_grid->setup_displayed_image()

    line 2963 of /course/format/grid/lib.php: call to format_grid->update_displayed_images()

    line 149 of /course/format/grid/db/upgrade.php: call to format_grid::update_displayed_images_callback()

    line 692 of /lib/upgradelib.php: call to xmldb_format_grid_upgrade()

    line 1917 of /lib/upgradelib.php: call to upgrade_plugins()

    line 193 of /admin/cli/upgrade.php: call to upgrade_noncore()

    !!! Image information is empty - itemid > 64568, filename > goi_Welcome 2.png, sectionimage_sectionid > 64568, sectionimage_image > goi_Welcome 2.png, sectionimage_newimage > goi_Welcome 2.png and sectionimage_displayedimageindex > 1. Please report error details and the information contained in the php.log file to developer. !!!
    !! generate_image
    Error code: noimageinformation !!
    !! Stack trace: * line 498 of /lib/setuplib.php: moodle_exception throw

  • Ricardo Caiado
    Mon, May 17, 2021, 11:55 AM
    Brad,

    Are you installing Grid Format version 3.10.1.1 (2020111402)?

    Ricardo
  • Gareth J Barnard
    Tue, May 18, 2021, 7:17 AM
    Dear Brad,

    After an hour of re-testing, I cannot replicate. I suspect you have an iffy 0 byte image on that course that has broken in the Moodle data folder. Use the section id in the error to look in the 'course_sections' table in the DB, to find the real course and section etc. Also then you can use the same sectionid as the 'itemid' in the files table to track down the file on disk.

    G
Please login to post comments