Pods issue causing Capabilities error
-
WP: 6.3.1, Pods: 3.0.4
Working on a Pods-based WP site with the Administrator account having all capabilities, I was suddenly unable to modify or publish new Posts. All CPT-based Pods showed the error “Sorry, you are not allowed to edit this item.”I started debugging by deactivating all plugins and themes, clear all caches (Pods cache, WP, and Nginx), reset server, reset computer, and re-checked the Administrator role as having all permissions/capabilities via Pods Roles&Capabilities. The debug log (define( ‘WP_DEBUG’, true )) does not reveal any errors. It seems my WP install is dutifully restricting content creation and access despite a user having full Capabilities and I don’t understand why.
I created a new WP local site and re-created the issue only after importing the Pods export json data from the original site. So, the issue seems to do with some configuration with the Pods CPTs
I deleted the CPT Pods and recreated them from scratch on the new test dev site, renewing functionality with the still-existing database data there.
Doing the same on the original site seemed to fix the Pods CPT access problem, but did not. Editing an existing Pods redirects to the Posts menu and the editing is not saved.Trying to add a new Pods CPT now throws an error:
“Deprecated: Return type of Pods\API\Whatsit\Value_Field::offsetExists($offset) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in \wp-content\plugins\pods\src\Pods\API\Whatsit\Value_Field.php on line 70”Also, on the original site my Administrator account still cannot edit Posts authored by that account even though Pods Roles&Capabilities still shows having all available Capabilities. That account can’t change the Category and if the content is changed or added, not even the new Draft is saved. Instead, the message at the top reads:
“The backup of this post in your browser is different from the version below. Restore the backup
This will replace the current editor content with the last backup version. You can use undo and redo in the editor to get the old content back or to return to the restored version.”Adding new Administrator and Editor role users experiences the same restrictions.
- The topic ‘Pods issue causing Capabilities error’ is closed to new replies.