elementor / elementor/elementor
PHP Fatal Error: Call to function get_gallery_image_ids() on bool in Elementor AI (module.php)
- Dominant language
- PHP
- Stars
- 7.1k
- Forks
- 1.6k
- Avg merge
- 1d 5h
- Merged PRs (30d)
- 193
Description
### Description
similar to GitHub Issue #32241 or #32535.
PHP Fatal error: Uncaught Error: Call to a member function get_gallery_image_ids() on bool in /srv/htdocs/wp-content/plugins/elementor/modules/ai/module.php:351 Stack trace: #0 /wordpress/core/6.9/wp-includes/class-wp-hook.php(341): Elementor\Modules\Ai\Module->get_product_images_ajax('') #1 /wordpress/core/6.9/wp-includes/class-wp-hook.php(365): WP_Hook->apply_filters('', Array) #2 /wordpress/core/6.9/wp-includes/plugin.php(522): WP_Hook->do_action(Array) #3 /wordpress/core/6.9/wp-admin/admin-ajax.php(192): do_action('wp_ajax_element...') #4 {main} thrown in /srv/htdocs/wp-content/plugins/elementor/modules/ai/module.php on line 351
### Steps to reproduce
I dont see this directly on the site, I see it in the error logs, it is consistent but I dont know the specific steps to reproduce.
elementor version Version 3.33.3
elementor pro version 3.33.2
### Expected behavior
Eliminate the fatal error
### Elementor System Info
```txt
== Server Environment ==
Operating System: Linux
Software: nginx
MySQL version: MariaDB Server v11.4.9-MariaDB-log
PHP Version: 8.2.29
PHP Memory Limit: 512M
PHP Max Input Vars: 6144
PHP Max Post Size: 2047M
GD Installed: Yes
ZIP Installed: Yes
Write Permissions: All right
Elementor Library: Connected
== WordPress Environment ==
Version: 6.9
Site URL: https://sofiestdesigns.com
Home URL: https://sofiestdesigns.com
WP Multisite: No
Max Upload Size: 2 GB
Memory limit: 512M
Max Memory limit: 512M
Permalink Structure: /%postname%/
Language: en_US
Timezone: America/Los_Angeles
Admin Email: ops@vitaldigital.us
Debug Mode: Inactive
== Theme ==
Name: Storefront
Version: 4.6.1
Author: Automattic
Child Theme: No
== User ==
Role: administrator
WP Profile lang: en-US
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/142.0.0.0 Safari/537.36
== Active Plugins ==
Advanced Woo Search
Version: 3.49
Author: ILLID
Akismet Anti-spam: Spam Protection
Version: 5.6
Author: Automattic - Anti-spam Team
Amazon Pay for WooCommerce
Version: 2.6.0
Author: Amazon Pay
Classic Widgets
Version: 0.3
Author: WordPress Contributors
Code Snippets
Version: 3.9.3
Author: Code Snippets Pro
Discount Rules for WooCommerce
Version: 2.6.13
Author: Flycart
Discount Rules PRO 2.0
Version: 2.6.13
Author: Flycart
Duplicate Page
Version: 4.5.6
Author: mndpsingh287
Elementor
Version: 3.33.3
Author: Elementor.com
Elementor Pro
Version: 3.33.2
Author: Elementor.com
Essential Addons for Elementor
Version: 6.5.3
Author: WPDeveloper
Facebook for WooCommerce
Version: 3.5.14
Author: Facebook
FileBird Pro
Version: 6.5.2
Author: Ninja Team
GTM4WP - A Google Tag Manager (GTM) plugin for WordPress
Version: 1.22.2
Author: Thomas Geiger
Icon Element
Version: 2.0.8
Author: Webangon
Jetpack
Version: 15.3.1
Author: Automattic
Max Mega Menu
Version: 3.6.2
Author: megamenu.com
MWB HubSpot for WooCommerce
Version: 1.6.3
Author: MakeWebBetter
Permalink Manager Lite
Version: 2.5.2.2
Author: Maciej Bis
Pinterest for WooCommerce
Version: 1.4.23
Author: WooCommerce
Product Carousel Slider for Elementor - Pro
Version: 6.0.0
Author: Plugin Devs
Redirection
Version: 5.5.2
Author: John Godley
Related Products - Create Upsells, Cross-sells, and Product Recommendations for WooCommerce
Version: 1.7.6
Author: WebToffee
Responsive Owl Carousel for Elementor
Version: 1.2.3
Author: TheNahidul
Route App
Version: 2.2.30
Author: Route
Sales Tax Reports For WooCommerce
Version: 1.1.2
Author: mystyleplatform
ShipStation for WooCommerce
Version: 4.8.2
Author: WooCommerce
Simple Custom CSS and JS
Version: 3.51.1
Author: SilkyPress.com
Site Kit by Google
Version: 1.167.0
Author: Google
Smush Pro
Version: 3.15.5
Author: WPMU DEV
Ultimate Addons for Elementor Lite
Version: 2.7.0
Author: Brainstorm Force
User Menus
Version: 1.3.2
Author: Code Atlantic
Variation Swatches for WooCommerce
Version: 2.2.5
Author: AovUp
Variation Swatches Pro
Version: 1.0.7
Author: Woosuite
WooCommerce
Version: 10.3.6
Author: Automattic
WooCommerce.com Update Manager
Version: 1.0.3
Author: Automattic
WooCommerce Additional Variation Images
Version: 2.3.2
Author: WooCommerce
WooCommerce Gift Cards
Version: 2.7.2
Author: WooCommerce
WooCommerce Google Product Feed
Version: 11.0.28
Author: Ademti Software Ltd.
WooCommerce Lead Time
Version: 2.1.1
Author: Barn2 Plugins
WooCommerce Tax
Version: 3.2.3
Author: WooCommerce
WooCommerce USPS Shipping
Version: 5.2.9
Author: WooCommerce
WooPayments
Version: 10.2.0
Author: WooCommerce
Woo Show Single Variations by Woosuite
Version: 1.0.4
Author: Woosuite
Woosuite Core
Version: 1.1.5
Author: Woosuite
WP Activity Log
Version: 5.5.4
Author: Melapress
WP Mail SMTP
Version: 4.7.1
Author: WP Mail SMTP
YayMail Pro - WooCommerce Email Customizer
Version: 4.3.1
Author: YayCommerce
Yoast SEO
Version: 26.5
Author: Team Yoast
Yoast SEO: WooCommerce
Version: 16.2
Author: Team Yoast
Yoast SEO Premium
Version: 23.1
Author: Team Yoast
== Elements Usage ==
archive : 1
image : 1
woocommerce-products : 1
container : 8
button : 1
container : 41
heading : 27
text-editor : 26
footer : 2
heading : 4
html : 1
image : 1
sidebar : 4
social-icons : 2
text-editor : 3
wp-widget-nav_menu : 3
header : 2
aws : 1
button : 1
icon : 1
image : 2
nav-menu : 1
navigation-menu : 1
social-icons : 1
theme-site-logo : 1
woocommerce-menu-cart : 2
wp-widget-maxmegamenu : 2
wp-widget-nav_menu : 1
page : 5
button : 3
container : 64
divider : 1
form : 2
heading : 24
icon : 8
image : 1
image-box : 18
image-carousel : 2
nested-carousel : 2
spacer : 1
text-editor : 12
popup : 2
animated-headline : 1
icon : 4
product : 3
divider : 2
heading : 3
share-buttons : 1
woocommerce-product-add-to-cart : 2
woocommerce-product-data-tabs : 1
woocommerce-product-images : 1
woocommerce-product-price : 2
woocommerce-product-related : 2
woocommerce-product-short-description : 1
woocommerce-product-title : 2
woocommerce-product-upsell : 1
section : 2
heading : 4
icon-list : 1
image : 1
wp-page : 38
animated-headline : 1
button : 111
container : 262
form : 13
heading : 163
html : 6
icon : 8
icon-list : 1
image : 84
image-box : 194
image-carousel : 3
nested-accordion : 8
nested-carousel : 10
shortcode : 8
sitemap : 1
slides : 1
spacer : 15
text-editor : 126
video : 22
woocommerce-products : 6
product-archive : 21
container : 2
heading : 13
icon : 9
image : 28
text-editor : 20
woocommerce-products : 18
loop-item : 1
button : 1
post-info : 1
theme-post-featured-image : 1
theme-post-title : 1
error-404 : 1
divider : 1
heading : 3
== Settings ==
cpt_support: e-landing-page, page, post, product
allow_tracking: yes
editor_break_lines: 1
unfiltered_files_upload: 1
== Features ==
Custom Fonts: 6
Custom Icons: 0
== Integrations ==
recaptcha: Active
woocommerce: Active
== Elementor Experiments ==
Inline Font Icons: Active
Additional Custom Breakpoints: Active
Container: Active
Optimized Markup: Inactive by default
Default to New Theme Builder: Active
Pro Free Trial Popup: Inactive by default
Nested Elements: Active
Pages Panel: Inactive by default
Elementor Home Screen: Active by default
Atomic Widgets: Inactive by default
Global Classes: Inactive by default
Enforce global classes capabilities: Active by default
Variables: Active by default
Cloud Library: Active by default
Editor v4 (Opt In Page): Active by default
Editor V4: Inactive by default
Components: Inactive by default
Import/Export Customization: Active by default
Elementor Editor Events: Inactive by default
Menu: Active
Size Variables: Active by default
== Log ==
PHP: showing 10 of 10PHP: 2025-10-29 10:56:08 [notice X 1][/srv/htdocs/wp-content/plugins/elementor/includes/base/controls-stack.php::230] hexdec(): Passing null to parameter #1 ($hex_string) of type string is deprecated [array (
'trace' => '
#0: Elementor\Core\Logger\Manager -> rest_error_handler()
#1: /srv/htdocs/wp-content/plugins/elementor/includes/base/controls-stack.php(230): class type hexdec()
#2: /srv/htdocs/wp-content/plugins/elementor/includes/base/controls-stack.php(244): Elementor\Controls_Stack -> get_id_int()
#3: /srv/htdocs/wp-content/plugins/elementor-pro/modules/mega-menu/widgets/mega-menu.php(2026): Elementor\Controls_Stack -> get_widget_number()
#4: /srv/htdocs/wp-content/plugins/elementor-pro/modules/mega-menu/widgets/mega-menu.php(2402): ElementorPro\Modules\MegaMenu\Widgets\Mega_Menu -> render_menu_wrapper_attributes()
',
)]
PHP: 2025-10-30 15:40:42 [warning X 27][/srv/htdocs/wp-content/plugins/elementor-pro/modules/woocommerce/module.php::1500] Undefined array key "pages" [array (
'trace' => '
#0: /srv/htdocs/wp-content/plugins/elementor-pro/modules/woocommerce/module.php(1500): Elementor\Core\Logger\Manager -> rest_error_handler()
#1: /srv/htdocs/wp-content/plugins/elementor-pro/modules/woocommerce/module.php(1489): ElementorPro\Modules\Woocommerce\Module -> add_system_status_data()
#2: /wordpress/core/6.8.3/wp-includes/class-wp-hook.php(324): ElementorPro\Modules\Woocommerce\Module -> ElementorPro\Modules\Woocommerce\{closure}()
#3: /wordpress/core/6.8.3/wp-includes/plugin.php(205): WP_Hook -> apply_filters()
#4: /srv/htdocs/wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-system-status-v2-controller.php(1686): class type apply_filters()
',
)]
PHP: 2025-10-30 15:40:42 [warning X 27][/srv/htdocs/wp-content/plugins/elementor-pro/modules/woocommerce/module.php::1500] foreach() argument must be of type array|object, null given [array (
'trace' => '
#0: /srv/htdocs/wp-content/plugins/elementor-pro/modules/woocommerce/module.php(1500): Elementor\Core\Logger\Manager -> rest_error_handler()
#1: /srv/htdocs/wp-content/plugins/elementor-pro/modules/woocommerce/module.php(1489): ElementorPro\Modules\Woocommerce\Module -> add_system_status_data()
#2: /wordpress/core/6.8.3/wp-includes/class-wp-hook.php(324): ElementorPro\Modules\Woocommerce\Module -> ElementorPro\Modules\Woocommerce\{closure}()
#3: /wordpress/core/6.8.3/wp-includes/plugin.php(205): WP_Hook -> apply_filters()
#4: /srv/htdocs/wp-content/plugins/woocommerce/includes/rest-api/Controllers/Version2/class-wc-rest-system-status-v2-controller.php(1686): class type apply_filters()
',
)]
PHP: 2025-10-31 08:37:36 [error X 11][/srv/htdocs/wp-content/plugins/elementor/modules/ai/module.php::351] Uncaught Error: Call to a member function get_gallery_image_ids() on bool in /srv/htdocs/wp-content/plugins/elementor/modules/ai/module.php:351
Stack trace:
#0 /wordpress/core/6.8.3/wp-includes/class-wp-hook.php(324): Elementor\Modules\Ai\Module->get_product_images_ajax('')
#1 /wordpress/core/6.8.3/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters('', Array)
#2 /wordpress/core/6.8.3/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
#3 /wordpress/core/6.8.3/wp-admin/admin-ajax.php(192): do_action('wp_ajax_element...')
#4 {main}
thrown [array (
'trace' => '
#0: Elementor\Core\Logger\Manager -> shutdown()
',
)]
PHP: 2025-11-08 18:18:43 [warning X 2][/srv/htdocs/wp-content/plugins/elementor-pro/modules/woocommerce/classes/products-renderer.php::173] Attempt to read property "taxonomy" on bool [array (
'trace' => '
#0: /srv/htdocs/wp-content/plugins/elementor-pro/modules/woocommerce/classes/products-renderer.php(173): Elementor\Core\Logger\Manager -> rest_error_handler()
#1: /srv/htdocs/wp-content/plugins/elementor-pro/modules/woocommerce/classes/products-renderer.php(106): ElementorPro\Modules\Woocommerce\Classes\Products_Renderer -> set_terms_query_args()
#2: /srv/htdocs/wp-content/plugins/elementor-pro/modules/woocommerce/classes/products-renderer.php(27): ElementorPro\Modules\Woocommerce\Classes\Products_Renderer -> parse_query_args()
#3: /srv/htdocs/wp-content/plugins/elementor-pro/modules/woocommerce/widgets/products.php(348): ElementorPro\Modules\Woocommerce\Classes\Products_Renderer -> __construct()
#4: /srv/htdocs/wp-content/plugins/elementor-pro/modules/woocommerce/widgets/products.php(377): ElementorPro\Modules\Woocommerce\Widgets\Products :: get_shortcode_object()
',
)]
PHP: 2025-11-14 12:07:25 [warning X 8][/srv/htdocs/wp-content/plugins/elementor-pro/core/app/modules/site-editor/data/endpoints/templates.php::150] Undefined array key "condition_type" [array (
'trace' => '
#0: /srv/htdocs/wp-content/plugins/elementor-pro/core/app/modules/site-editor/data/endpoints/templates.php(150): Elementor\Core\Logger\Manager -> rest_error_handler()
#1: ElementorPro\Core\App\Modules\SiteEditor\Data\Endpoints\Templates -> normalize_template_json_item()
#2: /srv/htdocs/wp-content/plugins/elementor-pro/core/app/modules/site-editor/data/endpoints/templates.php(120): class type array_map()
#3: /srv/htdocs/wp-content/plugins/elementor-pro/core/app/modules/site-editor/data/endpoints/templates.php(59): ElementorPro\Core\App\Modules\SiteEditor\Data\Endpoints\Templates -> normalize_templates_json()
#4: /srv/htdocs/wp-content/plugins/elementor/data/base/endpoint.php(156): ElementorPro\Core\App\Modules\SiteEditor\Data\Endpoints\Templates -> get_items()
',
)]
PHP: 2025-11-15 06:27:24 [notice X 36][/srv/htdocs/wp-content/plugins/elementor/includes/base/controls-stack.php::230] hexdec(): Passing null to parameter #1 ($hex_string) of type string is deprecated [array (
'trace' => '
#0: Elementor\Core\Logger\Manager -> rest_error_handler()
#1: /srv/htdocs/wp-content/plugins/elementor/includes/base/controls-stack.php(230): class type hexdec()
#2: /srv/htdocs/wp-content/plugins/elementor/includes/base/controls-stack.php(244): Elementor\Controls_Stack -> get_id_int()
#3: /srv/htdocs/wp-content/plugins/elementor-pro/modules/mega-menu/widgets/mega-menu.php(2029): Elementor\Controls_Stack -> get_widget_number()
#4: /srv/htdocs/wp-content/plugins/elementor-pro/modules/mega-menu/widgets/mega-menu.php(2406): ElementorPro\Modules\MegaMenu\Widgets\Mega_Menu -> render_menu_wrapper_attributes()
',
)]
PHP: 2025-11-15 06:27:24 [notice X 36][/srv/htdocs/wp-content/plugins/elementor/includes/base/controls-stack.php::230] hexdec(): Passing null to parameter #1 ($hex_string) of type string is deprecated [array (
'trace' => '
#0: Elementor\Core\Logger\Manager -> rest_error_handler()
#1: /srv/htdocs/wp-content/plugins/elementor/includes/base/controls-stack.php(230): class type hexdec()
#2: /srv/htdocs/wp-content/plugins/elementor/includes/base/controls-stack.php(244): Elementor\Controls_Stack -> get_id_int()
#3: /srv/htdocs/wp-content/plugins/elementor-pro/modules/mega-menu/widgets/mega-menu.php(2030): Elementor\Controls_Stack -> get_widget_number()
#4: /srv/htdocs/wp-content/plugins/elementor-pro/modules/mega-menu/widgets/mega-menu.php(2406): ElementorPro\Modules\MegaMenu\Widgets\Mega_Menu -> render_menu_wrapper_attributes()
',
)]
PHP: 2025-12-05 08:32:55 [error X 2][/srv/htdocs/wp-content/plugins/elementor/modules/ai/module.php::351] Uncaught Error: Call to a member function get_gallery_image_ids() on bool in /srv/htdocs/wp-content/plugins/elementor/modules/ai/module.php:351
Stack trace:
#0 /wordpress/core/6.9/wp-includes/class-wp-hook.php(341): Elementor\Modules\Ai\Module->get_product_images_ajax('')
#1 /wordpress/core/6.9/wp-includes/class-wp-hook.php(365): WP_Hook->apply_filters('', Array)
#2 /wordpress/core/6.9/wp-includes/plugin.php(522): WP_Hook->do_action(Array)
#3 /wordpress/core/6.9/wp-admin/admin-ajax.php(192): do_action('wp_ajax_element...')
#4 {main}
thrown [array (
'trace' => '
#0: Elementor\Core\Logger\Manager -> shutdown()
',
)]
PHP: 2025-12-05 09:49:09 [warning X 2][/srv/htdocs/wp-content/plugins/elementor-pro/modules/query-control/module.php::808] Attempt to read property "name" on null [array (
'trace' => '
#0: Elementor\Core\Logger\Manager -> shutdown()
',
)]
Log: showing 20 of 302025-10-29 12:18:04 [info] Elementor/Upgrades - _on_each_version Finished
2025-10-29 12:18:04 [info] Elementor/Upgrades - _v_3_26_0 Start
2025-10-29 12:18:04 [info] Elementor/Upgrades - _v_3_26_0 Finished
2025-10-29 12:18:04 [info] Elementor data updater process has been completed. [array (
'plugin' => 'Elementor',
'from' => '3.26.3',
'to' => '3.32.5',
)]
2025-10-29 12:18:05 [info] Elementor data updater process has been queued. [array (
'plugin' => 'Elementor',
'from' => '3.26.3',
'to' => '3.32.5',
)]
2025-12-03 20:31:19 [info] elementor::elementor_updater Started
2025-12-03 20:31:19 [info] Elementor/Upgrades - _on_each_version Start
2025-12-03 20:31:21 [info] Elementor/Upgrades - _on_each_version Finished
2025-12-03 20:31:21 [info] Elementor data updater process has been completed. [array (
'plugin' => 'Elementor',
'from' => '3.32.5',
'to' => '3.33.2',
)]
2025-12-03 20:32:04 [info] elementor-pro::elementor_pro_updater Started
2025-12-03 20:32:04 [info] Elementor Pro/Upgrades - _on_each_version Start
2025-12-03 20:32:04 [info] Elementor Pro/Upgrades - _on_each_version Finished
2025-12-03 20:32:04 [info] Elementor Pro/Upgrades - _v_3_30_0_post_navigation_inline_icons Start
2025-12-03 20:32:12 [info] Elementor Pro/Upgrades - _v_3_30_0_post_navigation_inline_icons Finished
2025-12-03 20:32:12 [info] Elementor data updater process has been completed. [array (
'plugin' => 'Elementor Pro',
'from' => '3.32.3',
'to' => '3.33.2',
)]
2025-12-04 10:51:07 [info] Elementor data updater process has been queued. [array (
'plugin' => 'Elementor',
'from' => '3.33.2',
'to' => '3.33.3',
)]
2025-12-04 10:51:09 [info] elementor::elementor_updater Started
2025-12-04 10:51:09 [info] Elementor/Upgrades - _on_each_version Start
2025-12-04 10:51:14 [info] Elementor/Upgrades - _on_each_version Finished
2025-12-04 10:51:14 [info] Elementor data updater process has been completed. [array (
'plugin' => 'Elementor',
'from' => '3.33.2',
'to' => '3.33.3',
)]
JS: showing 2 of 2JS: 2025-11-29 00:51:27 [error X 12][https://sofiestdesigns.com/wp-content/plugins/elementor/assets/js/editor.min.js?ver=3.32.5:3:915074] Failed to execute 'querySelector' on 'Document': '#' is not a valid selector.
JS: 2025-12-04 02:20:44 [error X 2][https://sofiestdesigns.com/wp-content/plugins/elementor/assets/js/common-modules.min.js?ver=3.33.2:1:102651] C.startsWith is not a function
== Elementor - Compatibility Tag ==
Elementor Pro: Compatibility not specified
Essential Addons for Elementor: Compatibility not specified
Product Carousel Slider for Elementor - Pro: Compatibility not specified
Responsive Owl Carousel for Elementor: Compatibility not specified
Ultimate Addons for Elementor Lite: Compatibility not specified
== Elementor Pro - Compatibility Tag ==
```
### Agreement
- [x] I confirm I have read and followed all the guidelines and instructions outlined in the Elementor Bug Report form.
- [x] I agree that my issue may be closed without further action if it doesn't meet all the requirements outlined in the Elementor Bug Report form.
Contributor guide
Assessment
This issue has not been assessed yet.