Title: Fatal Error in Modula Basic Plugin
Last modified: May 17, 2024

---

# Fatal Error in Modula Basic Plugin

 *  Resolved [lambertvans](https://wordpress.org/support/users/lambertvans/)
 * (@lambertvans)
 * [2 years ago](https://wordpress.org/support/topic/fatal-error-in-modula-basic-plugin/)
 * I’m getting this error message when activating Modula Basic Plugin. I am running
   PHP 8.1 but Modula only supports up to 8.0. Could this perhaps be the issue?
 * Fatal error: Uncaught Error: Cannot use object of type WP_Error as array in /
   usr/www/users/embasmafmg/wp-content/plugins/modula-best-grid-gallery/includes/
   public/modula-helper-functions.php:57 Stack trace: #0 /usr/www/users/embasmafmg/
   wp-includes/class-wp-hook.php(326): modula_generate_image_links(Array, Array,
   Array) #1 /usr/www/users/embasmafmg/wp-includes/plugin.php(205): WP_Hook->apply_filters(
   Array, Array) #2 /usr/www/users/embasmafmg/wp-content/plugins/modula-best-grid-
   gallery/includes/public/templates/modula-gallery.php(97): apply_filters(‘modula_shortcod…’,
   Array, Array, Array, Array) #3 /usr/www/users/embasmafmg/wp-includes/template.
   php(812): require(‘/usr/www/users/…’) #4 /usr/www/users/embasmafmg/wp-content/
   plugins/modula-best-grid-gallery/includes/libraries/class-gamajo-template-loader.
   php(259): load_template(‘/usr/www/users/…’, false) #5 /usr/www/users/embasmafmg/
   wp-content/plugins/modula-best-grid-gallery/includes/libraries/class-gamajo-template-
   loader.php(119): Gamajo_Template_Loader->locate_template(Array, true, false) #
   6 /usr/www/users/embasmafmg/wp-content/plugins/modula-best-grid-gallery/includes/
   public/class-modula-shortcode.php(212): Gamajo_Template_Loader->get_template_part(‘
   modula’, ‘gallery’) #7 /usr/www/users/embasmafmg/wp-includes/shortcodes.php(433):
   Modula_Shortcode->gallery_shortcode_handler(Array, ”, ‘modula’) #8 [internal 
   function]: do_shortcode_tag(Array) #9 /usr/www/users/embasmafmg/wp-includes/shortcodes.
   php(273): preg_replace_callback(‘/\\[(\\[?)(modula…’, ‘do_shortcode_ta…’, ‘Anzac
   Day is ob…’) #10 /usr/www/users/embasmafmg/wp-content/themes/Extra/includes/builder/
   class-et-builder-element.php(3114): do_shortcode(‘Anzac Day is ob…’) #11 /usr/
   www/users/embasmafmg/wp-includes/shortcodes.php(433): ET_Builder_Element->_render(
   Array, ‘Anzac Day is ob…’, ‘et_pb_text’) #12 [internal function]: do_shortcode_tag(
   Array) #13 /usr/www/users/embasmafmg/wp-includes/shortcodes.php(273): preg_replace_callback(‘/\\[(\\[?)(
   modula…’, ‘do_shortcode_ta…’, ‘[et_pb_text adm…’) #14 /usr/www/users/embasmafmg/
   wp-content/themes/Extra/includes/builder/main-structure-elements.php(3784): do_shortcode(‘[
   et_pb_text adm…’) #15 /usr/www/users/embasmafmg/wp-content/themes/Extra/includes/
   builder/class-et-builder-element.php(3433): ET_Builder_Column->render(Array, ‘[
   et_pb_text adm…’, ‘et_pb_column’, ”, ”, ”, ”, ”) #16 /usr/www/users/embasmafmg/
   wp-includes/shortcodes.php(433): ET_Builder_Element->_render(Array, ‘[et_pb_text
   adm…’, ‘et_pb_column’) #17 [internal function]: do_shortcode_tag(Array) #18 /
   usr/www/users/embasmafmg/wp-includes/shortcodes.php(273): preg_replace_callback(‘/\\[(\\[?)(
   modula…’, ‘do_shortcode_ta…’, ‘\t\t\t\t[et_pb_colu…’) #19 /usr/www/users/embasmafmg/
   wp-content/themes/Extra/includes/builder/main-structure-elements.php(2274): do_shortcode(‘\
   t\t\t\t[et_pb_colu…’) #20 /usr/www/users/embasmafmg/wp-content/themes/Extra/includes/
   builder/class-et-builder-element.php(3433): ET_Builder_Row->render(Array, ‘\t\
   t\t\t[et_pb_colu…’, ‘et_pb_row’, ”, ”, ”, ”, ”) #21 /usr/www/users/embasmafmg/
   wp-includes/shortcodes.php(433): ET_Builder_Element->_render(Array, ‘\t\t\t\t[
   et_pb_colu…’, ‘et_pb_row’) #22 [internal function]: do_shortcode_tag(Array) #
   23 /usr/www/users/embasmafmg/wp-includes/shortcodes.php(273): preg_replace_callback(‘/\\[(\\[?)(
   modula…’, ‘do_shortcode_ta…’, ‘\t\t\t[et_pb_row a…’) #24 /usr/www/users/embasmafmg/
   wp-content/themes/Extra/includes/builder/main-structure-elements.php(1606): do_shortcode(‘\
   t\t\t[et_pb_row a…’) #25 /usr/www/users/embasmafmg/wp-content/themes/Extra/includes/
   builder/class-et-builder-element.php(3433): ET_Builder_Section->render(Array,‘\
   t\t\t[et_pb_row a…’, ‘et_pb_section’, ”, ”, ”, ”, ”) #26 /usr/www/users/embasmafmg/
   wp-includes/shortcodes.php(433): ET_Builder_Element->_render(Array, ‘\t\t\t[et_pb_row
   a…’, ‘et_pb_section’) #27 [internal function]: do_shortcode_tag(Array) #28 /usr/
   www/users/embasmafmg/wp-includes/shortcodes.php(273): preg_replace_callback(‘/\\[(\\[?)(
   modula…’, ‘do_shortcode_ta…’, ‘
 * apply_filters(‘
 * There has been a critical error on this website.
 * [Learn more about troubleshooting WordPress.](https://wordpress.org/documentation/article/faq-troubleshooting/)
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Ffatal-error-in-modula-basic-plugin%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 9 replies - 1 through 9 (of 9 total)

 *  [Razvan Aldea](https://wordpress.org/support/users/raldea89/)
 * (@raldea89)
 * [2 years ago](https://wordpress.org/support/topic/fatal-error-in-modula-basic-plugin/#post-17762265)
 * Hello [@lambertvans](https://wordpress.org/support/users/lambertvans/) ,
   Just
   tested with PHP 8.3 and had no problems. What it seems in the error you showed
   is that there is something coming from the theme also. Could you please let me
   know more precisely what theme you are using, so we can try and replicate your
   issue on our end?Warmly,Razvan
 *  Thread Starter [lambertvans](https://wordpress.org/support/users/lambertvans/)
 * (@lambertvans)
 * [2 years ago](https://wordpress.org/support/topic/fatal-error-in-modula-basic-plugin/#post-17763346)
 * Hi Razvan Thanks for the response
 * The theme I am using is called Extra – by Elegant Themes. Hope this helps.
 * Regards, Lambert
 *  Thread Starter [lambertvans](https://wordpress.org/support/users/lambertvans/)
 * (@lambertvans)
 * [2 years ago](https://wordpress.org/support/topic/fatal-error-in-modula-basic-plugin/#post-17769629)
 * Hello [@raldea89](https://wordpress.org/support/users/raldea89/)
 * I hope you are well? Just a quick follow up with regards to the error message
   I am getting. I have sent you the theme I am using. It is called Extra – by Elegant
   Themes. Please let me know if you need anything else from me. This is rather 
   an urgent matter that I need to resolve soonest.
 * Regards, Lambert
 *  [Razvan Aldea](https://wordpress.org/support/users/raldea89/)
 * (@raldea89)
 * [2 years ago](https://wordpress.org/support/topic/fatal-error-in-modula-basic-plugin/#post-17769791)
 * Hello Lambert,
   Could you please let me know where you’ve sent the theme? _Edit:
   I think I did not understand correctly, you’ve sent the name of the theme. My
   bad. _Warmly,Razvan
    -  This reply was modified 2 years ago by [Razvan Aldea](https://wordpress.org/support/users/raldea89/).
 *  [Razvan Aldea](https://wordpress.org/support/users/raldea89/)
 * (@raldea89)
 * [2 years ago](https://wordpress.org/support/topic/fatal-error-in-modula-basic-plugin/#post-17769897)
 * Could not recreate, seems to work fine with the theme. Could you please describe
   when the error is triggered? As soon as you activate the plugin? When you go 
   to the front-end where the gallery shortcode resides? When you edit the gallery?
   
   Have you had any modifications to the database or filesystem that could affect
   the images?Warmly,Razvan
 *  Thread Starter [lambertvans](https://wordpress.org/support/users/lambertvans/)
 * (@lambertvans)
 * [2 years ago](https://wordpress.org/support/topic/fatal-error-in-modula-basic-plugin/#post-17770156)
 * Hi Razvan.
 * Apologies I also miss-spoke, should have said rather that I have sent you the
   name of the theme we are using, my bad.
 * I get this error code previously mentioned, when the plugin is activated, and
   on the front end of the page with the gallery shortcode inserted.
 * I also seem to be getting another error code when accessing a gallery through
   the Modula Plugin at the top of the admin page:
 * Warning: Trying to access array offset on value of type bool in /usr/www/users/
   embasmafmg/wp-content/plugins/modula-best-grid-gallery/includes/class-modula.
   php on line 257 Warning: Trying to access array offset on value of type bool 
   in /usr/www/users/embasmafmg/wp-content/plugins/modula-best-grid-gallery/includes/
   class-modula.php on line 258 Warning: Trying to access array offset on value 
   of type bool in /usr/www/users/embasmafmg/wp-content/plugins/modula-best-grid-
   gallery/includes/class-modula.php on line 257 Warning: Trying to access array
   offset on value of type bool in /usr/www/users/embasmafmg/wp-content/plugins/
   modula-best-grid-gallery/includes/class-modula.php on line 258 Warning: Trying
   to access array offset on value of type bool in /usr/www/users/embasmafmg/wp-
   content/plugins/modula-best-grid-gallery/includes/class-modula.php on line 257
   Warning: Trying to access array offset on value of type bool in /usr/www/users/
   embasmafmg/wp-content/plugins/modula-best-grid-gallery/includes/class-modula.
   php on line 258 Warning: Trying to access array offset on value of type bool 
   in /usr/www/users/embasmafmg/wp-content/plugins/modula-best-grid-gallery/includes/
   class-modula.php on line 257 Warning: Trying to access array offset on value 
   of type bool in /usr/www/users/embasmafmg/wp-content/plugins/modula-best-grid-
   gallery/includes/class-modula.php on line 258 Warning: Trying to access array
   offset on value of type bool in /usr/www/users/embasmafmg/wp-content/plugins/
   modula-best-grid-gallery/includes/class-modula.php on line 257 Warning: Trying
   to access array offset on value of type bool in /usr/www/users/embasmafmg/wp-
   content/plugins/modula-best-grid-gallery/includes/class-modula.php on line 258
 * Not sure if these are related?
 *  Thread Starter [lambertvans](https://wordpress.org/support/users/lambertvans/)
 * (@lambertvans)
 * [2 years ago](https://wordpress.org/support/topic/fatal-error-in-modula-basic-plugin/#post-17770204)
 * Hi [@raldea89](https://wordpress.org/support/users/raldea89/) I think I may have
   found a solution to the one error, the user that loaded this particular gallery
   has also loaded videos into the same gallery, and the client only has the basic
   version, which does not have support for video like with the pro version. When
   I deleted the videos from the gallery the post displayed fine on the front end
   with all of the images and no error messages.
 *  [Razvan Aldea](https://wordpress.org/support/users/raldea89/)
 * (@raldea89)
 * [2 years ago](https://wordpress.org/support/topic/fatal-error-in-modula-basic-plugin/#post-17772683)
 * Hello [@lambertvans](https://wordpress.org/support/users/lambertvans/) ,
   Yes,
   that seems to be the issue. Weird case this one, managed to replicate the error
   you are receiving. I added a ticket on [Github](https://github.com/WPChill/modula-lite/issues/947)
   and we’ll address this in the next update. Thank you so much for the info.
 * 
   Warmly,Razvan
 *  [beatrice12](https://wordpress.org/support/users/beatrice12/)
 * (@beatrice12)
 * [2 years ago](https://wordpress.org/support/topic/fatal-error-in-modula-basic-plugin/#post-17782788)
 * This topic will be marked as resolved as we have an open ticket on GitHub regarding
   this. Please keep in mind that the ‘resolved’ status is only for this support
   thread, not the issue on GitHub.

Viewing 9 replies - 1 through 9 (of 9 total)

The topic ‘Fatal Error in Modula Basic Plugin’ is closed to new replies.

 * ![](https://ps.w.org/modula-best-grid-gallery/assets/icon-256x256.png?rev=3095828)
 * [Modula Image Gallery - Photo Grid & Video Gallery](https://wordpress.org/plugins/modula-best-grid-gallery/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/modula-best-grid-gallery/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/modula-best-grid-gallery/)
 * [Active Topics](https://wordpress.org/support/plugin/modula-best-grid-gallery/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/modula-best-grid-gallery/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/modula-best-grid-gallery/reviews/)

 * 13 replies
 * 3 participants
 * Last reply from: [beatrice12](https://wordpress.org/support/users/beatrice12/)
 * Last activity: [2 years ago](https://wordpress.org/support/topic/fatal-error-in-modula-basic-plugin/#post-17782788)
 * Status: resolved