You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When the WordPress prefix changes, pods displays an error message in the WordPress admin area. Upon investigation, it looks like the WordPress prefix is hardcoded into the data saved for the metabox. Specifically in plugins\pods\classes\PodsMeta.php the $metabox parameter that is being passed to the PodsMeta->meta_post function has the WordPress prefix hardcoded into $metabox['args']['group']['fields'][{field_name}]->args['pick_object'].
Version
3.2.1
Testing Instructions
Data has to have been previously been saved in a field under a different WordPress prefix for this error to occur. In my case I the field was a simple dropdown field, but I assume it would happen with other fields too.
Screenshots / Screencast
And the error message as text:
WordPress database error: [Table 'local.ezxi_country' doesn't exist]
SELECT DISTINCT `t`.`id`, `t`.`name` FROM `ezxi_country` AS `t` ORDER BY `t`.`name`, `t`.`id`
Database Error; SQL: SELECT DISTINCT `t`.`id`, `t`.`name` FROM `ezxi_country` AS `t` ORDER BY `t`.`name`, `t`.`id`; Response: Table 'local.ezxi_country' doesn't exist
Possible Workaround
No response
Site Health Information
No response
Pods Package
No response
The text was updated successfully, but these errors were encountered:
I deleted both of the database entries (probably didn't need to do that) and then went through the 3 different simple field relationships that I had in my pod. For each one, I selected something else for the "related Type" field and then I selected "simple (custom defined list)" again. The "Custom Defined Options" textarea box now correctly showed up, and was blank. I added in some placeholder text into the box, hit save field and save pod, and that seems to have solved the problem for me. I no longer get the error message in the WordPress backend.
Description
When the WordPress prefix changes, pods displays an error message in the WordPress admin area. Upon investigation, it looks like the WordPress prefix is hardcoded into the data saved for the metabox. Specifically in
plugins\pods\classes\PodsMeta.php
the$metabox
parameter that is being passed to thePodsMeta->meta_post
function has the WordPress prefix hardcoded into$metabox['args']['group']['fields'][{field_name}]->args['pick_object']
.Version
3.2.1
Testing Instructions
Data has to have been previously been saved in a field under a different WordPress prefix for this error to occur. In my case I the field was a simple dropdown field, but I assume it would happen with other fields too.
Screenshots / Screencast
And the error message as text:
Possible Workaround
No response
Site Health Information
No response
Pods Package
No response
The text was updated successfully, but these errors were encountered: