SOLVED [CPANEL-23030] Wordpress site software update notice displays wrong version

marcuszan

Well-Known Member
Apr 19, 2018
63
5
8
Netherlands
cPanel Access Level
Root Administrator
Hi,

I receive an email suggesting I need to update my WP install >>
Code:
==============
In order to protect the security of your website, we recommend that you upgrade
the following scripts that were installed via the "Scripts Library" in your cPanel interface:

 - WordPressX.0 v4.9.7
   Location:  at http://domain.com/
   Latest: v4.9.8
   Upgrade here: https://domain.com:2083/frontend/paper_lantern/addoncgi/cpaddons.html?addon=cPanel%3a%3aBlogs%3a%3aWordPressX&action=upgrade&workinginstall=cPanel%3a%3aBlogs%3a%3aWordPressX.0.yaml
==============
However,

my WP version is v4.9.8

this is also shown when I login to cPanel and WP admin.
The WP install was done through the cPanel installer.

Any idea what goes wrong here?

Thanks.
 
Last edited:

cPanelLauren

Product Owner
Staff member
Nov 14, 2017
13,304
1,250
313
Houston
Hi @marcuszan

Can you show me what the version is noted as for the installation by running the following:

Code:
grep version cPanel::Blogs::WordPressX.0.yaml
Are there multiple WordPress installations for the account?

Thanks!
 

cPanelLauren

Product Owner
Staff member
Nov 14, 2017
13,304
1,250
313
Houston
Hi @marcuszan

That's entirely my fault I didn't give you the path to the file, I apologize for that. Please try this again with the following (replace $youruser with the username of the account experiencing the issue):

Code:
grep version /home/$youruser/.cpaddons/cPanel::Blogs::WordPressX.0.yaml
 

marcuszan

Well-Known Member
Apr 19, 2018
63
5
8
Netherlands
cPanel Access Level
Root Administrator
Hi Lauren,
this is result of your command
Code:
    "mysql-version": '5.7'
"mysql.wp.mysql-version": '5.7'
"version": '4.9.7'
"version_key": ~
In WP admin it says version v4.9.8

Thanks
 

cPanelLauren

Product Owner
Staff member
Nov 14, 2017
13,304
1,250
313
Houston
Hi @marcuszan

Perfect, thanks for providing that information. We do have a case open for this where the yaml file wasn't getting updated when WordPress was CPANEL-23030

I believe we can work around this by manually modifying that yaml to reference the "version" as 4.9.8

Can you let me know if that resolves the issue for you?

Thanks!
 

cPanelLauren

Product Owner
Staff member
Nov 14, 2017
13,304
1,250
313
Houston
Hi @marcuszan

Good catch! I didn't realize it was present twice, I'll add that information to the internal case. Yes, please change it in both spots and let me know if the issue persists.

Thanks!
 

cPanelLauren

Product Owner
Staff member
Nov 14, 2017
13,304
1,250
313
Houston
Hi @marcuszan

Perfect, definitely let us know if it persists. I'll also update this thread with any updates on the status of the internal case which is still open and unresolved at this time.


Thanks!
 

marcuszan

Well-Known Member
Apr 19, 2018
63
5
8
Netherlands
cPanel Access Level
Root Administrator
Hi,

Same issue again now.
Code:
In order to protect the security of your website, we recommend that you upgrade
the following scripts that were installed via the "Scripts Library" in your cPanel interface:

 - WordPressX.0 v4.9.8
    Location:  at http://domain.com/
    Latest: v5.0.2
cpanel and wp admin show I am running 5.0.2 but still I get this email
 

cPanelLauren

Product Owner
Staff member
Nov 14, 2017
13,304
1,250
313
Houston
Hello,


This case is not resolved at this time, my assumption is that the yaml file will have to get updated everytime wordpress is updated internally until the issue is resolved. I'll update here when CPANEL-23030 has been resolved.


Thanks!
 

marcuszan

Well-Known Member
Apr 19, 2018
63
5
8
Netherlands
cPanel Access Level
Root Administrator
@cPanelLauren

Thanks for the reply.
I will manually update the YAML file.

However, technically this shouldn't be very complicated to fix right ?
cPanel admin panel can read and thus shows the correct version.
Assuming permissions and ownership of YAML file are good, what would keep the script from updating the version info and writing it to the file ?