On Aug 15, 7:40 pm, roydon <[email protected]> wrote:
> i'm using a modified symfony-sandbox. I made a simple
> application(myapp) with simple entity. everything is working fine
> while i'm online. When on offline it produce this error:
>
> Warning: DOMDocument::schemaValidate(): php_network_getaddresses:
> getaddrinfo failed: Name or service not known in /var/www/myapp/src/
> vendor/symfony/src/Symfony/Components/Validator/MessageInterpolator/
> XliffMessageInterpolator.php line 61
>
> i check the web/check.php . it looks good. what am i missing?

in XliffMessageInterpolator.php look like this:


/**
     * Validates and parses the given file into a SimpleXMLElement
     *
     * @param  string $file
     * @return SimpleXMLElement
     */
    protected function parseFile($file)
    {
        $dom = new \DOMDocument();
        libxml_use_internal_errors(true);
        if (!$dom->load($file, LIBXML_COMPACT)) {
            throw new \Exception(implode("\n", $this-
>getXmlErrors()));
        }
        if (!$dom->schemaValidate(__DIR__.'/schema/dic/xliff-core/
xliff-core-1.2-strict.xsd')) {
            throw new \Exception(implode("\n", $this-
>getXmlErrors()));
        }
        $dom->validateOnParse = true;
        $dom->normalizeDocument();
        libxml_use_internal_errors(false);

        return simplexml_import_dom($dom);
    }
 the line 61 is
 if (!$dom->schemaValidate(__DIR__.'/schema/dic/xliff-core/xliff-
core-1.2-strict.xsd')) {
            throw new \Exception(implode("\n", $this-
>getXmlErrors()));
        }

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

You received this message because you are subscribed to the Google
Groups "symfony users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en

Reply via email to