Show new version 1.0.1
Download 1.0.1 version
Show new version 1.0.1
But download 3.0.0(beta) version
PHP 7.2.10
Joomla 3.9.1
The problem is the function \Joomla\CMS\Update\Updater\Update::stabilityTagToInteger
==== START CHECK beta====
tag: beta
constant: \Joomla\CMS\Update\Updater::STABILITY_BETA
defined: bool(false)
==== START CHECK stable====
tag: stable
constant: \Joomla\CMS\Update\Updater::STABILITY_STABLE
defined: bool(false)
constant(): Couldn't find constant \Joomla\CMS\Update\Updater::STABILITY_BETA in <b>/xxx/libraries/src/Updater/Update.php</b> on line <b>555</b><br />
Attach update server xml if need
jupdate.zip
P.S The simplest solution is to abandon the constants. And use array
or swith
or if /elseif/else
Labels |
Added:
?
|
@Bakual Just for the sake of you checked. The result is the same. What is expected. Because the tag attribute is passed to this function, not the name
At the same time he believed in the presence of spaces. Everything is clear.
If use array it's as verry simple code etc
protected function stabilityTagToInteger($tag)
{
$tag = strtolower($tag);
$array = array('dev', 'alpha', 'beta', 'rc', 'stable');
return in_array($tag, $array) ? array_search($tag, $array) : 4;
}
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2018-12-22 16:41:19 |
Closed_By | ⇒ | Bakual |
Did you try what happens when you change the version from
3.0.0 beta1
to3.0.0beta1
(without space) or3.0.0.beta1
(dot instead of space)?And what happens when you omit the
1
at the end and just try withbeta
?Just to see if it's related to the version string somehow.