September 20, 2023 at 1:48 am
Aloha,
I updated Kadence Blocks on my site to 3.1.16, and got a critical error after clicking to go back to the plugin page. I had to enter Recovery Mode to get the backend to work. The frontend still displays correctly to site visitors, but I can only use the backend in Recovery Mode. I get the following error under the plugin:
—–
This plugin failed to load properly and is paused during recovery mode.
An error of type E_ERROR was caused in line 100 of the file /home/~/public_html/wp-content/plugins/kadence-blocks/includes/class-kadence-blocks-image-picker.php. Error message: Uncaught TypeError: array_merge(): Argument #2 must be of type array, null given in /home/~/public_html/wp-content/plugins/kadence-blocks/includes/class-kadence-blocks-image-picker.php:100 Stack trace: #0 /home/~/public_html/wp-content/plugins/kadence-blocks/includes/class-kadence-blocks-image-picker.php(100): array_merge() #1 /home/~/public_html/wp-content/plugins/kadence-blocks/includes/class-kadence-blocks-image-picker.php(84): Kadence_Blocks_Image_Picker->get_image_sizes() #2 /home/~/public_html/wp-includes/class-wp-hook.php(310): Kadence_Blocks_Image_Picker->enqueue_media() #3 /home/~/public_html/wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters() #4 /home/~/public_html/wp-includes/plugin.php(517): WP_Hook->do_action() #5 /home/~/public_html/wp-includes/media.php(4913): do_action() #6 /home/~/public_html/wp-content/themes/blocksy/admin/init.php(48): wp_enqueue_media() #7 /home/~/public_html/wp-includes/class-wp-hook.php(310): {closure}() #8 /home/~/public_html/wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters() #9 /home/~/public_html/wp-includes/plugin.php(517): WP_Hook->do_action() #10 /home/~/public_html/wp-admin/admin-header.php(118): do_action() #11 /home/~/public_html/wp-admin/plugins.php(605): require_once(‘/home/~/…’) #12 {main} thrown
—–
The error remains even if I delete the plugin and reinstall it. I’m not sure what happened and would appreciate any help with this. My other site on the same server was able to update the plugin just fine. Thank you for your time and efforts on this.
~Pedro