Új hozzászólás Aktív témák

  • radi8tor

    MODERÁTOR

    Sziasztok!

    Még mindig webshop-téma.

    PHP Warning: Division by zero in /home/www/clients/client1649/web5653/web/system/library/template/Twig/Environment.php(402) : eval()'d code on line 92

    Environment.php:

    /**
    * Loads a template by name.
    *
    * @param string $name The template name
    * @param int $index The index if it is an embedded template
    *
    * @return Twig_TemplateInterface A template instance representing the given template name
    *
    * @throws Twig_Error_Loader When the template cannot be found
    * @throws Twig_Error_Syntax When an error occurred during compilation
    */

    public function loadTemplate($name, $index = null)
    {
    $cls = $this->getTemplateClass($name, $index);

    if (isset($this->loadedTemplates[$cls])) {
    return $this->loadedTemplates[$cls];
    }

    if (!class_exists($cls, false)) {
    if ($this->bcGetCacheFilename) {
    $key = $this->getCacheFilename($name);
    } else {
    $key = $this->cache->generateKey($name, $cls);
    }

    if (!$this->isAutoReload() || $this->isTemplateFresh($name, $this->cache->getTimestamp($key))) {
    $this->cache->load($key);
    }

    if (!class_exists($cls, false)) {
    $content = $this->compileSource($this->getLoader()->getSource($name), $name);
    if ($this->bcWriteCacheFile) {
    $this->writeCacheFile($key, $content);
    } else {
    $this->cache->write($key, $content);
    }

    eval('?>'.$content);
    }
    }

    if (!$this->runtimeInitialized) {
    $this->initRuntime();
    }

    return $this->loadedTemplates[$cls] = new $cls($this);
    }

    Végén található eval-ra panaszkodik.
    De ez pontosan mit jelent? eval()'d code on line 92

Új hozzászólás Aktív témák