• Resolved wk1985

    (@wk1985)


    I use your plugin on a website which ran on PHP 7.2 for a long time.
    Today I upgraded to PHP 8.0. I have installed the latest version of your plugin: 1.8.21
    Unfortunately, your plugin causes a fatal error, as can be seen in the following error message:

    [15-Feb-2024 07:56:55 UTC] PHP Fatal error: Uncaught TypeError: Unsupported operand types: string + string in /www/htdocs/w01ddb53/example.de/photography/wp-content/plugins/photo-gallery/frontend/views/BWGViewThumbnails_masonry.php:305
    Stack trace: 0 /www/htdocs/w01ddb53/example.de/photography/wp-content/plugins/photo-gallery/frontend/views/BWGViewThumbnails_masonry.php(8): BWGViewThumbnails_masonry->inline_styles(0, Object(WD_BWG_Theme), Array) 1 /www/htdocs/w01ddb53/example.de/photography/wp-content/plugins/photo-gallery/frontend/controllers/controller.php(401): BWGViewThumbnails_masonry->display(Array, 0, false) 2 /www/htdocs/w01ddb53/example.de/photography/wp-content/plugins/photo-gallery/frontend/controllers/controller.php(396): BWGControllerSite->display(Array, 1, 0) 3 /www/htdocs/w01ddb53/example.de/photography/wp-content/plugins/photo-gallery/photo-gallery.php(811): BWGControllerSite->execute(Array, 1, 0) 4 /www/htdocs/w01ddb53/example.de/photography/wp-content/plugins/photo-gallery/photo-gallery.php(791): BWG->front_end(Array) 5 /www/htdocs/w01ddb53/example.de/photography/wp-includes/shortcodes.php(433): BWG->shortcode(Array, ”, ‘Best_Wordpress_…’) 6 [internal function]: do_shortcode_tag(Array) 7 /www/htdocs/w01ddb53/example.de/photography/wp-includes/shortcodes.php(273): preg_replace_callback(‘/[([?)(Best_W…’, ‘do_shortcode_ta…’, ‘[Best_Wordpress…’) 8 /www/htdocs/w01ddb53/example.de/photography/wp-content/plugins/js_composer/include/helpers/helpers.php(265): do_shortcode(‘[Best_Wordpress…’) 9 /www/htdocs/w01ddb53/example.de/photography/wp-content/plugins/js_composer/include/templates/shortcodes/vc_column_text.php(31): wpb_js_remove_wpautop(‘

    [Best_Wordpr…’, true) 10 /www/htdocs/w01ddb53/example.de/photography/wp-content/plugins/js_composer/include/classes/shortcodes/core/class-wpbakeryshortcode.php(457): require(‘/www/htdocs/w01…’) 11 /www/htdocs/w01ddb53/example.de/photography/wp-content/plugins/js_composer/include/classes/shortcodes/core/class-wpbakeryshortcode.php(430): WPBakeryShortCode->loadTemplate(Array, ‘[Best_Wordpress…’) 12 /www/htdocs/w01ddb53/example.de/photography/wp-content/plugins/js_composer/include/classes/shortcodes/core/class-wpbakeryshortcode.php(552): WPBakeryShortCode->content(Array, ‘[Best_Wordpress…’) 13 /www/htdocs/w01ddb53/example.de/photography/wp-content/plugins/js_composer/include/helpers/helpers.php(1318): WPBakeryShortCode->output(”, ‘[Best_Wordpress…’) 14 /www/htdocs/w01ddb53/example.de/photography/wp-includes/shortcodes.php(433): vc_do_shortcode(”, ‘[Best_Wordpress…’, ‘vc_column_text’) 15 [internal function]: do_shortcode_tag(Array) 16 /www/htdocs/w01ddb53/example.de/photography/wp-includes/shortcodes.php(273): preg_replace_callback(‘/[([?)(Best_W…’, ‘do_shortcode_ta…’, ‘[vc_column_text…’) 17 /www/htdocs/w01ddb53/example.de/photography/wp-content/plugins/js_composer/include/helpers/helpers.php(265): do_shortcode(‘[vc_column_text…’) 18 /www/htdocs/w01ddb53/example.de/photography/wp-content/plugins/js_composer/include/templates/shortcodes/vc_column.php(94): wpb_js_remove_wpautop(‘[vc_column_text…’) 19 /www/htdocs/w01ddb53/example.de/photography/wp-content/plugins/js_composer/include/classes/shortcodes/core/class-wpbakeryshortcode.php(457): require(‘/www/htdocs/w01…’) 20 /www/htdocs/w01ddb53/example.de/photography/wp-content/plugins/js_composer/include/classes/shortcodes/core/class-wpbakeryshortcode.php(430): WPBakeryShortCode->loadTemplate(Array, ‘[vc_column_text…’) 21 /www/htdocs/w01ddb53/example.de/photography/wp-content/plugins/js_composer/include/classes/shortcodes/core/class-wpbakeryshortcode.php(552): WPBakeryShortCode->content(Array, ‘[vc_column_text…’) 22 /www/htdocs/w01ddb53/example.de/photography/wp-content/plugins/js_composer/include/helpers/helpers.php(1318): WPBakeryShortCode->output(”, ‘[vc_column_text…’) 23 /www/htdocs/w01ddb53/example.de/photography/wp-includes/shortcodes.php(433): vc_do_shortcode(”, ‘[vc_column_text…’, ‘vc_column’) 24 [internal function]: do_shortcode_tag(Array) 25 /www/htdocs/w01ddb53/example.de/photography/wp-includes/shortcodes.php(273): preg_replace_callback(‘/[([?)(Best_W…’, ‘do_shortcode_ta…’, ‘[vc_column][vc_…’) 26 /www/htdocs/w01ddb53/example.de/photography/wp-content/plugins/js_composer/include/helpers/helpers.php(265): do_shortcode(‘[vc_column][vc_…’) 27 /www/htdocs/w01ddb53/example.de/photography/wp-content/themes/kamera/vc-templates/vc_row.php(244): wpb_js_remove_wpautop(‘[vc_column][vc_…’) 28 /www/htdocs/w01ddb53/example.de/photography/wp-content/plugins/js_composer/include/classes/shortcodes/core/class-wpbakeryshortcode.php(457): require(‘/www/htdocs/w01…’) 29 /www/htdocs/w01ddb53/example.de/photography/wp-content/plugins/js_composer/include/classes/shortcodes/vc-row.php(40): WPBakeryShortCode->loadTemplate(Array, ‘[vc_column][vc_…’) 30 /www/htdocs/w01ddb53/example.de/photography/wp-content/plugins/js_composer/include/classes/shortcodes/core/class-wpbakeryshortcode.php(552): WPBakeryShortCode_Vc_Row->content(Array, ‘[vc_column][vc_…’) 31 /www/htdocs/w01ddb53/example.de/photography/wp-content/plugins/js_composer/include/helpers/helpers.php(1318): WPBakeryShortCode->output(Array, ‘[vc_column][vc_…’) 32 /www/htdocs/w01ddb53/example.de/photography/wp-includes/shortcodes.php(433): vc_do_shortcode(Array, ‘[vc_column][vc_…’, ‘vc_row’) 33 [internal function]: do_shortcode_tag(Array) 34 /www/htdocs/w01ddb53/example.de/photography/wp-includes/shortcodes.php(273): preg_replace_callback(‘/[([?)(Best_W…’, ‘do_shortcode_ta…’, ‘

    [vc_row use_…’) 35 /www/htdocs/w01ddb53/example.de/photography/wp-includes/class-wp-hook.php(324): do_shortcode(‘

    [vc_row use_…’) 36 /www/htdocs/w01ddb53/example.de/photography/wp-includes/plugin.php(205): WP_Hook->apply_filters(‘

    [vc_row use_…’, Array) 37 /www/htdocs/w01ddb53/example.de/photography/wp-includes/post-template.php(256): apply_filters(‘the_content’, ‘[vc_row use_row…’) 38 /www/htdocs/w01ddb53/example.de/photography/wp-content/themes/kamera/full-width.php(21): the_content() 39 /www/htdocs/w01ddb53/example.de/photography/wp-includes/template-loader.php(106): include(‘/www/htdocs/w01…’) 40 /www/htdocs/w01ddb53/example.de/photography/wp-blog-header.php(19): require_once(‘/www/htdocs/w01…’) 41 /www/htdocs/w01ddb53/example.de/index.php(17): require(‘/www/htdocs/w01…’) 42 {main} thrown in /www/htdocs/w01ddb53/example.de/photography/wp-content/plugins/photo-gallery/frontend/views/BWGViewThumbnails_masonry.php on line 305

    Could you please provide a plugin version with a fix?

Viewing 1 replies (of 1 total)
  • Plugin Support Kima Baghdasaryan

    (@kimabaghdasaryan)

    Hi,

    Thank you for bringing the issue to my attention. Upon investigating, our development team has been unable to reproduce the error on PHP 8. While they are uncertain about the cause of the error, they have taken proactive steps by initiating a task to implement changes to avoid such an error.

    Thanks!

    Have a nice day!

Viewing 1 replies (of 1 total)
  • The topic ‘Fatal error with PHP 8.0’ is closed to new replies.