Seite 1 von 1
Parse error Contenido_FrontendNavigation_Breadcrumb.class.ph
Verfasst: Mo 21. Apr 2008, 21:32
von rob2006
Hallo Contenido Community!
Ich habe die neuste Version von Contenido installiert.
Leider bekomme ich folgenden Fehler:
Parse error: parse error, unexpected T_ARRAY, expecting '&' or T_VARIABLE in /srv/www/xxx/httpdocs/contenido/classes/Contenido_FrontendNavigation/Contenido_FrontendNavigation_Breadcrumb.class.php on line 53
Hat jemand eine Idee an was das liegen kann???
Ich danke im Voraus für Hilfe.
Gruß
Rob
Auf meinem Server ist folgendes installiert bzw. konfiguriert:
Server Betriebssystem Apache/2.0.54 (Linux/SUSE)
PHP database extension mysql
Datenbankserver-Version 4.1.13
Installierte PHP-Version 5.0.4
safe_mode Aktiviert
magic_quotes_gpc Deaktiviert
magic_quotes_runtime Deaktiviert
Gettext extension geladen
Verfasst: Mo 21. Apr 2008, 23:10
von HerrB
Ich fürchte, dass die PHP-Version noch zu alt ist:
PHP 5 introduces Type Hinting. Functions are now able to force parameters to be objects (by specifying the name of the class in the function prototype) or arrays (since PHP 5.1).
Zeile 53 enthält den Konstruktor
Code: Alles auswählen
public function __construct(DB_Contenido $oDb, array $aCfg, $iClient, $iLang, array $aCfgClient) {
bei dem "array" als Type Hint verwendet wird.
Du kannst die array-Keywörter entfernen (auch mal nur zum Test), es sollte trotzdem gehen.
Gruß
HerrB
Verfasst: Di 22. Apr 2008, 16:00
von rob2006
Danke für die schnelle Antwort!
Leider funktioniert es dennoch nicht
Gruß
Rob
Verfasst: Mo 5. Mai 2008, 10:41
von Judas
Ich habe das selbe Problem. Das Modul erzeugt einen Fehler.
Code: Alles auswählen
<title><?php
cInclude('classes', 'Contenido_FrontendNavigation/Contenido_FrontendNavigation_Breadcrumb.class.php');
try {
$oBread = new Contenido_FrontendNavigation_Breadcrumb($db, $cfg, $client, $lang, $cfgClient);
$oBreadCats = $oBread->get($idcat, 1);
$sBread = 'Contenido - ';
$aBread = array();
foreach( $oBreadCats as $oConCat ) {
$aBread[] = $oConCat->getCategoryLanguage()->getName();
}
$sBread .= implode(' - ', $aBread);
$oArticle = new Article($idart, $client, $lang);
$sHeadline = strip_tags($oArticle->getContent('CMS_HTMLHEAD', 1));
if( $sHeadline != '' ) {
$sBread .= ' - '. $sHeadline;
}
echo $sBread;
}
catch( InvalidArgumentException $eI ) {
echo 'Contenido1';
}
catch( Exception $e ) {
echo 'Contenido2';
}
?></title>
Die Fehlermeldung im Frontend:
Code: Alles auswählen
Parse error: syntax error, unexpected '{' in /www/htdocs/w002d78c/wattenscheid/cms/front_content.php(917) : eval()'d code on line 15
Contenido: 4.8.3
PHP: 4.4.8
Verfasst: Mo 5. Mai 2008, 11:31
von rbi
Judas hat geschrieben:
Contenido: 4.8.3
PHP: 4.4.8
Du benötigst dafür eine aktuelle PHP5-Version, ab 5.1.4.
Verfasst: Mo 5. Mai 2008, 12:30
von Judas
Na prima, mein Hoster (all-inkl) bietet die noch nicht.

Verfasst: Mo 5. Mai 2008, 16:10
von rbi
Du kannst ja weiterhin "alte" Module für Breadcrumb und Navigation nutzen.
Es sind nur die neuen Module, die die aktuelle Version voraussetzen.
Auf der Website von allinkl steht, dass auch PHP5 verfügbar ist - welche Version haben die denn?
http://allinkl.com/index.php?open=faq&s ... g#Software
Verfasst: Mo 5. Mai 2008, 16:12
von nils.nsc-design
Hier gibt es die Möglichkeit PHP5 bei all-incl via .htaccess zu aktivieren:
http://www.all-inkl.com/index.php?sek=a ... sgenerator
Verfasst: Mo 5. Mai 2008, 16:21
von Judas
Verfasst: Mo 7. Jul 2008, 15:35
von OliverL
HerrB hat geschrieben:Ich fürchte, dass die PHP-Version noch zu alt ist:
... arrays (since PHP 5.1).
Hatte gerade ein bisschen zeit mal 4.8. überhaupt mal zutesten.
Auch bei mir ist irgendwas mit PHP 5.0 drauf und auch bei mir funktionieren sämtliche Navigation-Module nicht.
Schon irgend wie fies nach dem ich gerade erst unseren Sysadmin dazu gebracht habe (durch dauer quengeln) als ersten Webspace auf MySQL 5 und php5 upzudaten.
könnte man soetwas nicht mit bei den Setup-Errors mit einbringen?
mfg OliverL