The most typical reason is that your web server and WP CLI use different PHP runtimes. Then, for example, if you have Object Cache enabled web server might have proper access to it, but command line PHP might not.
This can create various out of sync kinks, if I remember right WP CLI have added checks that straight disable some functions for some of such scenarios.
Of course it’s just a general guess, which might not be your case. Practical troubleshooting would involve dumping the related data (such as value of related options and transient cache entries) in both contexts.
Related Posts:
- Adding a Taxonomy Filter to Admin List for a Custom Post Type?
- I found this in a plugin. What does it do? is it dangerous?
- How I prevent a plugin to be loaded when doing WP-CLI?
- Disable /wp-admin/plugin-install.php
- How to eliminate weird 404 errors in wp-admin?
- How to stop showing admin notice after close button has been clicked
- Is There a WordPress Hook to Filter the Edit Posts View?
- Run WP-CLI using PHP
- Reordering themes in admin panel
- Removing an admin page added by a 3rd party plugin. Gravity forms in this example
- Is there any record of installed plugins in the database?
- Difference between deactivating, uninstalling, and deleting plugins
- Best way to manage a lot of pages in Wp Admin [closed]
- Custom admin column disappearing when using Quick Edit [duplicate]
- WordPress admin notice in plugin function
- Using tabs for wordpress plugin
- How do I add to the list table a filter?
- Getting Custom Post Type content from main-site of a Multisite
- How can I list only sites that use a particular theme or plugin?
- how to not show plugin in admin area
- How to make a WP admin button/menu similar to Jetpack Notifications?
- Getting “Fatal error: Call to undefined function wp_cache_get() in option.php” after updating a cache plugin [closed]
- How Restrict access to admin dashboard by specific static ip?
- Hide Theme options and Customize Admin menu
- Making menu link open in new tab?
- After activating a Plugin, /wp-admin is no longer accessible
- Function to prevent users from trashing comments
- How to Sort the Favorite Plugins Screen Alphabetically?
- Hide extra menus from WordPress Dashboard
- How to provide a plugin which requires CMB2 (plugin dependencies)?
- ‘wp_login’ action hook not working with wp-login.php file
- WordPress takes too much time (100 seconds) to load – Front end and back end
- WordPress on AWS with ELB
- Error when setting up phpunit tests with wp-cli scaffold
- Edit default comments page in WP Admin
- All Users > User List > Update User Meta Field Inline
- Is there an easy way to flag posts in the admin area?
- Default WordPress WP Editor removing style tags and html tag
- Is it possible make a back-end for WordPress with WordPress?
- Dynamic admin submenu
- Remove ‘Check Compatibility’ from Plugins menu
- Network activating; if ( !current_user_can( ‘manage_options’ ) ) locks me out…
- How to make multiple admin pages for one plugin?
- $wpdb update query in plugin only updating one column
- Locked out of admin panel after installing HC Custom WP-Admin URL [closed]
- Display Plugin Panels Outside of Admin Areas
- Change the layout of action links under the plugin names
- getting notifications about updates only in the “core” page
- Redirect Plugins.php to New Plugin Page
- Mowing site to another domain in simplest way
- Why are plugin settings not all nested in one place?
- WordPress as heavily personalized content management portal, and somewhat like dropbox [closed]
- Edit page header on a custom plugin
- I cannot include a file in my plugin settings page
- Error activating certain plugins
- Can’t save changes or modify settings in Dashboard but Pages and Posts are fine
- Change Dashboard URL from wp-admin to wp-admin/index.php
- Elementor pro page editing gives error There has been a critical error on this website. Please check your site admin email inbox for instructions
- how to move a plugin-block in Edit Post page back to bottom area?
- force logged in user to stay in the dashboard
- wp_post not working, keeps redirecting to posts page
- WordPress fatal error from php protocol codes
- How can we get this dynamically as this folder may not be by the same name always → wp-admin
- Calling PHP function with AJAX
- Circumvent WP CLI Command
- Failed GET Request From admin.php To Fetch .min.js File From Unminifed Directory
- Get full URL of WP plugin admin page
- WordPress Admin login redirect to homepage
- WordPress Plugin PHP Not Calling Function
- Is admin section completely customizable in terms of styling?
- Admin login substantially slower on production server
- wordpress plugin translation not working
- How can I share my wordpress site with a friend?
- Continous audio play in pages
- Set plugin page as homepage
- Disable plugin on admin page
- The Commercial tab is missing from the Plugins page when trying to update Types 1.7
- Admin Logged In Notify Globaly
- wp-admin will not redirect to wp-login.php
- Getting 404 page not found error while trying to access add new plugin / themes
- getpost content with all formatting for admin pages
- Plugin (smart archives reloaded) crashed site / no access on admin panel
- Which filters or actions involve with index page for plugin?
- Ajax in Plugins: returns the whole page
- Gutenberg: Dynamic Block – Show saved data in the editor
- How do I add custom fields to the “Edit page” admin screen?
- ERROR: Cookies are blocked due to unexpected output – no access to FTP
- Mixed content warning on doctype in admin
- Child Plugin Admin Panel
- Ajax in wordpress [duplicate]
- Notifications Bar on home page only
- List all posts in a particular page [closed]
- WordPress Plugin and other pages not opening
- The Admin page isn’t showing in the sidebar of the dashboard
- warning wp session
- Submitting form to admin-post.php WordPress
- /wp-admin/plugins.php takes ages to load, and then 404s
- Stop the user if login from the cookies
- Plugin for better Backend Search? [closed]
- Show only those pages that are created by the specific logged in user in WordPress