? ? ? Pending

User tests: Successful: Unsuccessful:

avatar zero-24
zero-24
14 Sep 2019

Pull Request for Issue #22421 (comment) reported by @infograf768

Summary of Changes

Add fallback for not complete manifest caches used in the pre-update checker

Testing Instructions

.- install 4.0-dev

  • install patchtester
  • go to the database and clear the field manifest_cache for the patchtester record in the extensions table.
  • set the nightly major update server
  • notice the pre update checker
  • notice that the pre update checker shows nothing as version for the patchtester and raises a notice
  • apply this patch
  • the updater now shows the string `Unknown version in this case and should not raise and notice any more.

Expected result

No errors; After the patch the pre-update checker shows Unknown version before that info was just missing / empty.

Actual result

Notice: Trying to get property 'version' of non-object in .../administrator/components/com_joomlaupdate/Model/UpdateModel.php on line 1357

And an empty version info for that extension.

Additional steps

avatar zero-24 zero-24 - open - 14 Sep 2019
avatar zero-24 zero-24 - change - 14 Sep 2019
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 14 Sep 2019
Category Administration com_joomlaupdate Language & Strings
avatar zero-24 zero-24 - change - 14 Sep 2019
Labels Added: ? ?
avatar richard67 richard67 - test_item - 15 Sep 2019 - Tested successfully
avatar richard67
richard67 - comment - 15 Sep 2019

I have tested this item successfully on 36dd0e7


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/26293.

avatar richard67 richard67 - change - 15 Sep 2019
The description was changed
avatar joomla-cms-bot joomla-cms-bot - edited - 15 Sep 2019
avatar Quy
Quy - comment - 15 Sep 2019

Will you do another PR for the following?

PHP Notice: Trying to get property 'version' of non-object in \administrator\components\com_installer\Model\DatabaseModel.php on line 490

avatar infograf768
infograf768 - comment - 16 Sep 2019

@Quy
How to reproduce that error for DatabaseModel ?

avatar infograf768
infograf768 - comment - 16 Sep 2019

@zero-24
We have also

Notice: Undefined property: stdClass::$version in /Applications/MAMP/htdocs/installmulti/joomla40/administrator/components/com_installer/tmpl/manage/default.php on line 108

Notice: Undefined property: stdClass::$version in /Applications/MAMP/htdocs/installmulti/joomla40/administrator/components/com_installer/tmpl/manage/default.php on line 124

This shows in Extensions=>Manage for the Sample Data Testing plugin

avatar infograf768
infograf768 - comment - 16 Sep 2019

These means that we may need a more general string for "Unknown version" as it can be used with exactly the same value in com_installer, including for this PR. Maybe JGLOBAL_UNKNOWN_VERSION="Unknown Version"

avatar Quy
Quy - comment - 16 Sep 2019

@infograf768 Go to System > Update > Joomla > Pre-Update Check

avatar zero-24
zero-24 - comment - 22 Sep 2019

Well the deeper problem is why is the manifest cache not up-to-date, has this been reproduced in a live site too? This is just a hot fix not fixing the real cause of the problem.

avatar Wolf-Rost Wolf-Rost - test_item - 19 Oct 2019 - Tested successfully
avatar Wolf-Rost
Wolf-Rost - comment - 19 Oct 2019

I have tested this item successfully on 36dd0e7


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/26293.

853ae6a 29 Oct 2019 avatar zero-24 PHPCS
e44cf7a 31 Oct 2019 avatar zero-24 PHPCS
avatar vijaykhollam vijaykhollam - test_item - 2 Nov 2019 - Tested successfully
avatar vijaykhollam
vijaykhollam - comment - 2 Nov 2019

I have tested this item successfully on e44cf7a
#pbf19 #test1


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/26293.
avatar zero-24 zero-24 - change - 18 Dec 2019
Status Pending Ready to Commit
avatar wilsonge
wilsonge - comment - 11 Jan 2020

Can you fix conflicts please?

avatar richard67
richard67 - comment - 11 Jan 2020

@zero-24 It just needs to rename file administrator/language/en-GB/en-GB.com_joomlaupdate.ini to administrator/language/en-GB/com_joomlaupdate.ini.

avatar zero-24 zero-24 - change - 11 Jan 2020
Labels Added: ?
avatar zero-24
zero-24 - comment - 11 Jan 2020

Done @wilsonge thanks @richard67

avatar wilsonge wilsonge - close - 11 Jan 2020
avatar wilsonge wilsonge - merge - 11 Jan 2020
avatar wilsonge wilsonge - change - 11 Jan 2020
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2020-01-11 17:13:15
Closed_By wilsonge
avatar wilsonge
wilsonge - comment - 11 Jan 2020

Thanks!

Add a Comment

Login with GitHub to post a comment