Title: Fatal Error in Kit Library
Last modified: July 10, 2026

---

# Fatal Error in Kit Library

 *  [amiragh](https://wordpress.org/support/users/amiragh/)
 * (@amiragh)
 * [1 day, 3 hours ago](https://wordpress.org/support/topic/fatal-error-in-kit-library/)
 * Hi,
 * I’m experiencing a Fatal Error related to the Kit Library feature. This is being
   logged repeatedly in my error log:
 *     ```wp-block-code
       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](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Ffatal-error-in-kit-library%2F%3Foutput_format%3Dmd&locale=en_US)
to reply to this topic.

 * ![](https://ps.w.org/elementor/assets/icon-256x256.gif?rev=3444228)
 * [Elementor Website Builder - more than just a page builder](https://wordpress.org/plugins/elementor/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/elementor/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/elementor/)
 * [Active Topics](https://wordpress.org/support/plugin/elementor/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/elementor/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/elementor/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [amiragh](https://wordpress.org/support/users/amiragh/)
 * Last activity: [1 day, 3 hours ago](https://wordpress.org/support/topic/fatal-error-in-kit-library/)
 * Status: not resolved