Seite 1 von 1

Komische Fehlermedlungen

Verfasst: Mo 2. Jan 2006, 10:34
von damael
Hey

Ich habe nicht gefunden, dass mein Problem erklären könnte. Wenn ich auf einen Artikel klicken und dann auf "Editor" oder "Vorschau" oder bekommen ich eine Fehlermeldung in der art:

Parse error: parse error, unexpected '<' in /home/httpd/vhosts/domainname.tld/httpdocs/xcms/contenido/includes/include.con_editcontent.php(650) : eval()'d code on line 672

Ich hoffe Ihr könnt mir helfen.

Grüsse

Verfasst: Mo 2. Jan 2006, 11:02
von Halchteranerin
Fehler im Layout?

Verfasst: Mo 2. Jan 2006, 12:45
von damael
Wie meinst du das?

Ach ja, wenn ich auf Style / Layout / Layout 1 / Vorschau klicke kommt die Fehlermeldung

Parse error: parse error, unexpected '<' in /home/httpd/vhosts/domainname.tld/httpdocs/xcms/contenido/includes/include.lay_preview.php(20) : eval()'d code on line 106

Was ist das?

Ach ja ich habe mir das Layout nochmal angeschaut und ich finde da den code:
<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>Neue Seite 3</title>
</head>

<body>

&nbsp;

<div align="center">
<center>
<table border="0" width="800" background="file:///C:/Dokumente%20und%20Einstellungen/jaeggim/Desktop/hintergrund27.jpg" height="842">
<tr>
<td width="100%">
<p>CMS_CONTAINER[1]<br>
CMS_CONTAINER[2]<br>
CMS_CONTAINER[3]</p>
<p>CMS_CONTAINER[4]<br>
CMS_CONTAINER[5]</p>
<p>&nbsp;
<p>&nbsp;</p>
</td>
</tr>&nbsp;
<p>&nbsp;</p>
<tr>
<td width="100%">&nbsp;
<p>&nbsp;</td>
</tr>
<tr>
<td width="100%">&nbsp;</td>
</tr>
</table>
</center>
</div>

<p>C </p>

</body>

</html>
/**
* Navigation
*
* INPUT
*
* @autor Jan Lengowski <Jan.Lengowski@4fb.de>
* @copyright four for business AG 2003
*/

?>
<table cellspacing="0" cellpadding="0" cellpadding="4">

<tr>
<td class="text">Baum wählen:</td>
<td>
<select name="CMS_VAR[0]">
<option value="0">-- kein --</option>
<?php

$sql = "SELECT
A.idcat,
C.name
FROM
".$cfg["tab"]["cat_tree"]." AS A,
".$cfg["tab"]["cat"]." AS B,
".$cfg["tab"]["cat_lang"]." AS C
WHERE
A.idcat = B.idcat AND
B.idcat = C.idcat AND
C.idlang = '".$lang."' AND
B.idclient = '".$client."' AND
C.visible = 1 AND
A.level = '0'
ORDER BY
A.idtree";

$db->query($sql);

while ( $db->next_record() ) {

if ( "CMS_VALUE[0]" == $db->f("idcat") ) {
echo '<option selected="selected" value="'.$db->f("idcat").'">'.$db->f("name").'</option>';

} else {
echo '<option value="'.$db->f("idcat").'">'.$db->f("name").'</option>';

}
}

?>
</select>
</td>
</tr>

</table>

<?php


Kann es sein, dass man einfach das <?php am schluss weglöschen muss?

Verfasst: Mo 2. Jan 2006, 13:08
von Halchteranerin
die Navigation hat im Layout nichts zu suchen, du musst einen Container dafuer vorsehen und dann in der Kategorie- oder Artikelkonfiguration diesem Container das Navigationsmodul zuweisen. Am besten waere es, wenn du dir Contenido mit Beispielmandant installierst und dir da die Layouts und Templates erstmal anschaust.