• Hi!

    I updated the plugin a few days ago to 2.4.0 and I’m getting a fatal error in WordPress when I try to access Media Library. When I stop using folders, access to Media Library gets back.

    I debugged the error and this is what I got:

    Fatal error: Uncaught TypeError: implode(): Argument #2 ($array) must be of type ?array, bool given in /wp-content/plugins/responsive-lightbox/includes/class-folders.php:941 Stack trace: #0 /wp-content/plugins/responsive-lightbox/includes/class-folders.php(941): implode() #1 /wp-includes/class-wp-hook.php(307): Responsive_Lightbox_Folders->add_library_scripts() #2 /wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters() #3 /wp-includes/plugin.php(476): WP_Hook->do_action() #4 /wp-includes/media.php(4642): do_action() #5 /wp-admin/upload.php(25): wp_enqueue_media() #6 {main} thrown in /wp-content/plugins/responsive-lightbox/includes/class-folders.php on line 941

    Could you please help me fix it?

    Thank you!

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

Viewing 1 replies (of 1 total)
  • Thread Starter yellowtouch

    (@yellowtouch)

    I commented this condition at lines 940-941:

    if ( isset( $_wp_admin_css_colors[$current_color_scheme] ) )
    $color = implode( ',', $rl->hex2rgb( $_wp_admin_css_colors[$current_color_scheme]->colors[3] ) );

    And got the Media Library and the folders back. However that may not be the ideal solution.

    Please help. ??

Viewing 1 replies (of 1 total)
  • The topic ‘WordPress fatal error because of Media Folders’ is closed to new replies.