Avatar of Marco Gasi
Marco GasiFlag for Spain

asked on 

WordPress website with no update

Hi everybody.
I just acquired a client who already have a website. I should mantain the website, after having already removed a virus (this alloed me to acquire the client).

Now I have realized that nor WordPress nor themes nor plugins get updates: I don't mean I can't install updates. Simply the updates are not detected.

The installed version of WordPress is 5.3.2 and the update page claim I already have the last version of WordPress!

The same is tru for the plugins: they all are outdated but none get update notice.

My suspect is that the developer had blocked updates some way to avoid problems with eventual conflicts between the theme and updates plugins. But this is not the problem.

I have no idea what I have to look at to unblock updates: There is some hidden setting which can cause this odd behavior? Or can a developer write some code?

Thank you in advance for any idea :)
WordPress

Avatar of undefined
Last Comment
Robert Granlund
Avatar of Andrew Porter
Andrew Porter
Flag of United States of America image

Is there a plug-in installed that is controlling/disabling all WP updates?

Did you check the wp-config.php file to see if the udpates where disabled there?
  • Look for 
    • define( 'WP_AUTO_UPDATE_CORE', false ); 
    • add_filter( 'auto_update_plugin', '__return_false' );
    • add_filter( 'auto_update_theme', '__return_false' );

That's where I would start.
Avatar of Scott Fell
Scott Fell
Flag of United States of America image

Also check if the site is hosted on Plesk, CPanel or other panel that has a special Wordpress manager. I know that Plesk can use this and that could block things too.
Avatar of Marco Gasi
Marco Gasi
Flag of Spain image

ASKER

Thank you Andrew for trying to help.
Unfortunately, in wp-config.php there's nothing like that.
Avatar of Marco Gasi
Marco Gasi
Flag of Spain image

ASKER

Hello Scott. Thank you to you too.
No it is not on Plesk it is on IONOS and before it was on another platform, so the issue shouldn't be related with this...
Avatar of Andrew Porter
Andrew Porter
Flag of United States of America image

Did you also look at currently installed plug-ins to see if there is a plug-in preventing udpates?
Avatar of Marco Gasi
Marco Gasi
Flag of Spain image

ASKER

Yes but I didn't notice any suspect plugin...
Probably I have to run a text search both aghainst files and database looking for something like you told me about the wp-config.php
ASKER CERTIFIED SOLUTION
Avatar of Robert Granlund
Robert Granlund
Flag of United States of America image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
Avatar of Marco Gasi
Marco Gasi
Flag of Spain image

ASKER

Hey Robert, you're my man!
// hide update notifications
function remove_core_updates(){
global $wp_version;return(object) array('last_checked'=> time(),'version_checked'=> $wp_version,);
}
add_filter('pre_site_transient_update_core','remove_core_updates'); //hide updates for WordPress itself
add_filter('pre_site_transient_update_plugins','remove_core_updates'); //hide updates for all plugins
add_filter('pre_site_transient_update_themes','remove_core_updates'); //hide updates for all themes

Open in new window

I'll study those functions.
Thank you so much!
Avatar of Marco Gasi
Marco Gasi
Flag of Spain image

ASKER

And thank you all for trying to help me, guys.
@marco, it was just a matter of time before some suggested this too you.  However, you are very welcome.
WordPress
WordPress

WordPress is a free and open-source content management system (CMS) based on PHP and MySQL for creating websites and blogs. Features include a plugin architecture, a template system and strong management, customization and search systems; through its dynamic presentation of content, webmasters have the flexibility to create websites easily.

11K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo