• Resolved lambertvans

    (@lambertvans)


    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.

    The page I need help with: [log in to see the link]

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author Razvan Aldea

    (@raldea89)

    Hello @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

    (@lambertvans)

    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

    (@lambertvans)

    Hello @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

    Plugin Author Razvan Aldea

    (@raldea89)

    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 6 months, 1 week ago by Razvan Aldea.
    Plugin Author Razvan Aldea

    (@raldea89)

    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

    (@lambertvans)

    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

    (@lambertvans)

    Hi @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.

    Plugin Author Razvan Aldea

    (@raldea89)

    Hello @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 and we’ll address this in the next update.

    Thank you so much for the info.


    Warmly,
    Razvan

    Plugin Support beatrice12

    (@beatrice12)

    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.