Seite 1 von 1

Bugs in class.pimpluginview.navsub.php

Verfasst: Di 14. Aug 2018, 08:30
von Faar
Problem 1:
PHP Fatal error: Uncaught Error: [] operator not supported for strings in /contenido/plugins/pim/classes/view/class.pimpluginview.navsub.php:345
Weil in Zeile 307 steht: $founded = "";
Lösung: $founded = array();

Problem 2:
PHP Warning: count(): Parameter must be an array or an object that implements Countable in /contenido/plugins/pim/classes/view/class.pimpluginview.navsub.php on line 151

Lösung:

Code: Alles auswählen

$countableNav = $xmlPluginXml->contenido->nav_sub->nav;
if(!empty($countableNav)){ 
   $this->_NavCount = count($countableNav); 
}else{ 
   $this->_NavCount = 0; 
}

Re: Bugs in class.pimpluginview.navsub.php

Verfasst: Mo 20. Aug 2018, 16:25
von farina
Super Faar,
das hat bei mir geklappt. Die Inhalte des Plugin-Managers wurde nicht mehr angezeigt und ich hatte die von dir beschriebene Fehlermeldung.
Nach der Dateiänderung sehe ich die Inhalte wieder.
Danke!!! Du machst mich glücklich. :D
farina

Re: Bugs in class.pimpluginview.navsub.php

Verfasst: Mo 20. Aug 2018, 17:35
von Faar
:)