Archived topic
Query Monitor reflects errors in the GeneratePress Elements Module
7 replies · Started by Michael Largue on March 21, 2019
I generally run Query Monitor on my sites to identify potential issues with other plugins on my site. Unfortunately, it is identifying PHP errors in the GP Premium plugin when I attempt to create or modify elements in the Elements module. Unfortunately, it appears that I cannot upload a screen image, so...
To replicate the problem, please install and activate Query Monitor, install and activate GP Premium, navigate to Appearance > Elements and click on Add New. Drill down on the Brown-highlighted Query Monitor status area of the Admin Bar to display the PHP errors.
Hi there,
I do all of the developing with Query Monitor active, and haven't noticed any issues.
Can you share one of the errors with me?
Thanks!
Hi Tom
Message Count Location
Component
Notice Undefined index: label 1
-
do_meta_boxes()
wp-admin/edit-form-advanced.php:638
GeneratePress_Elements_Metabox->element_fields()
wp-admin/includes/template.php:1306
wp-content/plugins/gp-premium/elements/class-metabox.php:1169
Plugin: gp-premium
Notice Undefined index: label 1
+
wp-content/plugins/gp-premium/elements/class-metabox.php:1194
Plugin: gp-premium
Notice Undefined index: label 1
+
wp-content/plugins/gp-premium/elements/class-metabox.php:1268
Plugin: gp-premium
Notice Undefined index: label 1
+
wp-content/plugins/gp-premium/elements/class-metabox.php:1293
Plugin: gp-premium
Regards
Michael
Do these go away if you deactivate all of your other plugins?
:) I knew that would be the next question, and I will go through the process, but as an FYI, GP Premium was the last plugin to be added. Get back to later.
Michael
Sounds good. I can't get those errors to happen, so I assume something is conflicting.
Let me know :)
Hi Tom
It would appear to be the Regions for WP Job Manager by Astoundify that is causing the problem. Thanks for the help.
Regards
Michael
Strange, I've added an additional check to prevent the notices in 1.8.0-alpha.2.
Thanks!