Jump to content

Recommended Posts

Bonjour,

j'ai ces messages d'erreur depuis ce matin dans le back office (modules) et certains des modules que j'utilise régulièrement n'apparaissent plus (home slider...). Une idée pour résoudre ce problème? merci par avance

  1. [eurovatgenerator] Erreur dans le fichier de configuration: Space required after the Public Identifier
  2. [eurovatgenerator] Erreur dans le fichier de configuration: SystemLiteral " or ' expected
  3. [eurovatgenerator] Erreur dans le fichier de configuration: SYSTEM or PUBLIC, the URI is missing
  4. [eurovatgenerator] Erreur dans le fichier de configuration: Opening and ending tag mismatch: hr line 8 and body
  5. [eurovatgenerator] Erreur dans le fichier de configuration: Opening and ending tag mismatch: body line 4 and html
  6. [eurovatgenerator] Erreur dans le fichier de configuration: Premature end of data in tag html line 2
Link to comment
Share on other sites

En espérant que tu ne sois pas sur PDP11

 

Ajouter un @libxml_clear_errors(); pour éviter que les flux addons polluent d'autre sections

 

Tools.php, corriger:

    public static function simplexml_load_file($url, $class_name = null)
    {
        $cache_id = 'Tools::simplexml_load_file'.$url;
        if (!Cache::isStored($cache_id)) {
            @libxml_clear_errors();
            $result = @simplexml_load_string(Tools::file_get_contents($url), $class_name);
            Cache::store($cache_id, $result);
            return $result;
        }
        return Cache::retrieve($cache_id);
    }

Module.php 7 occurences:

grep -n simplexml_load_ classes/module/Module.php
1208:        $xml_module = @simplexml_load_file($config_file);
1299:                $xml_module = @simplexml_load_file($config_file);
1463:                $xml = @simplexml_load_string($content, null, LIBXML_NOCDATA);
1611:        $native_modules = @simplexml_load_file($module_list_xml);
1642:        $native_modules = @simplexml_load_file($module_list_xml);
1776:            $xml = @simplexml_load_string($content, null, LIBXML_NOCDATA);
1789:                $xml = @simplexml_load_string($content, null, LIBXML_NOCDATA);

@libxml_clear_errors(); avant chacune de ces lignes

Edited by doekia (see edit history)
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...