End of Support for Joomla 3 - Forum closed
Fehlermeldung in updater.php
Ich habe beim lokalen Aufrufen der Website (Joomla Version: 3.8.1, php-Version: 7.2.12, Template: Perfect) diese Fehlermeldung:
Fehler: Warning: count(): Parameter must be an array or an object that implements Countable in C:\xampp\htdocs\cbt\libraries\src\Updater\Updater.php on line 284
Dies betrifft den Teil in der php-Datei:
// Version comparison operator.
$operator = $includeCurrent ? 'ge' : 'gt';
if (is_array($update_result))
{
// If we have additional update sites in the remote (collection) update XML document, parse them
if (array_key_exists('update_sites', $update_result) && count($update_result))
{
$thisUrl = trim($updateSite);
$thisId = (int) $updateSite;
foreach ($update_result as $extraUpdateSite)
{
$extraUrl = trim($extraUpdateSite);
$extraId = (int) $extraUpdateSite;
// Do not try to fetch the same update site twice
if (($thisId == $extraId) || ($thisUrl == $extraUrl))
{
continue;
}
$extraUpdates = $this->getUpdateObjectsForSite($extraUpdateSite, $minimum_stability);
if (count($extraUpdates))
{
$retVal = array_merge($retVal, $extraUpdates);
}
}
}
Fehler: Warning: count(): Parameter must be an array or an object that implements Countable in C:\xampp\htdocs\cbt\libraries\src\Updater\Updater.php on line 284
Dies betrifft den Teil in der php-Datei:
// Version comparison operator.
$operator = $includeCurrent ? 'ge' : 'gt';
if (is_array($update_result))
{
// If we have additional update sites in the remote (collection) update XML document, parse them
if (array_key_exists('update_sites', $update_result) && count($update_result))
{
$thisUrl = trim($updateSite);
$thisId = (int) $updateSite;
foreach ($update_result as $extraUpdateSite)
{
$extraUrl = trim($extraUpdateSite);
$extraId = (int) $extraUpdateSite;
// Do not try to fetch the same update site twice
if (($thisId == $extraId) || ($thisUrl == $extraUrl))
{
continue;
}
$extraUpdates = $this->getUpdateObjectsForSite($extraUpdateSite, $minimum_stability);
if (count($extraUpdates))
{
$retVal = array_merge($retVal, $extraUpdates);
}
}
}
by cbt
Please Log in or Create an account to join the conversation.
- joomlaplates
- Offline
- Moderator
- Posts: 8807
- Thank you received: 1732
Hat nichts mit dem Template zu tun.
www.joomlaportal.de/joomla-3-x-allgemein...-php-line-284-a.html
www.joomlaportal.de/joomla-3-x-allgemein...-php-line-284-a.html
Dokumentation:
www.joomlaplates.de/dokumentation.html
www.joomlaplates.de/dokumentation.html
by joomlaplates
Please Log in or Create an account to join the conversation.
Moderators: joomlaplates