모든 플러그인이 이미 업데이트되어 있는 경우 WordPress에 플러그인 업데이트가 1개 있음을 표시함
모든 플러그인이 업데이트되면 WordPress에 플러그인 업데이트가 1개 있음을 나타냅니다.아래가 스크린샷입니다.제가 무슨 말을 하고 있는지 보실 수 있습니다.
WP의 재설치, Artiss Transient Cleaner를 사용한 과도기 삭제 등 여러 가지 시도를 해봤지만 효과가 없는 것 같습니다.이 부정/고스트의 플러그인이 없는 경우 업데이트를 요구하는 원인이 무엇인지 알고 계십니까?
프리미엄 플러그인과 액티베이션키가 필요한 테마를 사용하면, 이러한 현상이 자주 볼 수 있습니다.WP UI에서는 플러그인 또는 테마를 업데이트할 수 없지만 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' );
테마에 추가functions.php
파일링 후 다음 페이지를 방문합니다.?debug_updates
를 URL에 추가했습니다.다음은 예를 제시하겠습니다.yourdomain.example/wp-admin/?debug_updates
문제의 원인이 되고 있는 테마나 플러그인이 표시됩니다.
이 문제가 있었습니다.새로운 번역을 이용할 수 있게 되었습니다([Updates]페이지에서는 알 수 없습니다만,Update Translations
맨 아래);
트랜지션을 갱신한 후...경고는 사라졌다.
만료된 Yoast Premium 플러그인이 원인이 되어 대처하고 업데이트 문제를 해결했습니다.
URL에 매개 변수를 추가할 필요가 없는 Kevin의 답변을 약간 수정한 버전입니다.플러그인, 테마 및 번역 직후에 업데이트 코어에 접속하여 업데이트 목록을 표시할 수 있습니다.
/**
* 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' );
대부분의 경우 프리미엄 플러그인에서 발생합니다.따라서 알림이 사라지고 다시 반응할 때까지 플러그인을 하나씩 비활성화합니다.그럼 문제가 해결되겠지
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.
따라서 플러그인이 developper의 api에 접근하는 방법을 변경하는 경우가 매우 많습니다.
잘 부탁드립니다, 노버트
저는 이 문제를 경험했고 W3 Total Cache가 원인임을 알게 되었습니다.플러그인을 비활성화했다가 다시 활성화하면 문제가 해결되었습니다.단서는 이 포럼에 문의해 주십시오.
FTP 에 액세스 할 수 있는 경우는, 플러그 인 폴더를 조사해, Wordpress 에 표시되는 번호와 일치하는 X 번호가 있는 것을 확인합니다.고장난 것이 있을 수 있기 때문에 아직 검출 중이지만 포맷이 잘못되어 Wordpress에 표시되지 않습니다.
FTP 액세스 권한이 없는 경우에도 [Plugins]> [ Editor ]으로 이동하여 오른쪽 상단 구석에 있는 드롭다운을 보면 파일을 볼 수 있습니다.
언급URL : https://stackoverflow.com/questions/22137814/wordpress-shows-i-have-1-plugin-update-when-all-plugins-are-already-updated
'programing' 카테고리의 다른 글
단일 페이지 워드프레스를 나뭇가지로 렌더링하는 방법 (0) | 2023.03.18 |
---|---|
Angular에 사용자 지정 유효성 검사를 추가하는 방법JS폼? (0) | 2023.03.18 |
여러 Spring Boot 간에 테스트컨테이너를 재사용하는 방법테스트? (0) | 2023.03.18 |
메서드 매개 변수에서 WCF webHttpBinding 오류가 발생했습니다."래퍼 요소 없이 최대 하나의 본문 매개 변수를 직렬화할 수 있습니다." (0) | 2023.03.13 |
Woocommerce, 현재 제품 ID 가져오기 (0) | 2023.03.13 |