Jump to content

Template ... is throwing an error in Production mode


Go to solution Solved by ReyDev,

Recommended Posts

Hi,
I've created a template hook for a plugin. Everything is ok when I'm in developer mode(IN_DEV = TRUE) but in production mode(IN_DEV = FALSE), I get this error :
[[Template core/front/global/navBar is throwing an error. This theme may be out of date. Run the support tool in the AdminCP to restore the default theme.]]

Edited by ReyDev
Link to comment
Share on other sites

2 hours ago, Nathan Explosion said:

Show your code...

Selector :

nav[data-controller='core.front.core.navBar'] > div.ipsNavBar_primary.ipsLayout_container

 

content :

{template="navBar" group="plugins" location="global" app="core" params=""}

 

And navBar.phtml is something like this :

<ips:template parameters="$preview=FALSE"/>
<div>
    <div class=myMenu">
        <ul>
          <li>Item 1 </li>
          <li>Item 2 </li>
        </ul>
    </div>
</div>

 

As I said, It works in developer mode but in production mode doesn't.

Edited by ReyDev
Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...