-
-
Notifications
You must be signed in to change notification settings - Fork 272
Closed
Copy link
Description
Description
PHP warnings are raised when saving a post that has a relationship field with the option "Sync associated taxonomy with this relationship" enabled. This option is available only for fields related to taxonomies. The taxonomy sync works as expected, but the log file gets flooded with warnings.
[15-Jan-2026 20:42:27 UTC] PHP Warning: Trying to access array offset on null in /var/www/html/wp-content/plugins/pods/classes/fields/pick.php on line 1974
[15-Jan-2026 20:42:27 UTC] PHP Warning: Trying to access array offset on null in /var/www/html/wp-content/plugins/pods/classes/fields/pick.php on line 1975
[15-Jan-2026 20:42:27 UTC] PHP Warning: Trying to access array offset on null in /var/www/html/wp-content/plugins/pods/classes/fields/pick.php on line 2003
[15-Jan-2026 20:42:27 UTC] PHP Warning: Trying to access array offset on null in /var/www/html/wp-content/plugins/pods/classes/PodsAPI.php on line 6317
[15-Jan-2026 20:42:27 UTC] PHP Warning: Trying to access array offset on null in /var/www/html/wp-content/plugins/pods/classes/PodsAPI.php on line 6320
[15-Jan-2026 20:42:27 UTC] PHP Warning: Trying to access array offset on null in /var/www/html/wp-content/plugins/pods/classes/PodsAPI.php on line 6323
[15-Jan-2026 20:42:27 UTC] PHP Warning: Trying to access array offset on null in /var/www/html/wp-content/plugins/pods/classes/PodsAPI.php on line 6326
[15-Jan-2026 20:42:27 UTC] PHP Warning: Trying to access array offset on null in /var/www/html/wp-content/plugins/pods/classes/PodsAPI.php on line 6341
[15-Jan-2026 20:42:27 UTC] PHP Warning: Trying to access array offset on null in /var/www/html/wp-content/plugins/pods/classes/PodsAPI.php on line 6343
[15-Jan-2026 20:42:27 UTC] PHP Warning: Trying to access array offset on null in /var/www/html/wp-content/plugins/pods/classes/PodsAPI.php on line 6352
[15-Jan-2026 20:42:27 UTC] PHP Warning: Trying to access array offset on null in /var/www/html/wp-content/plugins/pods/classes/PodsAPI.php on line 6359
[15-Jan-2026 20:42:27 UTC] PHP Warning: Trying to access array offset on null in /var/www/html/wp-content/plugins/pods/classes/PodsAPI.php on line 6385
[15-Jan-2026 20:42:27 UTC] PHP Warning: Trying to access array offset on null in /var/www/html/wp-content/plugins/pods/classes/PodsAPI.php on line 6397
[15-Jan-2026 20:42:27 UTC] PHP Warning: Trying to access array offset on null in /var/www/html/wp-content/plugins/pods/classes/PodsAPI.php on line 6451
[15-Jan-2026 20:42:27 UTC] PHP Warning: Trying to access array offset on null in /var/www/html/wp-content/plugins/pods/classes/PodsAPI.php on line 6452
Version
3.3.4
Testing Instructions
- Create a taxonomy.
- In a Custom Post Type, go to the Connections tab and enable a connection to the created taxonomy.
- Create a new field in the custom post type. Choose "Relationship" for Field Type and select the created taxonomy as the Related Type.
- In Relationship Options, enable the option "Sync associated taxonomy with this relationship".
- Create a new post of Custom Post Type. Publish and Update the post.
Screenshots / Screencast
No response
Possible Workaround
In pick.php, the code to handle taxonomy syncing (2047 - 2073) can be moved above handling bi-directional updates (starting at line 1969). Add a return in the outer if statement so that fields related to taxonomies don't continue.
Site Health Information
Pods Package
Reactions are currently unavailable