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
- Why is it important to deactivate a plugin before deleting it?
- How to Add a Third Level Sub Menu to the WordPress Admin Menu
- How to export comments in WordPress?
- How to eliminate weird 404 errors in wp-admin?
- How to stop showing admin notice after close button has been clicked
- Where are plugins located
- Admin menu as submenu from another plugin
- Is There a WordPress Hook to Filter the Edit Posts View?
- Run WP-CLI using PHP
- Why does WordPress require a ftp server to be running on the webserver to transfer plugins?
- Reordering themes in admin panel
- WordPress Admin is displaying Not Available
- 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
- Add content to /wp-admin/plugin-install.php admin screens
- Best way to manage a lot of pages in Wp Admin [closed]
- Plugin: How to make links in admin page open up inside of the admin panel
- Custom admin column disappearing when using Quick Edit [duplicate]
- Can’t install local plugin (zip) with wp-cli [closed]
- WordPress admin notice in plugin function
- WP WC CLI – WooCommerce setup store with wp-cli [closed]
- Using tabs for wordpress plugin
- How to remove/hide action links cluttering under specific plugins’ names
- How do I add to the list table a filter?
- Getting Custom Post Type content from main-site of a Multisite
- Adding Visibility Options
- How can I list only sites that use a particular theme or plugin?
- Plugin Development: WordPress processes twice on post update. How to skip process on the first?
- how to not show plugin in admin area
- “Are you sure you want to do this?” when deactivating all plugins in WordPress 4.3.1 [closed]
- 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?
- Questions about brute force attacks on the admin username, coming from amazon IP addresses
- Edits to plugin not taking effect
- How could I execute my plugin just in frontend (not in backend)
- Can’t see login page after migration
- Custom height/width for thickbox in WP Backend
- The Commercial tab is missing from the Plugins page when trying to update Types 1.7
- Admin Logged In Notify Globaly
- Disable default posts (Posts,Pages,Comments and Media) in wp-admin
- Ajax return 0 in plugin – ajax only used in wp-admin
- wp-admin will not redirect to wp-login.php
- How to add php stylesheet to admin section instead of admin_head hook
- Getting 404 page not found error while trying to access add new plugin / themes
- All plugins deactivated. What could cause this?
- 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?
- How to activate/deactivate menu tab and keep the same id?
- Making plugin to use different table prefix cause permission problem
- Add custom fields in the new and edit the site forms without touching the WP core
- Ajax in Plugins: returns the whole page
- Gutenberg: Dynamic Block – Show saved data in the editor
- Get post id in Post Page within Wp-admin
- AdBlock blocks my non-advertising sidebar images [closed]
- Combining JS files to one script
- How do I add custom fields to the “Edit page” admin screen?
- Screen Options drop-down does not show
- 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]
- plugin translations not reflected in admin dashboard
- How to display content depending on the Woocommerce Product Category
- Allow direct access to files/folders within WordPress to replace wp-admin
- WordPress Plugin and other pages not opening
- The Admin page isn’t showing in the sidebar of the dashboard
- warning wp session
- Disappearing plugins
- WordPress website is redirecting on some different shopping page
- PHP FATAL ERROR
- 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
- Why WP CLI command is not visible in VIP CLI
- Fatal Error in my WP “Call to undefined function get_option()”
- Secure way to add JS Script to WordPress filesystem
- Not applying update field (acf) in my plugin
- search by meta field in the regular WordPress admin panel search
- Force post update with React
- Form submission issue in wordpress admin (custom plugin) using $_GET for searching & filtering
- redirect logged users to custom front-end insetad of wp-admin
- What is the best way to ignore wordpress administration using add_filter($title) also when Ajax request
- How do I output translated text strings on edit screens
- 403 forbidden error in the admin panel as well as on the admin-ajax.php file
- Search result page admin panel – display values from the result’s metaboxes
- The sidebar in wp-admin dashboard disappears when viewed on mobile screens in WordPress
- Plugin for better Backend Search? [closed]
- media_sideload_image only works on localhost and without return id or src
- Show only those pages that are created by the specific logged in user in WordPress
- Prevent WordPress Link Editor from Automatically Adding “http://”
- Shipping Refund via Stripe Creates New Order Instead of Updating Original Order