Witam.
Zainstalowałem najnowsze wersje: Joomla i K2.
Ściągnąłem templatkę Takai i w PA widzę błędy:
Warning: SimpleXMLElement::attributes() [simplexmlelement.attributes]: Node no longer exists in /home/public_html/libraries/joomla/form/field.php on line 864
Warning: property_exists() [function.property-exists]: Node no longer exists in /home/public_html/libraries/joomla/form/field.php on line 867
Sprawdziłem i te błędy, to odpowiednio:
pierwszy
$attributes = $this->element->attributes();
Większy kawałek kodu:
public function getAttribute($name, $default = null)
{
if ($this->element instanceof SimpleXMLElement)
{
$attributes = $this->element->attributes();
i drugi
if (property_exists($attributes, $name))
Większy kawałek kodu:
// Ensure that the attribute exists
if (property_exists($attributes, $name))
{
$value = $attributes->$name;
if ($value !== null)
{
return (string) $value;
}
}
}
return $default;
}
Dodam jeszcze tylko, że update templatki też zainstalowałem, ale nie pomogło.
Błąd jest też widoczny bez K2, bo to też sprawdziłem.
Na forum znalazłem informacje o podobnych błędach - pomogła aktualizacja K2. Ja instalowałem nową wersję pobraną ze strony.
Z PHP jestem noga, więc ośmielam się prosić koleżanki i kolegów o pomoc