What issue or error are you experiencing?
Hi. First, really like local. Its been a great resource to test sites prior to version upgrades.
The issue I’m having is on any site running on Local that uses Elementor Pro’s dynamic loop grid pulling data from an Advanced Custom Fields page, throws the below error. This is only when running on Local. On the live site, there is no error.
( ! ) Warning: Undefined array key “product_query_post_type” in /Volumes/Site Backup/Local Sites/-----name of site-----/app/public/wp-content/plugins/elementor/includes/conditions.php on line 87
That warning appears above each instance of a loop grid. Additionally I get that exact same message on other sites (different site name) with the same setup within Local.
What’s really weird is if I set Local to have the exact same MySQL and PHP of the live site. I still get that message.
What steps can be taken to replicate the issue? Feel free to include screenshots, videos, etc
On a live site, build out the below:
Install Elementor Pro
Setup an ACF text field
Create an Elementor Pro dynamic loop grid element that pulls the ACF field info from a page (photos, text, etc…)
Manually pull a backup (in my case through WPengine) and set up the site on local (either same host settings /or/ let it use auto settings for latest PHP and MySQL)
Run site and view loop grid page to see error (its always duplicated twice with the same line #)
Thanks. And again, really like Local. Its been great to test PHP and MySQL version updates.
System Details
Local Version:
7.1.2+6410
Operating System (OS) and OS version:
Mac OS 11.7.6
Local Logs
Attach your Local Logs here (Help Doc - Retrieving Local’s Log )
Log info:
local-lightning.log.zip (6.3 KB)
Xdebug error warning info:
xdebug-warning-info.txt.zip (8.4 KB)
Security Reminder
Local does a pretty good job of scrubbing private info from the logs and the errors it produces, however there’s always the possibility that something private can come through. Because these are public forums, always review the screenshots you are sharing to make sure there isn’t private info like passwords being displayed.
Nick-B
August 18, 2023, 8:05pm
2
Hey @Rfleming ! I just did a quick search for your error and saw this Github bug that was sent to Elementor and they are looking into. Have you seen this?
opened 03:48PM - 02 Jun 23 UTC
bug
component/editor
type/workflow
component/loop-builder
mod*
component/control/query-group
### Prerequisites
- [X] I have searched for similar issues in both open and c… losed tickets and cannot find a duplicate.
- [X] The issue still exists against the latest stable version of Elementor.
### Description
Elementor Loop Grid doesn't find subcategory terms in query search.
### Steps to reproduce
1) Add a loop grid to your template.
2) In the query section, look for a specific subcategory.
3) Be disappointed.
### Isolating the problem
- [ ] This bug happens with only Elementor plugin active (and Elementor Pro).
- [ ] This bug happens with a Blank WordPress theme active ([Hello theme](https://wordpress.org/themes/hello-elementor/)).
- [X] I can reproduce this bug consistently following the steps above.
### System Info
<details>
<summary>System Info</summary>
````txt
== Server Environment ==
Operating System: Linux
Software: Apache
MySQL version: MySQL Community Server (GPL) v5.7.41
PHP Version: 8.1.19
PHP Memory Limit: 268435456
PHP Max Input Vars: 1000
PHP Max Post Size: 67108864
GD Installed: Yes
ZIP Installed: Yes
Write Permissions: All right
Elementor Library: Connected
== WordPress Environment ==
Version: 6.2.2
Site URL: https://redwirespace.com
Home URL: https://redwirespace.com
WP Multisite: No
Max Upload Size: 64 MB
Memory limit: 512M
Max Memory limit: 256M
Permalink Structure: /newsroom/%postname%/
Language: en-US
Timezone: America/New_York
Admin Email: [REDACTED]
Debug Mode: Inactive
== Theme ==
Name: Redwire Space
Version: 1.0.27
Author: Dameian Lott
Child Theme: Yes
Parent Theme Name: Astra
Parent Theme Version: 4.1.5
Parent Theme Author: Brainstorm Force
== 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/113.0.0.0 Safari/537.36
== Active Plugins ==
Advanced Custom Fields PRO
Version: 6.1.6
Author: WP Engine
Astra Bulk Edit
Version: 1.2.6
Author: Brainstorm Force
Astra Hooks
Version: 1.0.2
Author: Brainstorm Force
Astra Pro
Version: 4.1.5
Author: Brainstorm Force
Astra Widgets
Version: 1.2.12
Author: Brainstorm Force
Burst Statistics - Privacy-Friendly Analytics for WordPress
Version: 1.4.0
Author: Really Simple Plugins
Classic Editor
Version: 1.6.3
Author: WordPress Contributors
Complianz Privacy Suite (GDPR/CCPA) premium
Version: 6.4.8
Author: Really Simple Plugins
Custom Fonts
Version: 1.3.7
Author: Brainstorm Force
Custom Post Type UI
Version: 1.13.6
Author: WebDevStudios
Elementor
Version: 3.13.4
Author: Elementor.com
Elementor Pro
Version: 3.13.2
Author: Elementor.com
Elements Plus!
Version: 2.16.1
Author: The CSSIgniter Team
Essential Addons for Elementor
Version: 5.7.4
Author: WPDeveloper
Essential Addons for Elementor - Pro
Version: 5.4.10
Author: WPDeveloper
EWWW Image Optimizer
Version: 7.0.1
Author: Exactly WWW
Export All URLs
Version: 4.5
Author: Atlas Gondal
Export media with selected content
Version: 2.1.4
Author: Joost de Keijzer
Import / Export Customizer Settings
Version: 1.0.7
Author: Brainstorm Force
Max Mega Menu
Version: 3.2.2
Author: megamenu.com
Max Mega Menu - Pro Addon
Version: 2.2.8
Author: megamenu.com
Nested Pages
Version: 3.2.4
Author: Kyle Phillips
Piotnet Addons For Elementor
Version: 2.4.23
Author: Piotnet
Piotnet Addons For Elementor Pro
Version: 7.1.4
Author: Piotnet Team
Post Type Switcher
Version: 3.2.1
Author: Triple J Software, Inc.
Premium Starter Templates
Version: 3.2.3
Author: Brainstorm Force
Quick 301 Redirects
Version: 1.1.6
Author: Premio
Redirection
Version: 5.3.10
Author: John Godley
Relevanssi
Version: 4.20.0
Author: Mikko Saari
Search & Filter - Elementor Extension
Version: 1.2.2
Author: Code Amp
Search & Filter Pro
Version: 2.5.13
Author: Code Amp
Taxonomy Switcher
Version: 1.0.5
Author: WebDevStudios
The SEO Framework
Version: 4.2.8
Author: The SEO Framework Team
Ultimate Addons for Elementor
Version: 1.36.16
Author: Brainstorm Force
UpdraftPlus - Backup/Restore
Version: 2.23.4.26
Author: UpdraftPlus.Com, DavidAnderson
Widget Options
Version: 3.9.1
Author: Widget Options Team
WordPress Importer
Version: 0.8.1
Author: wordpressdotorg
WordPress Ping Optimizer
Version: 2.35.1.3.0
Author: Pankaj Jha
WP-Optimize - Clean, Compress, Cache
Version: 3.2.15
Author: David Anderson, Ruhani Rabin, Team Updraft
WPForms
Version: 1.8.1.2
Author: WPForms
WPForms Form Locker
Version: 2.4.0
Author: WPForms
WPForms Form Pages
Version: 1.6.0
Author: WPForms
WPForms Geolocation
Version: 2.4.0
Author: WPForms
WPForms Offline Forms
Version: 1.2.3
Author: WPForms
WPForms Webhooks
Version: 1.2.0
Author: WPForms
WP Mail SMTP
Version: 3.8.0
Author: WP Mail SMTP
Yoast Duplicate Post
Version: 4.5
Author: Enrico Battocchi & Team Yoast
== Must-Use Plugins ==
1&1 Product Subdomain
Version: 1.1.0
Author: 1&1
burst_rest_api_optimizer.php
Version:
Author:
Elementor Safe Mode
Version: 1.0.0
Author: Elementor.com
== Elements Usage ==
container : 1
button : 5
container : 1
page : 4
text-editor : 1
uael-modal-popup : 1
popup : 3
heading : 1
html : 2
text-editor : 4
uael-advanced-heading : 1
uael-buttons : 1
uael-wpf-styler : 1
section : 26
button : 6
heading : 7
image : 17
spacer : 52
text-editor : 42
uael-advanced-heading : 1
uael-buttons : 2
uael-wpf-styler : 1
video : 1
wpforms : 1
widget : 0
wpforms : 1
wp-post : 11
blockquote : 1
button : 2
call-to-action : 7
container : 26
eael-image-hotspots : 1
heading : 5
hotspot : 2
icon : 2
icon-list : 2
image : 11
image-box : 2
image-carousel : 4
media-carousel : 3
spacer : 2
text-editor : 44
uael-advanced-heading : 10
uael-buttons : 4
uael-infobox : 6
video : 6
wpforms : 1
wp-page : 140
accordion : 26
animated-headline : 2
button : 127
call-to-action : 85
container : 182
counter : 3
eael-post-grid : 1
gallery : 7
heading : 457
html : 12
icon-box : 5
icon-list : 23
image : 273
image-box : 5
image-gallery : 5
loop-grid : 11
media-carousel : 2
menu-anchor : 4
nav-menu : 2
pafe-slider-builder : 2
posts : 4
shortcode : 1
social-icons : 2
spacer : 227
template : 85
text-editor : 561
uael-advanced-heading : 5
uael-buttons : 7
uael-google-map : 5
uael-modal-popup : 90
uael-posts : 20
uael-table : 1
uael-timeline : 2
uael-video-gallery : 4
video : 19
wpforms : 6
loop-item : 1
container : 1
post-info : 2
text-editor : 1
theme-post-featured-image : 1
theme-post-title : 1
== Settings ==
cpt_support: post, page
disable_color_schemes: yes
disable_typography_schemes: yes
allow_tracking: yes
unfiltered_files_upload: 1
== Features ==
Custom Fonts: 1
Custom Icons: 0
== Integrations ==
google_maps: Active
== Elementor Experiments ==
Optimized DOM Output: Active by default
Improved Asset Loading: Active by default
Improved CSS Loading: Active by default
Inline Font Icons: Inactive by default
Accessibility Improvements: Active by default
Additional Custom Breakpoints: Active by default
admin_menu_rearrangement: Inactive by default
Flexbox Container: Active
Upgrade Swiper Library: Inactive by default
Grid Container: Inactive by default
Default to New Theme Builder: Active by default
Editor Top Bar: Inactive by default
Landing Pages: Active by default
Nested Elements: Inactive by default
Lazy Load Background Images: Inactive by default
Page Transitions: Active by default
Notes: Active by default
Loop: Active
Form Submissions: Active by default
Scroll Snap: Active by default
Menu: Inactive by default
== Log ==
Log: showing 20 of 332023-05-11 20:54:11 [info] Elementor/Upgrades - _on_each_version Finished
2023-05-11 20:54:11 [info] Elementor data updater process has been completed. [array (
'plugin' => 'Elementor',
'from' => '3.13.1',
'to' => '3.13.2',
)]
2023-05-12 10:49:43 [info] elementor-pro::elementor_pro_updater Started
2023-05-12 10:49:43 [info] Elementor Pro/Upgrades - _on_each_version Start
2023-05-12 10:49:43 [info] Elementor Pro/Upgrades - _on_each_version Finished
2023-05-12 10:49:43 [info] Elementor data updater process has been completed. [array (
'plugin' => 'Elementor Pro',
'from' => '3.13.0',
'to' => '3.13.1',
)]
2023-05-23 08:54:16 [info] Elementor data updater process has been queued. [array (
'plugin' => 'Elementor',
'from' => '3.13.2',
'to' => '3.13.3',
)]
2023-05-23 08:54:17 [info] Elementor data updater process has been queued. [array (
'plugin' => 'Elementor Pro',
'from' => '3.13.1',
'to' => '3.13.2',
)]
2023-05-23 08:54:17 [info] elementor::elementor_updater Started
2023-05-23 08:54:17 [info] Elementor/Upgrades - _on_each_version Start
2023-05-23 08:54:18 [info] Elementor Pro/Upgrades - _on_each_version Finished
2023-05-23 08:54:18 [info] Elementor data updater process has been completed. [array (
'plugin' => 'Elementor Pro',
'from' => '3.13.1',
'to' => '3.13.2',
)]
2023-05-23 08:54:19 [info] Elementor data updater process has been queued. [array (
'plugin' => 'Elementor Pro',
'from' => '3.13.1',
'to' => '3.13.2',
)]
2023-05-23 08:54:23 [info] Elementor/Upgrades - _on_each_version Finished
2023-05-23 08:54:23 [info] Elementor data updater process has been completed. [array (
'plugin' => 'Elementor',
'from' => '3.13.2',
'to' => '3.13.3',
)]
2023-05-28 20:53:57 [info] Elementor data updater process has been queued. [array (
'plugin' => 'Elementor',
'from' => '3.13.3',
'to' => '3.13.4',
)]
2023-05-28 20:53:58 [info] elementor::elementor_updater Started
2023-05-28 20:53:58 [info] Elementor/Upgrades - _on_each_version Start
2023-05-28 20:54:01 [info] Elementor/Upgrades - _on_each_version Finished
2023-05-28 20:54:01 [info] Elementor data updater process has been completed. [array (
'plugin' => 'Elementor',
'from' => '3.13.3',
'to' => '3.13.4',
)]
JS: showing 3 of 3JS: 2023-05-18 21:11:28 [error X 1][https://redwirespace.com/wp-content/plugins/elementor/assets/js/editor.min.js?ver=3.13.2:3:794943] Cannot read properties of undefined (reading 'toLowerCase')
JS: 2023-05-22 18:29:07 [error X 2][https://redwirespace.com/wp-content/plugins/elementor/assets/js/common-modules.min.js?ver=3.13.2:2:55595] Model.isValidChild() should be implemented, please provide 'isValidChild' functionality.
JS: 2023-06-02 15:35:49 [error X 1][https://redwirespace.com/wp-content/plugins/elementor/assets/js/editor.min.js?ver=3.13.4:3:304714] Cannot read properties of undefined (reading 'id')
PHP: showing 6 of 6PHP: 2023-05-18 17:27:45 [warning X 6][/homepages/31/d829309062/htdocs/clickandbuilds/Redwire/wp-content/plugins/elementor-pro/modules/theme-builder/classes/conditions-manager.php::171] Undefined array key "editor_post_id" [array (
'trace' => '
#0: Elementor\Core\Logger\Manager -> shutdown()
',
)]
PHP: 2023-05-22 09:35:27 [warning X 1][/homepages/31/d829309062/htdocs/clickandbuilds/Redwire/wp-content/plugins/elementor/modules/history/revisions-manager.php::363] Trying to access array offset on value of type null [array (
'trace' => '
#0: Elementor\Core\Logger\Manager -> shutdown()
',
)]
PHP: 2023-05-23 21:07:34 [warning X 20][/homepages/31/d829309062/htdocs/clickandbuilds/Redwire/wp-content/plugins/elementor-pro/modules/forms/classes/ajax-handler.php::76] Undefined array key "form_id" [array (
'trace' => '
#0: Elementor\Core\Logger\Manager -> shutdown()
',
)]
PHP: 2023-05-26 09:40:24 [warning X 44][/homepages/31/d829309062/htdocs/clickandbuilds/Redwire/wp-content/plugins/elementor/includes/conditions.php::87] Undefined array key "product_query_post_type" [array (
'trace' => '
#0: Elementor\Core\Logger\Manager -> shutdown()
',
)]
PHP: 2023-05-30 06:40:26 [warning X 12][/homepages/31/d829309062/htdocs/clickandbuilds/Redwire/wp-content/plugins/elementor/includes/conditions.php::87] Undefined array key "product_query_post_type" [array (
'trace' => '
#0: /homepages/31/d829309062/htdocs/clickandbuilds/Redwire/wp-content/plugins/elementor/includes/conditions.php(87): Elementor\Core\Logger\Manager -> rest_error_handler()
#1: /homepages/31/d829309062/htdocs/clickandbuilds/Redwire/wp-content/plugins/elementor/includes/base/controls-stack.php(1385): Elementor\Conditions :: check()
#2: /homepages/31/d829309062/htdocs/clickandbuilds/Redwire/wp-content/plugins/elementor/includes/base/controls-stack.php(1171): Elementor\Controls_Stack -> is_control_visible()
#3: /homepages/31/d829309062/htdocs/clickandbuilds/Redwire/wp-content/plugins/elementor/includes/base/controls-stack.php(1212): Elementor\Controls_Stack -> get_active_settings()
#4: /homepages/31/d829309062/htdocs/clickandbuilds/Redwire/wp-content/plugins/essential-addons-elementor/includes/Extensions/EAEL_Tooltip_Section.php(417): Elementor\Controls_Stack -> get_settings_for_display()
',
)]
PHP: 2023-06-02 10:22:04 [notice X 3][/homepages/31/d829309062/htdocs/clickandbuilds/Redwire/wp-content/plugins/elementor-pro/modules/custom-css/module.php::76] trim(): Passing null to parameter #1 ($string) of type string is deprecated [array (
'trace' => '
#0: Elementor\Core\Logger\Manager -> shutdown()
',
)]
== Elementor - Compatibility Tag ==
Elementor Pro: Compatible
Essential Addons for Elementor: Compatible
Essential Addons for Elementor - Pro: Compatible
Piotnet Addons For Elementor: Incompatible
Piotnet Addons For Elementor Pro: Compatible
Search & Filter - Elementor Extension: Incompatible
Ultimate Addons for Elementor: Compatible
== Elementor Pro - Compatibility Tag ==
Essential Addons for Elementor: Compatible
Essential Addons for Elementor - Pro: Compatible
Piotnet Addons For Elementor: Incompatible
Piotnet Addons For Elementor Pro: Compatible
Search & Filter - Elementor Extension: Incompatible
Ultimate Addons for Elementor: Compatible
````
</details>
Thanks Nick, I did see that but wasn’t 100% sure it was related to the same issue or resolved since it was posted back in June. I’m torn on if the issue is Elementor directly or something that’s just not firing when I run a site on Local vs. WPengine. It’s an odd one. Everything displays correctly on my host server, but I only get that error when running on Local.
Thanks though. Appreciate you looking! I’ll fire off the same question to the plugin developer as well.
-R
Nick-B
August 18, 2023, 10:00pm
4
I can check with the Devs on this as well but it might be worth running by Elementor also. Because it works on the live site but not in Local it makes me think that it could be a limitation somewhere. We’ve seen this come up with other Pro plugins in the past including Elementor where certain functions just don’t work the same or at all in Local vs a live site. Or they can only work on one site at a time because of the license. That’s kind of what this is smelling like to me but not 100% yet.