Notifications Wordpress显示我有1个插件更新,而所有插件都已更新

Notifications Wordpress显示我有1个插件更新,而所有插件都已更新,notifications,wordpress,Notifications,Wordpress,所以我在论坛上搜索过,虽然我发现一些人有类似的问题,但我仍然没有找到一种方法来解决这个问题。现在的情况是WordPress显示我有一个插件更新,当我的所有插件都更新时。下面是一个屏幕截图的imgur链接,您可以看到我在说什么: 现在,我已经尝试了几件事情,包括重新安装WP和使用删除瞬态,但似乎没有任何效果。有什么想法可能导致这个流氓/幽灵“插件”在没有更新时请求更新?谢谢,我感谢您的帮助。如果您有FTP访问权限,请查看插件文件夹,并确保您有X号,该号码与Wordpress中显示的号码匹配。也许

所以我在论坛上搜索过,虽然我发现一些人有类似的问题,但我仍然没有找到一种方法来解决这个问题。现在的情况是WordPress显示我有一个插件更新,当我的所有插件都更新时。下面是一个屏幕截图的imgur链接,您可以看到我在说什么:


现在,我已经尝试了几件事情,包括重新安装WP和使用删除瞬态,但似乎没有任何效果。有什么想法可能导致这个流氓/幽灵“插件”在没有更新时请求更新?谢谢,我感谢您的帮助。

如果您有FTP访问权限,请查看插件文件夹,并确保您有X号,该号码与Wordpress中显示的号码匹配。也许你有一个坏掉了,所以它仍然在检测中,但是它没有正确格式化,所以它没有显示在Wordpress中


如果您没有FTP访问权限,您仍然可以通过转到插件>编辑器并查看右上角的下拉列表来查看文件。

我遇到了这个问题,并发现W3 Total Cache是罪魁祸首。停用和重新激活插件可以解决问题。帽子尖上有一条线索

我有这个问题,是因为有一个新的翻译可用(这在更新页面中不明显,您必须进入底部的
更新翻译

更新交易后。。。警告消失了


我经常在需要激活密钥的高级插件和主题中看到这一点。wpui无论如何都不会提供更新插件或主题的功能,但是您会在UI中看到挂起的更新计数

为了追踪来源,我使用以下功能:

/**
 * Debug Pending Updates
 *
 * Crude debugging method that will spit out all pending plugin
 * and theme updates for admin level users when ?debug_updates is
 * added to a /wp-admin/ URL.
 */
function debug_pending_updates() {

    // Rough safety nets
    if ( ! is_user_logged_in() || ! current_user_can( 'manage_options' ) ) return;
    if ( ! isset( $_GET['debug_updates'] ) ) return;

    $output = "";

    // Check plugins
    $plugin_updates = get_site_transient( 'update_plugins' );
    if ( $plugin_updates && ! empty( $plugin_updates->response ) ) {
        foreach ( $plugin_updates->response as $plugin => $details ) {
            $output .= "<p><strong>Plugin</strong> <u>$plugin</u> is reporting an available update.</p>";
        }
    }

    // Check themes
    wp_update_themes();
    $theme_updates = get_site_transient( 'update_themes' );
    if ( $theme_updates && ! empty( $theme_updates->response ) ) {
        foreach ( $theme_updates->response as $theme => $details ) {
            $output .= "<p><strong>Theme</strong> <u>$theme</u> is reporting an available update.</p>";
        }
    }

    if ( empty( $output ) ) $output = "No pending updates found in the database.";

    wp_die( $output );
}
add_action( 'init', 'debug_pending_updates' );
/**
*调试挂起的更新
*
*粗糙的调试方法,将吐出所有挂起的插件
*和管理员级别用户的主题更新?调试_更新
*已添加到/wp admin/URL。
*/
函数调试\u挂起\u更新(){
//粗糙的安全网
如果(!is_user_logged_in()| |!current_user_can('manage_options'))返回;
if(!isset($\u GET['debug\u updates'])返回;
$output=“”;
//检查插件
$plugin_updates=get_site_transient('update_plugins');
if($plugin\u updates&&!empty($plugin\u updates->response)){
foreach($plugin\u updates->response as$plugin=>$details){
$output.=“插件$Plugin正在报告可用的更新。

”; } } //检查主题 wp_更新_主题(); $theme\u updates=get\u site\u transient('update\u themes'); 如果($theme\u updates&&!empty($theme\u updates->response)){ foreach($theme\u updates->response as$theme=>$details){ $output.=“主题$Theme正在报告可用的更新。

”; } } if(empty($output))$output=“在数据库中找不到挂起的更新。”; 可湿性粉剂模具(产量); } 添加_操作('init','debug_pending_updates');

将其添加到主题的
functions.php
文件中,然后访问添加了
?debug\u更新的页面。例如:yourdomain.com/wp admin/?debug\u更新。这将向您显示导致问题的任何主题或插件。

一个过期的Yoast Premium插件是罪魁祸首,因此我取消了它的激活和响应,从而解决了更新问题

稍微修改了Kevin的答案,不需要在URL中添加参数。它只需在插件、主题和翻译之后挂入更新核心,并显示更新列表

/**
 * Debug Pending Updates
 *
 * Displays hidden plugin and theme updates on update-core screen.
 */
function debug_pending_updates() {

  // Rough safety nets
  if ( ! is_user_logged_in() || ! current_user_can( 'update_plugins' ) || ! current_user_can( 'update_themes' ) ) return;

  $output = "";

  // Check plugins
  $plugin_updates = get_site_transient( 'update_plugins' );
  if ( $plugin_updates && ! empty( $plugin_updates->response ) ) {
    foreach ( $plugin_updates->response as $plugin => $details ) {
      $output .= "<p><strong>Plugin</strong> <u>$plugin</u> is reporting an available update.</p>";
    }
  }

  // Check themes
  wp_update_themes();
  $theme_updates = get_site_transient( 'update_themes' );
  if ( $theme_updates && ! empty( $theme_updates->response ) ) {
    foreach ( $theme_updates->response as $theme => $details ) {
      $output .= "<p><strong>Theme</strong> <u>$theme</u> is reporting an available update.</p>";
    }
  }

  if ( empty( $output ) ) $output = "No pending updates found in the database.";

  echo "<h2>Pending updates</h2>" . $output;
}
add_action( 'core_upgrade_preamble', 'debug_pending_updates' );
/**
*调试挂起的更新
*
*在更新核心屏幕上显示隐藏的插件和主题更新。
*/
函数调试\u挂起\u更新(){
//粗糙的安全网
如果(!is_user_logged_in()| |!current_user_can('update_plugins')| |!current_user_can('update_themes'))返回;
$output=“”;
//检查插件
$plugin_updates=get_site_transient('update_plugins');
if($plugin\u updates&&!empty($plugin\u updates->response)){
foreach($plugin\u updates->response as$plugin=>$details){
$output.=“插件$Plugin正在报告可用的更新。

”; } } //检查主题 wp_更新_主题(); $theme\u updates=get\u site\u transient('update\u themes'); 如果($theme\u updates&&!empty($theme\u updates->response)){ foreach($theme\u updates->response as$theme=>$details){ $output.=“主题$Theme正在报告可用的更新。

”; } } if(empty($output))$output=“在数据库中找不到挂起的更新。”; 回显“待定更新”。$output; } 添加操作(“核心升级序言”、“调试挂起更新”);
大多数情况下,它都是通过高级插件实现的。所以一个接一个地停用插件,直到通知消失并再次响应。然后问题就会解决。

我在Wordpress 5.0.1安装中也遇到了同样的问题。 在我的情况下,这一直是可怕的溢价插件导致这一点。 强大的支持团队也发出了一个信息,因为那边的情况发生了变化,他们的信息如下:

Hi ,

As some of you may know, we updated the licensing software on our
site a few months ago. This meant we had to move all of the
licensing information to a new format. Unfortunately, this caused
some of the custom site limits to be reduced for add-ons that
weren’t bundled with a grandfathered license. 

We had a few people understandably ask us about this. Our solution
was that they could manually upgrade to a bundle, which would solve
the problem.  

However, over the last month we were made aware that some people
were upset with the reduction in limits, but hadn’t contacted us
about it.  

As a result, we set to work and moved everyone with a Business or
Enterprise license over to a bundle that would automatically correct
the issue.  

I want to take this opportunity to apologize for the trouble we may
have caused, and that we didn’t realize sooner that so many people
had been negatively affected. I would also like to reassure you that
we never intend to remove a grandfathered benefit from your account.


I hope you were not among the group that lost faith in us over this
issue. While we will always aim to resolve issues as soon as they
occur, we would ask that if you ever run into another problem, that
you contact us about it first. That way, we can rectify the problem
and reduce the trouble it causes you.
因此,如果插件改变了开发人员的api的方式,这可能是非常常见的

致以最良好的祝愿,
诺伯特

刷新页面,看看它是否消失。这是我的问题,谢谢你指出。我完全错过了可用的翻译更新!伟大的剧本!它应该是在核心:)在我的情况下,是ACF捆绑在一个主题,导致神秘的更新!非常感谢您提供这么多代码。它非常方便。真不敢相信像这样的东西在Wordpress中是不标准的!很棒的代码凯文,谢谢你,这让我少了很多时间的沮丧!那么,到底需要采取什么措施来纠正这个问题呢?可以确认错误的更新计数g