BurnEngine adds a folder "1" to root

ThemeBurn SupportForumsOpenCart ThemesKiddos OpenCart ThemeBurnEngine adds a folder "1" to root

This topic has been marked as resolved.

Dear TB-Team,

I just saw that there is a new folder in my root by the name of “1″. In there is another folder named “b1″ in which there is a php file named “b11bd8617be28480d36c4cc742880af1eca9ccd578fc9d766fcc758614a280aa.php”. This seems to be added by BurnEngine.

It’s contents are:


<?php

/* BurnEngine/template/tb/header.twig */
class __TwigTemplate_5a14f68080518c6bfb0302f76b3a8268bd99669de8903560d1df83672657baea extends Twig_Template
{
    public function __construct(Twig_Environment $env)
    {
        parent::__construct($env);

        $this->parent = false;

        $this->blocks = array(
        );
    }

    protected function doDisplay(array $context, array $blocks = array())
    {
        // line 1
        echo $this->getAttribute((isset($context["tbData"]) ? $context["tbData"] : null), "slotFlag", array(0 => "catalog.template.header"), "method");
        echo "
";
        // line 2
        echo $this->getAttribute((isset($context["tbData"]) ? $context["tbData"] : null), "fbMeta", array(), "array");
        echo "
";
        // line 3
        echo $this->getAttribute((isset($context["tbData"]) ? $context["tbData"] : null), "twitterMeta", array(), "array");
        echo "
";
        // line 5
        if ( !twig_test_empty($this->getAttribute($this->getAttribute((isset($context["tbData"]) ? $context["tbData"] : null), "system", array()), "critical_css", array(), "array"))) {
            // line 6
            echo "<style>";
            echo $this->getAttribute($this->getAttribute((isset($context["tbData"]) ? $context["tbData"] : null), "system", array()), "critical_css", array(), "array");
            echo "</style>
";
        }
        // line 9
        if ($this->getAttribute($this->getAttribute((isset($context["tbData"]) ? $context["tbData"] : null), "engine_config", array()), "catalog_google_fonts", array(), "array")) {
            // line 10
            if ($this->getAttribute($this->getAttribute((isset($context["tbData"]) ? $context["tbData"] : null), "engine_config", array()), "catalog_google_fonts_js", array(), "array")) {
                // line 11
                echo "<script data-capture=\"0\">
window.lazySizesConfig=window.lazySizesConfig||{};lazySizesConfig.init=false;try{if(!parent.document)throw new Error('');tbRootWindow=top!==self?window.parent:window}catch(a){tbRootWindow=window};tbWindowWidth=window.innerWidth;function includeFontResource(e){\"use strict\";function t(e,t,c){e.addEventListener?e.addEventListener(t,c,!1):e.attachEvent&&e.attachEvent(\"on\"+t,c)}function c(e){return window.localStorage&&localStorage.font_css_cache&&localStorage.font_css_cache_file===e}function n(){if(window.localStorage&&window.XMLHttpRequest)if(c(a))o(localStorage.font_css_cache);else{var e=new XMLHttpRequest;e.open(\"GET\",a,!0),e.onreadystatechange=function(){4===e.readyState&&200===e.status&&(o(e.responseText),localStorage.font_css_cache=e.responseText,localStorage.font_css_cache_file=a)},e.send()}else{var t=document.createElement(\"link\");t.href=a,t.rel=\"stylesheet\",t.type=\"text/css\",document.getElementsByTagName(\"head\")[0].appendChild(t),document.cookie=\"font_css_cache\"}}function o(e){var t=document.createElement(\"style\");t.setAttribute(\"type\",\"text/css\"),document.getElementsByTagName(\"head\")[0].appendChild(t),t.styleSheet?t.styleSheet.cssText=e:t.innerHTML=e}var a=e;window.localStorage&&localStorage.font_css_cache||document.cookie.indexOf(\"font_css_cache\")>-1?n():t(window,\"load\",n)}
<!--google_fonts_link-->
</script>
";
            } else {
                // line 16
                echo "<!--google_fonts_link-->
";
            }
        }
        // line 20
        echo "<!--[if[style_resources_placeholder]]-->
<!--[if lt IE 10]>
<link rel=\"stylesheet\" type=\"text/css\" href=\"catalog/view/theme/BurnEngine/stylesheet/ie.css\" media=\"screen\" />
<![endif]-->
";
        // line 25
        echo "<!--javascript_resources_placeholder_header-->";
    }

    public function getTemplateName()
    {
        return "BurnEngine/template/tb/header.twig";
    }

    public function isTraitable()
    {
        return false;
    }

    public function getDebugInfo()
    {
        return array (  61 => 25,  55 => 20,  50 => 16,  43 => 11,  41 => 10,  39 => 9,  33 => 6,  31 => 5,  27 => 3,  23 => 2,  19 => 1,);
    }
}
/* {{ tbData.slotFlag('catalog.template.header') }}*/
/* {{ tbData['fbMeta'] }}*/
/* {{ tbData['twitterMeta'] }}*/
/* {# // CRITICAL CSS ////////////////////////////// #}*/
/* {% if tbData.system['critical_css'] is not empty %}*/
/* <style>{{ tbData.system['critical_css'] }}</style>*/
/* {% endif %}*/
/* {# // CUSTOM FONTS CSS ////////////////////////////// #}*/
/* {% if tbData.engine_config['catalog_google_fonts'] %}*/
/* {% if tbData.engine_config['catalog_google_fonts_js'] %}*/
/* <script data-capture="0">*/
/* window.lazySizesConfig=window.lazySizesConfig||{};lazySizesConfig.init=false;try{if(!parent.document)throw new Error('');tbRootWindow=top!==self?window.parent:window}catch(a){tbRootWindow=window};tbWindowWidth=window.innerWidth;function includeFontResource(e){"use strict";function t(e,t,c){e.addEventListener?e.addEventListener(t,c,!1):e.attachEvent&&e.attachEvent("on"+t,c)}function c(e){return window.localStorage&&localStorage.font_css_cache&&localStorage.font_css_cache_file===e}function n(){if(window.localStorage&&window.XMLHttpRequest)if(c(a))o(localStorage.font_css_cache);else{var e=new XMLHttpRequest;e.open("GET",a,!0),e.onreadystatechange=function(){4===e.readyState&&200===e.status&&(o(e.responseText),localStorage.font_css_cache=e.responseText,localStorage.font_css_cache_file=a)},e.send()}else{var t=document.createElement("link");t.href=a,t.rel="stylesheet",t.type="text/css",document.getElementsByTagName("head")[0].appendChild(t),document.cookie="font_css_cache"}}function o(e){var t=document.createElement("style");t.setAttribute("type","text/css"),document.getElementsByTagName("head")[0].appendChild(t),t.styleSheet?t.styleSheet.cssText=e:t.innerHTML=e}var a=e;window.localStorage&&localStorage.font_css_cache||document.cookie.indexOf("font_css_cache")>-1?n():t(window,"load",n)}*/
/* <!--google_fonts_link-->*/
/* </script>*/
/* {% else %}*/
/* <!--google_fonts_link-->*/
/* {% endif %}*/
/* {% endif %}*/
/* {# // THEME STYLES ////////////////////////////// #}*/
/* <!--[if[style_resources_placeholder]]-->*/
/* <!--[if lt IE 10]>*/
/* <link rel="stylesheet" type="text/css" href="catalog/view/theme/BurnEngine/stylesheet/ie.css" media="screen" />*/
/* <![endif]-->*/
/* {# // THEME SCRIPTS ////////////////////////// #}*/
/* <!--javascript_resources_placeholder_header-->*/

What does the folder do there? Is that intentional?

Thanks & best,
Torge

August 30, 2018 at 12:08 pm #65267

Hi,

this is not exactly a bug (it does not break any functionality), but more like a misconfiguration of our theme. We will fix this in the upcoming minor update. If you find it disturbing, you can apply the fix manually. Open system\vendor\BurnEngine\library\ViewDataBag.php and change line 294 from

'cache'      => $this->context->getRegistry()->get('config')->get('template_cache')
to

 'cache'      => defined('DIR_CACHE') ? DIR_CACHE : $this->context->getRegistry()->get('config')->get('template_cache')

Regards,
ThemeBurn team

September 3, 2018 at 5:29 pm #65309

Dear TB-support,

perfect, thanks lot!
(yes, this was disturbing me ;)

Cheers,
Torge

September 3, 2018 at 5:34 pm #65310

Glad we’ve helped, Torge and thanks for reporting this misconfiguration!

BR,
ThemeBurn team

September 11, 2018 at 2:23 pm #65379
Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.