Skip to content

⛔ 🚀 Pods Image Field dropdown empty when file type is images-any #29454

@jamieburchell

Description

@jamieburchell

Prerequisites

  • I have searched for similar issues in open and closed tickets and cannot find a duplicate.
  • I have troubleshooted my issue, and it still exists against the latest stable version of Elementor.

Description

The drop-down for "Pods Image Field" does not show fields where "Images - Any (jpg, jpeg, png, gif, webp, and others supported by WP)" is chosen as the "Restricted File Types". Elementor will only show fields that have "Images (ONLY jpg, jpeg, png, gif, and webp)" chosen. This means for example that SVG files cannot be used.

This is controlled in ElementorPro\Modules\DynamicTags\Pods\Module:103

if ( 'images' !== $field['options']['file_type'] ) {
   return false;
}

images-any is the file_type that would need to be supported in addition to images.

Steps to reproduce

  1. Create a new Pod with an image field
  2. Set the image field "Restricted File Types" to "Images - Any (jpg, jpeg, png, gif, webp, and others supported by WP)"
  3. Try to use the Pod field in an Elementor Dynamic Tag.

Expected behavior

Drop-down should show the Pod field, since it is an image field.

Isolating the problem

  • This bug happens when only the Elementor (and Elementor Pro) plugins are active.
  • This bug happens with the Hello Elementor theme active.
  • I can reproduce this bug consistently by following the steps I described above.

Elementor System Info

Click to reveal
== Server Environment ==
	Operating System: Linux
	Software: Apache
	MySQL version: MariaDB Server v10.5.22
	PHP Version: 8.2.26
	PHP Memory Limit: 256M
	PHP Max Input Vars: 1000
	PHP Max Post Size: 50M
	GD Installed: Yes
	ZIP Installed: Yes
	Write Permissions: All right
	Elementor Library: Connected

== WordPress Environment ==
	Version: 6.7.1
	Site URL: https://example.com/wp
	Home URL: https://example.com
	WP Multisite: No
	Max Upload Size: 40 MB
	Memory limit: 40M
	Max Memory limit: 256M
	Permalink Structure: /%category%/%postname%/
	Language: en_GB
	Timezone: Europe/London
	Debug Mode: Inactive

== Theme ==
	Name: Hello Elementor Child
	Version: 2.0.1
	Author: Elementor Team
	Child Theme: Yes
	Parent Theme Name: Hello Elementor
	Parent Theme Version: 3.1.1
	Parent Theme Author: Elementor Team

== User ==
	Role: administrator
	WP Profile lang: en-GB
	User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36

== Active Plugins ==
	Elementor
		Version: 3.25.10
		Author: Elementor.com

	Elementor Pro
		Version: 3.25.4
		Author: Elementor.com

	Gravity Forms
		Version: 2.9.0.3
		Author: Gravity Forms

	Pods - Custom Content Types and Fields
		Version: 3.2.8.1
		Author: Pods Framework Team

	Rank Math SEO
		Version: 1.0.232
		Author: Rank Math SEO

	Site Custom Code
		Version: 1.0.0
		Author: ib3 Limited

	Wordfence Security
		Version: 8.0.1
		Author: Wordfence


== Must-Use Plugins ==
	Bedrock Autoloader
		Version: 1.0.3
		Author: Roots

	Disable status tests
		Version: 1.0.0
		Author: Roots

	Register Theme Directory
		Version: 1.0.0
		Author: Roots

	Set WordPress Mail From Address
		Version: 1.0.0
		Author: ib3 Limited


== Features ==
	Custom Fonts: 2
	Custom Icons: 0

== Integrations ==
	


== Elementor Experiments ==
	Improved CSS Loading: Inactive by default
	Inline Font Icons: Active
	Additional Custom Breakpoints: Inactive
	Container: Active
	Upgrade Swiper Library: Active
	Nested Elements Performance: Active by default
	Optimized Control Loading: Inactive
	Optimized Markup: Inactive
	Conditionally load Swiper CSS files: Inactive by default
	Plugin Onboarding: Active by default
	CSS Smooth Scroll: Active by default
	Default to New Theme Builder: Active
	Header & Footer: Inactive
	Elementor Home Screen: Active by default
	Landing Pages: Inactive
	Nested Elements: Inactive
	Editor Top Bar: Inactive
	Element Caching: Inactive
	Link In Bio: Active by default
	Floating Buttons: Active by default
	Elementor Editor Events: Inactive by default
	Atomic Widgets: Inactive by default
	Launchpad Checklist: Active by default
	Menu: Inactive


== Log ==
	
Log: showing 5 of 52024-11-26 10:32:11 [info] Import runner completed: plugins ✓ 
2024-11-26 10:32:28 [info] Import runner completed: templates ✓ 
2024-11-26 10:32:28 [info] Import runner completed: taxonomies ✓ 
2024-11-26 10:32:29 [info] Import runner completed: elementor-content ✓ 
2024-11-26 10:32:29 [info] Import runner completed: wp-content ✓ 

PHP: showing 20 of 30PHP: 2024-11-27 10:15:32 [warning X 3][../plugins/elementor-pro/core/app/modules/site-editor/data/endpoints/templates.php::150] Undefined array key "condition_type" [array (
  'trace' => '
#0: ../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: ../plugins/elementor-pro/core/app/modules/site-editor/data/endpoints/templates.php(120): class type array_map()
#3: ../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: ../plugins/elementor/data/base/endpoint.php(158): ElementorPro\Core\App\Modules\SiteEditor\Data\Endpoints\Templates -> get_items()
',
)]
PHP: 2024-11-27 10:24:36 [warning X 9][../plugins/elementor-pro/core/app/modules/site-editor/data/endpoints/templates.php::150] Undefined array key "condition_type" [array (
  'trace' => '
#0: ../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: ../plugins/elementor-pro/core/app/modules/site-editor/data/endpoints/templates.php(120): class type array_map()
#3: ../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: ../plugins/elementor/data/base/endpoint.php(158): ElementorPro\Core\App\Modules\SiteEditor\Data\Endpoints\Templates -> get_items()
',
)]
PHP: 2024-11-27 10:33:45 [warning X 27][../app/plugins/elementor-pro/core/app/modules/site-editor/data/endpoints/templates.php::150] Undefined array key "condition_type" [array (
  'trace' => '
#0: ../app/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: ../app/plugins/elementor-pro/core/app/modules/site-editor/data/endpoints/templates.php(120): class type array_map()
#3: ../app/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: ../app/plugins/elementor/data/base/endpoint.php(158): ElementorPro\Core\App\Modules\SiteEditor\Data\Endpoints\Templates -> get_items()
',
)]
PHP: 2024-11-27 11:47:21 [warning X 87][../plugins/elementor-pro/core/app/modules/site-editor/data/endpoints/templates.php::150] Undefined array key "condition_type" [array (
  'trace' => '
#0: ../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: ../plugins/elementor-pro/core/app/modules/site-editor/data/endpoints/templates.php(120): class type array_map()
#3: ../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: ../plugins/elementor/data/base/endpoint.php(158): ElementorPro\Core\App\Modules\SiteEditor\Data\Endpoints\Templates -> get_items()
',
)]
PHP: 2024-11-27 12:29:47 [warning X 2][../app/plugins/elementor/core/files/file-types/svg.php::161] simplexml_load_file(): I/O warning : failed to load external entity "../uploads/2024/11/icon-window1.svg" [array (
  'trace' => '
#0: Elementor\Core\Logger\Manager -> shutdown()
',
)]
PHP: 2024-11-27 12:29:49 [warning X 2][../app/plugins/elementor/core/files/file-types/svg.php::161] simplexml_load_file(): I/O warning : failed to load external entity "../uploads/2024/11/icon-window2.svg" [array (
  'trace' => '
#0: Elementor\Core\Logger\Manager -> shutdown()
',
)]
PHP: 2024-11-28 09:24:45 [warning X 24][../plugins/elementor-pro/core/app/modules/site-editor/data/endpoints/templates.php::150] Undefined array key "condition_type" [array (
  'trace' => '
#0: ../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: ../plugins/elementor-pro/core/app/modules/site-editor/data/endpoints/templates.php(120): class type array_map()
#3: ../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: ../plugins/elementor/data/base/endpoint.php(158): ElementorPro\Core\App\Modules\SiteEditor\Data\Endpoints\Templates -> get_items()
',
)]
PHP: 2024-11-28 11:20:44 [warning X 18][../plugins/elementor-pro/core/app/modules/site-editor/data/endpoints/templates.php::150] Undefined array key "condition_type" [array (
  'trace' => '
#0: ../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: ../plugins/elementor-pro/core/app/modules/site-editor/data/endpoints/templates.php(120): class type array_map()
#3: ../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: ../plugins/elementor/data/base/endpoint.php(158): ElementorPro\Core\App\Modules\SiteEditor\Data\Endpoints\Templates -> get_items()
',
)]
PHP: 2024-11-28 11:45:48 [warning X 2][../plugins/elementor/core/files/file-types/svg.php::161] simplexml_load_file(): I/O warning : failed to load external entity "../uploads/2024/11/footer-foot.svg" [array (
  'trace' => '
#0: Elementor\Core\Logger\Manager -> shutdown()
',
)]
PHP: 2024-11-28 12:03:11 [warning X 1][../plugins/elementor/core/files/file-types/svg.php::161] simplexml_load_file(): I/O warning : failed to load external entity "../uploads/2024/11/footer-cutout.svg" [array (
  'trace' => '
#0: Elementor\Core\Logger\Manager -> shutdown()
',
)]
PHP: 2024-11-28 12:23:00 [warning X 1][../plugins/elementor/core/files/file-types/svg.php::161] simplexml_load_file(): I/O warning : failed to load external entity "../uploads/2024/11/footer-cutout-long.svg" [array (
  'trace' => '
#0: Elementor\Core\Logger\Manager -> shutdown()
',
)]
PHP: 2024-11-28 12:29:14 [warning X 1][../plugins/elementor/core/files/file-types/svg.php::161] simplexml_load_file(): I/O warning : failed to load external entity "../uploads/2024/11/footer-cutout-900.svg" [array (
  'trace' => '
#0: Elementor\Core\Logger\Manager -> shutdown()
',
)]
PHP: 2024-11-28 12:37:45 [warning X 1][../plugins/elementor/core/files/file-types/svg.php::161] simplexml_load_file(): I/O warning : failed to load external entity "../uploads/2024/11/footer-cutout-leg.svg" [array (
  'trace' => '
#0: Elementor\Core\Logger\Manager -> shutdown()
',
)]
PHP: 2024-11-28 12:58:37 [warning X 1][../plugins/elementor/core/files/file-types/svg.php::161] simplexml_load_file(): I/O warning : failed to load external entity "../uploads/2024/11/AdobeStock_553352409-Converted.svg" [array (
  'trace' => '
#0: Elementor\Core\Logger\Manager -> shutdown()
',
)]
PHP: 2024-11-28 12:59:57 [warning X 2][../plugins/elementor/core/files/file-types/svg.php::161] simplexml_load_file(): I/O warning : failed to load external entity "../uploads/2024/11/wood-plane.svg" [array (
  'trace' => '
#0: Elementor\Core\Logger\Manager -> shutdown()
',
)]
PHP: 2024-11-28 13:02:05 [warning X 1][../plugins/elementor/core/files/file-types/svg.php::161] simplexml_load_file(): I/O warning : failed to load external entity "../uploads/2024/11/wood-plane-colour.svg" [array (
  'trace' => '
#0: Elementor\Core\Logger\Manager -> shutdown()
',
)]
PHP: 2024-11-28 16:30:40 [warning X 30][../plugins/elementor-pro/core/app/modules/site-editor/data/endpoints/templates.php::150] Undefined array key "condition_type" [array (
  'trace' => '
#0: ../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: ../plugins/elementor-pro/core/app/modules/site-editor/data/endpoints/templates.php(120): class type array_map()
#3: ../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: ../plugins/elementor/data/base/endpoint.php(158): ElementorPro\Core\App\Modules\SiteEditor\Data\Endpoints\Templates -> get_items()
',
)]
PHP: 2024-11-28 16:38:22 [warning X 1][../plugins/elementor/core/files/file-types/svg.php::161] simplexml_load_file(): I/O warning : failed to load external entity "../uploads/2024/11/wood-plane-1.svg" [array (
  'trace' => '
#0: Elementor\Core\Logger\Manager -> shutdown()
',
)]
PHP: 2024-11-28 21:03:59 [warning X 4][../plugins/elementor-pro/core/app/modules/site-editor/data/endpoints/templates.php::150] Undefined array key "condition_type" [array (
  'trace' => '
#0: ../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: ../plugins/elementor-pro/core/app/modules/site-editor/data/endpoints/templates.php(120): class type array_map()
#3: ../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: ../plugins/elementor/data/base/endpoint.php(158): ElementorPro\Core\App\Modules\SiteEditor\Data\Endpoints\Templates -> get_items()
',
)]
PHP: 2024-11-28 21:54:12 [warning X 12][../plugins/elementor-pro/core/app/modules/site-editor/data/endpoints/templates.php::150] Undefined array key "condition_type" [array (
  'trace' => '
#0: ../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: ../plugins/elementor-pro/core/app/modules/site-editor/data/endpoints/templates.php(120): class type array_map()
#3: ../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: ../plugins/elementor/data/base/endpoint.php(158): ElementorPro\Core\App\Modules\SiteEditor\Data\Endpoints\Templates -> get_items()
',
)]

JS: showing 7 of 7JS: 2024-11-26 12:20:49 [error X 4][../plugins/elementor/assets/js/editor.min.js?ver=3.25.10:3:666070] Cannot read properties of undefined (reading 'isDesignable') 
JS: 2024-11-26 14:33:11 [error X 6][../plugins/elementor/assets/js/editor.min.js?ver=3.25.10:3:54711] C.getControlViewByName is not a function 
JS: 2024-11-26 23:07:28 [error X 1][../plugins/elementor/assets/js/editor.min.js?ver=3.25.10:3:964543] Cannot read properties of undefined (reading 'route') 
JS: 2024-11-27 10:34:36 [error X 2][https://example.com/wp/wp-includes/js/dist/vendor/react-dom.min.js?ver=18.3.1:10:23755] Cannot read properties of null (reading 'getOptions') 
JS: 2024-11-27 10:49:59 [error X 4][../plugins/elementor/assets/lib/nouislider/nouislider.min.js?ver=13.0.0:2:4427] noUiSlider (13.0.0): 'range' 'min' and 'max' cannot be equal. 
JS: 2024-11-27 12:10:08 [error X 1][../plugins/elementor/assets/js/editor.min.js?ver=3.25.10:3:54583] Cannot read properties of undefined (reading 'activate') 
JS: 2024-11-28 09:26:54 [error X 1][../plugins/elementor/assets/js/editor.min.js?ver=3.25.10:3:622598] Cannot read properties of null (reading 'id') 



== Elementor - Compatibility Tag ==
	
	Elementor Pro: Compatible

== Elementor Pro - Compatibility Tag ==

Agreement

  • I agree that my issue may be closed without action if it doesn't meet all the requirements.

Metadata

Metadata

Assignees

No one assigned

    Labels

    compatibility/3rd-partyIndicates a compatibility problem with a 3rd-party plugin or theme.component/codeIndicates when a topic is related to a component’s code.component/pro/dynamic-tagReferences Elementor Pro’s Dynamic Tags feature.integration/podsReferences Elementor Pro’s integration with Pods.integrationsReferences any official Elementor Pro integration with other plugins and services.mod*[Temp.] For internal use only.mod/r*[Temp.] For internal use only.product/proIndicates if the referenced component is part of the Elementor Pro plugin.request/enhancementIndicates an Enhancement Request for an existing feature.type/developer-apiIndicates when a topic is related to the Developer API and Documentation.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions