-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[4.4] update does nothing #42034
Comments
@brianteeman In section „Actual result“ you wrote:
I assume you meant „we can’t find”. |
There was an attempt to fix it but it was given up: #38799 . The issue was reported in past with #38694 , which was closed when the PR mentioned above was created, but it was not reopened when that PR was closed. As far as I can see, that PR would not have solved the issue when the current installation meets the requirements but the updated site would not, and it checked the requirements of the database driver, which are lower than those of the CMS. |
Also DB version check would be good, |
@Fedik Problem with DB version check is that currently we have the information about the DB requirement of the CMS only in the installation folder in the DatabaseHelper and in the XML files of the update server, but nowhere in a regular installation locally. The check with the minimum version required by the framework's database driver results in a lower requirement. |
We probably can hardcode it somewhere, in update script/model/view or controller, |
For the PHP version it is hardcoded in the index.php files in the root, in administrator and in installation. |
Maybe something what you made in #41757 or to what we did with log: joomla-cms/administrator/components/com_joomlaupdate/src/Controller/UpdateController.php Lines 262 to 269 in 2c39a7a
Having something like
Hmhm, but can be tricky |
|
Ah no, I mean a new method |
Hm, but we already have it https://update.joomla.org/core/test/extension_test.xml
It just not processed/validated, only check for type
Okay, so it seems just need one more method and option for the overview list :) |
@brianteeman I not sure now, where the issue is, when I example modify the requirement to php 9, then it shows me failed "check". |
This helps only if the update site is reachable and an update would be found. |
Hmm I think @Fedik is right and we can do something here. I was confused by my daily work. And now I am tired, was a hard day for me. Will check tomorrow what we can do, if Fedir is not faster. |
@richard67 here is for DB version check: |
@Fedik there are checks taking place at different times in the process. If your site is running php 7.x and you try to update it reads the xml it looks for an entry on the update server for that php version. If it doesnt find one then it reports no url found |
Ah, I understood now, the issue that it does not show anything usefull, and user may think that there is no update. |
The issue that joomla-cms/administrator/components/com_joomlaupdate/src/Model/UpdateModel.php Lines 307 to 308 in 8871a7b
return empty result when PHP or DB is incompatible, so we cannot even get the information whether there any incompatibility. joomla-cms/libraries/src/Updater/Update.php Lines 345 to 400 in 1e7527b
|
exactly |
I have done what I can to raise this important issue and request that it is a release blocker. I can only do so much. |
As far as I remember there was once in 4.x made an optimization for the Joomla Updates Quick Icon. Maybe that's the reason that it shows an available update when the Joomla Update component doesn't find one? The PHP and database requirements are in the details XML file of the update site. If the quickicon doesn't check the details xml but only the list XML (where we also have the There are 2 possible ways out without having to rewrite the complete updater library for that case:
So or so it is an old problem not introduced with 4.4 or 5.0 so I wouldn't say it's a release blocker. |
That just moves the problem - user hears about a new version but their site makes no mention of the update and they dont know why
Of course its a new problem. We didnt have a higher version of php or joomla as a requirement before. But it seems everyone thinks it is acceptable to hide the availability of an update without explaining why. |
I think Quickicon should do the same as Component do. At current point: "show nothing" when compatible update did not found. joomla-cms/administrator/components/com_joomlaupdate/src/View/Joomlaupdate/HtmlView.php Lines 176 to 177 in d38a8ff
Then we should look how to improve it. What Currently I have no idea how it can be done.
If I right remember, it was the same for 3 to 4 update. |
I remember the same. |
I dont' I am sure it came in when the emptystate code was added in j4 |
but whichever is the case it doesnt resolve the problem |
Is this an acceptable quick fix ?? chrome_2023-10-09_14-03-39.mp4 |
I would think yes, but to be sure I'd like to see the code. |
No code - just a string edit
|
Looks not bad.
|
I see. So it's shown always when no update found. |
Not realy, it will be shown when Update available, but download URL is empty: joomla-cms/administrator/components/com_joomlaupdate/src/View/Joomlaupdate/HtmlView.php Lines 192 to 194 in d38a8ff
|
Ah. |
Maybe the message could refer to the documentation? We could e.g. add to the end:
|
agreed - it was just as poc of course it needs to be a link to a page with actual content ;) |
I will wait for a release lead approval before making a pr |
@brianteeman Currently the page for which I suggested the link is empty, but it says it will be updated soon and it links to the developer docs with the right info, so I think we still can use that and not the developer docs link which we later might have to change back. |
please test #42103 |
Can this issue be closed as we have a PR? OR is something remaining to be done? |
i just hadnt pressed the button yet - you were too fast |
Steps to reproduce the issue
with a php version LESS than 8.1
install and configure joomla 4.4
set the update url to https://update.joomla.org/core/nightlies/next_major_list.xml
check for updates
Expected result
something happens. Probably an error message about not having the required php version. OR more helpfully the preinstall check shows exactly what the problem is. Otherwise it does make the very first check redundant as you can only see that if you are already compliant
Actual result
Generic we can not find an update url message. No mention at all that its because the site doesnt match the requirements for 5.0. Especially confusing because the dashboard says a new version is available.
System information (as much as possible)
Additional comments
The text was updated successfully, but these errors were encountered: