• Hi team,

    First of all thank you for this great plugin !

    I encountered a PHP Fatal Error when trying to edit an existing carousel in the WordPress admin panel. The edit page renders completely blank (only title and sidebar are shown) due to a type error in PHP 8.x.

    PHP Fatal Error Log:

    PHP Warning: Trying to access array offset on false in /wp-content/plugins/wp-carousel-free/admin/views/sp-framework/fields/gallery/gallery.php on line 52
    PHP Warning: Trying to access array offset on false in /wp-content/plugins/wp-carousel-free/admin/views/sp-framework/fields/gallery/gallery.php on line 53
    PHP Fatal error: Uncaught TypeError: array_key_exists(): Argument #2 ($array) must be of type array, false given in /wp-content/plugins/wp-carousel-free/admin/views/sp-framework/fields/gallery/gallery.php:66
    Stack trace:
    #0 /wp-content/plugins/wp-carousel-free/admin/views/sp-framework/fields/gallery/gallery.php(124): SP_WPCF_Field_gallery->getting_image_metadata()
    

    Cause: It seems wp_get_attachment_metadata() returns false (likely for an image/attachment that was deleted or missing from the Media Library), and getting_image_metadata() passes that false value directly into array_key_exists(). In PHP 8+, this throws a Fatal TypeError.

    Could you please patch this in the next release?

    Thanks!

Viewing 1 replies (of 1 total)
  • Plugin Support Pulak Ahmed

    (@pulak00)

    Hi @praetor09634,

    Thank you for reporting this issue and for providing such a detailed error log and explanation. We really appreciate the time you took to investigate and help us identify the cause.

    We’ve reviewed the issue and taken the necessary steps toward addressing it. The fix will be included in the next plugin update.

    Thank you again for helping us improve WP Carousel and for being part of our community!

    Best regards,

    Pulak Ahmed
    Support Engineer | ShapedPlugin

Viewing 1 replies (of 1 total)

You must be logged in to reply to this topic.