Seite 1 von 1

not found als menupunkte

Verfasst: Do 20. Okt 2005, 15:36
von kummer
hallo zusammen

habe das erste mal probleme bei der installation von contenido 4.4.5. und zwar erscheint im backend nach erfolgter installation bei den meisten menupunkten 'not found'.

hat das schon mal jemand auch gehabt? und gibt es eine einfach lösung / erklärung dafür?

danke für jeden hinweis!

gruss,
andreas

ein nachtrag: im englischen funktioniert alles einwandfrei. das problem tritt nur im deutsch auf.

Verfasst: Do 20. Okt 2005, 15:54
von HerrB
Alle Dateien nochmal hochladen und sicherstellen, dass Groß- und Kleinschreibung der Dateinamen erhalten bleibt. Sollte helfen.

Gruß
HerrB

Verfasst: Do 20. Okt 2005, 16:05
von kummer
habe ich bereits gemacht. gross- und kleinschreibung ist in ordnung. setup habe ich ebenfalls noch ein zweites mal ausgeführt. -> keine änderung.

wie gesagt: im englischen funktioniert alles einwandfrei. im deutsch erhalte ich lediglich den ersten menupunkt (also artikel).

Verfasst: Do 20. Okt 2005, 17:34
von HerrB
Einträge im errorlog? Der findet die Sprachdateien nicht (.po/.mo bzw. die XML-Dateien).

Gruß
HerrB

Verfasst: Mo 24. Okt 2005, 10:41
von kummer
ich habe einträge im errorlog. verschiedene aktualisierungsprobleme in der datenbank.

ich habe inzwischen alles gelöscht (inklusive datenbank). dann die installation nochmals durchgeführt. und zwar diemal von meinem mac aus (zuvor aus windows 2000).

ergebnis: genau das gleiche! kann es sein, dass in der vorliegenden distribution ein problem vorliegt?

Verfasst: Mo 24. Okt 2005, 10:59
von Halchteranerin
Welche Version hast du? Ich habe auf einer meiner Sites die 4.4.5-r1 und damit keine Probleme. Allerdings habe ich da auch nur Deutsch, keine Mehrsprachigkeit.

Verfasst: Mo 24. Okt 2005, 11:10
von kummer
ich auch die 4.4.5. und auch noch keine mehrsprachigkeit. das problem tritt bereits unmittelbar nach der installation auf. im englischen habe ich übrigens keine probleme. nur im deutsch (ausgerechnet) kriege ich die lästigen not found.

Verfasst: Mo 24. Okt 2005, 11:15
von emergence
also ich hoffe du verwendest die contenido-4.4.5-r1

kontrollier erstens ob der dateiname genau so stimmt
im ordner contenido/xml/lang_de_DE.xml

und zweitens poste mal den inhalt dieser datei...
vielleicht ist sie ja beschädigt...

Verfasst: Mo 24. Okt 2005, 17:36
von kummer
der dateibezeichner ist wie von dir angegeben. dürfte also korrekt sein. der inhalt ist wie folgt:

Code: Alles auswählen

<?xml version="1.0" encoding="ISO-8859-1"?>
<!-- Contenido XML language file -->
<language>
    <navigation>
        <content>
            <main>Content</main>
            <article>
                <main>Artikel</main>
                <overview>Übersicht</overview>
                <editor>Editor</editor>
                <properties>Eigenschaften</properties>
                <configuration>Konfiguration</configuration>
                <preview>Vorschau</preview>
            </article>
            <structure>Kategorie</structure>
            <upload>Dateiverwaltung</upload>
        </content>
        <style>
            <main>Style</main>
            <layouts>Layouts</layouts>
            <modules>Module</modules>
            <templates>
                <main>Templates</main>
                <edit>Editieren</edit>
                <conf>Vorkonfiguration</conf>
            </templates>
            <styleeditor>Styleeditor</styleeditor>
            <jseditor>Skripteditor</jseditor>
        </style>
        <statistic>
            <main>Statistik</main>
            <hits>Zugriffe</hits>
        </statistic>
        <administration>
            <main>Administration</main>
            <users>
                <main>Benutzer</main>
                <userproperties>Eigenschaften</userproperties>
                <areas>Bereiche</areas>
                <layout>Layout</layout>
                <content>Content</content>
                <module>Module</module>
                <template>Template</template>
                <structure>Kategorie</structure>
            </users>
            <groups>
                <main>Gruppen</main>
                <members>Mitglieder</members>
                <overview>Eigenschaften</overview>
                <areas>Bereiche</areas>
                <layout>Layout</layout>
                <content>Content</content>
                <module>Module</module>
                <template>Template</template>
                <structure>Kategorie</structure>
            </groups>
            <languages>Sprachen</languages>
            <plugins>Plugins</plugins>
            <clients>Mandanten</clients>
            <logs>Logs</logs>
            <debug>Debug</debug>
            <system>
             	<main>System</main>
            	<sysvalues>Systemvariablen</sysvalues>
            	<syserrorreport>Fehlerbericht</syserrorreport>
            </system>
        </administration>
        <mycontenido>
            <main>MyContenido</main>
            <overview>Übersicht</overview>
            <settings>Einstellungen</settings>
        </mycontenido>
        <extra>
            <main>Extras</main>
            <newsletter>Newsletter</newsletter>
            <mailing>Mailing</mailing>
            <recipients>Empfänger</recipients>
        </extra>
        <mycontenido>MyContenido</mycontenido>
        <info>Info</info>
        <login>Login</login>
    </navigation>
    <rights>
        <main>Rechte</main>
        <content>
            <main>Content</main>
            <article>
                <main>Artikel</main>
                <edit>Artikel editieren</edit>
            </article>
        </content>
    </rights>
    <content/>
    <errors/>
</language>
ich hoffe, das hilft dir weiter. respektive mir... ;-)

Verfasst: Mo 24. Okt 2005, 17:37
von kummer
kleiner nachtrag noch: die version ist 4.4.5 (ohne r1). aber die ist brandneu. mindestens habe ich keinen anderen download gefunden.

Verfasst: Mo 24. Okt 2005, 17:42
von kummer
also, ich versuche es jetzt noch einmal ein letztes mal. dann muss ich wohl die lanzen strecken und die flinte ins korn werfen. ich habe dir version 4.4.5-r1 herunter geladen, entzipt und packe sie jetzt auf den server. die datenbank ist jungfäulich (also vollkommen leer). das ergebnis werde ich hier posten.

bis später dann.

Verfasst: Mo 24. Okt 2005, 17:51
von emergence
das sollte in der r1 gefixt sein...
-> http://contenido.org/forum/viewtopic.php?t=8009

Verfasst: Mo 24. Okt 2005, 18:04
von kummer
ist es leider nicht. ich bin auch der meinung, dass dies sehr wichtig wäre; immerhin steigen immer mehr provider auf php5 um.

anyway, vielen dank für die hilfe. und für alle anderen hier noch einmal der ganze code der datei /contenido/classes/class.xml.php.

Code: Alles auswählen

<?php

/**
 * Class XML_doc
 *
 * Simple class for extracting values
 * from a XML document. Uses a simplified
 * XPath syntax to access the elements.
 * For example: 'root/person/name' would
 * return the value of the 'name' node in
 * 'root/person' node. You have to specify
 * the root node name. Can't access node
 * attributes yet.
 *
 * @copyright four for business AG <http://www.4fb.de>
 * @author Jan Lengowski <Jan.Lengowski@4fb.de>
 * @modified Martin Horwath <horwath@dayside.net>
 * @version 0.9.7
 * @package 4fb_XML
 */
class XML_doc {

    /**
     * @var array $errors
     */
     var $errors = array();

    /**
     * @var string xml
     */
     var $xml;

    /**
     * @var parsed array
     */
    var $parsearray;

    /**
     * @var help array
     */
    var $itemname;

    /**
     * XML Parser Object
     */
    var $parser;

    /**
     * XML encoding
     */
    var $encoding;

    /**
     * Class Construcor
     */
    function XML_doc() {
      // do nothing
    } // end function


    /**
     * load()
     *
     * Load the XML file
     *
     * @param string XML document filename
     * @return boolean true if the load was successful
     */
    function load($filename) {

        if (file_exists($filename)) {
            $fp = fopen ($filename, "rb");

            if ($fp === false)
            {
                return (false);
            }

            unset($this->xml);
            $this->xml = fread ($fp, filesize ($filename));
            fclose ($fp);

            // useful if entities are found in xml file
            $this->xml = $this->_translateLiteral2NumericEntities($this->xml);

            // get source encoding from file
            if (preg_match('/<\?xml.*encoding=[\'"](.*?)[\'"].*\?>/m', $this->xml, $m)) {
                $this->encoding = strtoupper($m[1]);
            } else {
                $this->encoding = "UTF-8";
            }

            //print_r($this->xml);
            unset($this->parsearray);
            return (true);

        } else {
            //die('no XML file ('.$filename.')');
            return (false);

        }

    } // end function


    /**
     * valueOf()
     *
     * Extract one node value from the XML document.
     * Use simplified XPath syntax to specify the node.
     * F.e. 'root/test/firstnode'
     *
     * @return String Value of XML node
     */
     function valueOf($xpath) {

        if (!is_array($this->parsearray)) { // build tree once
            $this->parse(false);
        }

        $aCombination = explode("/", $xpath);

        $keynode = "";

        foreach ($aCombination as $key => $value) {
            $keynode .= "['".$value."']";
        }

        eval('$value = $this->parsearray'.$keynode.';');


        if ($value == NULL)
        {
            $aLoosePath = $this->findLoosePath($aCombination);

            if (is_array($aLoosePath))
            {
                $keynode = "";
                foreach ($aLoosePath as $key => $value) {
                    $keynode .= "['".$value."']";
                }

                eval('$value = $this->parsearray'.$keynode.';');

            }

        }

        if ($value == NULL) { return "Not found"; }

        if (is_array($value)) { return "Has children"; }

        return $value;

    } // end function

    /**
     * findLoosePath: Finds a path in the XML array which
     *                ends with the given keys
     *
     * @param aCombination  array of keys to test for
     * @return false if nothing was found, or the array with the found keys
     */
    function findLoosePath ($aCombination, $aScope = true)
    {
        if (count($aCombination) == 0)
        {
            return false;
        }

        $keynode = "";
        foreach ($aCombination as $key => $value) {
            $keynode .= "['".$value."']";
        }

        if ($aScope===true) {
            $aScope = $this->parsearray;
        }

        foreach($aScope as $aScopeKey => $aScopeValue) {

           if (!is_array ($aScope[$aScopeKey])) {
               return false;
           }

           eval('if (isset ($aScope['.$aScopeKey.']'.$keynode.') ) { $found = true; }');
           if ($found) {
               $rCombination = array_merge(Array($aScopeKey), $aCombination);
               break;
           }

           $rCombination = $this->findLoosePath($aCombination, $aScopeValue);
           if (is_array($rCombination)) {
               $rCombination = array_merge(Array($aScopeKey), $rCombination);
               break;
           }

        }

        return $rCombination;

    }


    /**
     * parse()
     *
     * Parse the xml file in an array
     *
     *
     *
     * @return array parsearray
     */

    function parse($send=true) {
        // set up a new XML parser to do all the work for us
        $this->parser = xml_parser_create($this->encoding);
        xml_parser_set_option($this->parser, XML_OPTION_TARGET_ENCODING, $this->encoding);
        xml_parser_set_option($this->parser, XML_OPTION_CASE_FOLDING, false);
        xml_set_object($this->parser, $this);
        xml_set_element_handler($this->parser, "startElement", "endElement");
        xml_set_character_data_handler($this->parser, "characterData");

        // parse the data and free the parser...
        xml_parse($this->parser, $this->xml);
        xml_parser_free($this->parser);
        if ($send) return $this->parsearray;
    } // end function

    /**
     *
     *
     *
     */
    function startElement($parser, $name, $attrs) {
        // Start a new Element.  This means we push the new element onto
        // store the name of this element
        $this->itemname[]="$name";
    } // end function

    /**
     *
     *
     *
     */
    function endElement($parser, $name) {
        // End an element.  This is done by popping the last element from
        // the stack and adding it to the previous element on the stack.
        // delete the old element from itemname
        array_pop($this->itemname);
    } // end function

    /**
     *
     *
     *
     */
    function characterData($parser, $data) {
        // Collect the data onto the end of the current chars it dont collect whitespaces.

        $data = eregi_replace ( "[[:space:]]+", " ", $data );

        if(trim($data)){
           //search for the element path
           foreach($this->itemname as $value){
                   $pos.="[$value]";
           }

           // looks stupid but is useful to take care of entities, this corrects the line break issue
           eval("if (isset(\$this->parsearray$pos)) { \$data = \$this->parsearray$pos.trim(\$data); }");

           //set the new data in the parsearray
           eval("\$this->parsearray$pos=trim(\$data);");

        }

    } // end function

    /**
     * Translate literal entities to their numeric equivalents and vice versa.
     *
     * PHP's XML parser (in V 4.1.0) has problems with entities! The only one's that are recognized
     * are &, < > and ". *ALL* others (like &nbsp; &copy; a.s.o.) cause an
     * XML_ERROR_UNDEFINED_ENTITY error. I reported this as bug at http://bugs.php.net/bug.php?id=15092
     * The work around is to translate the entities found in the XML source to their numeric equivalent
     * E.g. &nbsp; to   / &copy; to © a.s.o.
     *
     * NOTE: Entities &, < > and " are left 'as is'
     *
     * @author Sam Blum bs_php@users.sourceforge.net
     * @param string $xmlSource The XML string
     * @param bool   $reverse (default=FALSE) Translate numeric entities to literal entities.
     * @return The XML string with translated entities.
     */
    function _translateLiteral2NumericEntities($xmlSource, $reverse = FALSE) {
        static $literal2NumericEntity;

        if (empty($literal2NumericEntity)) {
            $transTbl = get_html_translation_table(HTML_ENTITIES);
            foreach ($transTbl as $char => $entity) {
                if (strpos('&"<>', $char) !== FALSE) continue;
                    $literal2NumericEntity[$entity] = '&#'.ord($char).';';
            }
        }

        if ($reverse) {
            return strtr($xmlSource, array_flip($literal2NumericEntity));
        } else {
            return strtr($xmlSource, $literal2NumericEntity);
        }
    }


} // end class XML_doc

?>

Verfasst: Mo 24. Okt 2005, 18:11
von emergence
kummer hat geschrieben:ist es leider nicht. ich bin auch der meinung, dass dies sehr wichtig wäre; immerhin steigen immer mehr provider auf php5 um.
es dauert ja nicht mehr so lange bis zur 4.6 dort ist das ja enthalten...
noch eine 4.4.5r2 nachzuschießen bringts glaube ich nicht wirklich...

Verfasst: Mo 24. Okt 2005, 18:26
von kummer
aber auf die 4.6 warten wir nun schon ein weilchen... ;-)

nun ja, ich bin froh, wenn das problem gelöst ist. es ist einfach so, dass jemand anders das problem je nach dem nicht weiterverfolgen, sondern sich einfach für ein anderes system entscheiden wird.

anyway, wie gesagt: vielen dank für deine hilfe. ich hätte da wohl noch tage damit verbracht und am ende die cvs-version verwenden müssen.