Admin can’t add or update post
-
As admin with full capabilities, I can’t add a new or edit my custom post type! What I can do is use Quick Edit on the list of posts, use Gravity Forms to create a post, and edit the post as the author on the front-end.
Here is what I’ve tried:
-Enabled Roles and Capabilities then made sure Administrator had all capabilities checked… No go!
-Added this code to Snippets Plugin (functions.php) –
add_filter("pods_admin_capabilities", function ($pods_admin_capabilities, $cap) { $pods_admin_capabilities[] = "administrator"; return $pods_admin_capabilities; }, 10, 2);
… No go!
-Then tried this code to Snippets Plugin (functions.php) –
function access_for_all_admins( $access ) { if ( !$access && current_user_can( 'manage_options' ) ) { $access = true; } return $access; };
…No go!
-Then tried this code to Snippets Plugin (functions.php) –
add_filter( 'pods_is_admin', 'slug_let_admins_admin', 10, 3 ); function slug_let_admins_admin( $has_access, $cap, $capability ) { $capability = 'admin'; return $capability; }
…No go!
-Tried all the above codes with Roles and Capabilities enabled & disabled… No go!
-First I tried the typical plugin conflict scenario; disable all plugins but PODS and tried with generic theme… No go!
I’ve combed the Web for permissions problems for PODS and just WordPress, have gone through the code with bugged out eyes. At this point I’m probably missing something simple.
I believe the update to latest wordpress caused the problem; however, many updates happened at the same time and the client updated without telling me, so I don’t know what caused it. Finally, here is a very specific account to what occurs:
As Admin I can click on the post from the list in the admin panel. I can see everything on the edit screen. I can change values. I can click the “Update” button, but nothing happens. When I click the preview button, the spinny icon next to the “Update” button appears, but then the whole saving/updating process freezes. I can’t add a new post from the admin panel. Hopefully, that clears up the situation.
Has anyone had this problem and solved it? I can provide a support login to PODS Devs if needed.
- The topic ‘Admin can’t add or update post’ is closed to new replies.