• amiragh

    (@amiragh)


    Hi,

    I’m experiencing a Fatal Error related to the Kit Library feature. This is being logged repeatedly in my error log:

    PHP Fatal error: Uncaught TypeError: Elementor\Core\Utils\Collection::__construct(): Argument #1 ($items) must be of type array, stdClass given, called in /wp-content/plugins/elementor/app/modules/kit-library/data/repository.php on line 221 and defined in /wp-content/plugins/elementor/core/utils/collection.php:33
    

    The stack trace shows it’s triggered via the REST API endpoint /elementor/v1/kits (Kit Library feature), when get_kits_data() calls Collection->__construct() with a stdClass object instead of an array.

    Site details:

    • Elementor version: 4.1.4
    • WordPress with Woodmart theme
    • PHP 8.3

    Context: This error is appearing around the same time I’m experiencing intermittent 500 Internal Server Errors on the front page for guest (logged-out) visitors, specifically right after purging LiteSpeed Cache. I’m not certain the two issues are directly connected, but they’re occurring in the same timeframe and I wanted to flag both.

    Could you help me understand:

    1. Is this a known issue with the Kit Library API response format in 4.1.x?
    2. Is there a way to disable the Kit Library feature entirely to prevent this call from running?
    3. Could this REST API call be contributing to server load/timeouts on the front end?

    Thanks in advance for your help.

You must be logged in to reply to this topic.