Template Engine Not Rendering on Docker Container in Production
Hi, I'm not sure what the issue is here:
I'm moving a site running Fuel CMS 0.91 into a docker container. The site works perfectly if I run locally on MacOS using Docker.
When I move to Google Cloud, the template engine is not rendering correctly for templates pulled from the database.
- I get {$load->view('xxx snippets rendered in the body HTML
- The title of the page is preceeded by "<!--__FUEL_MARKER__0-->"
Since things run fine locally, I'm sort of at a loss where to track down the issue. Any suggestions are much appreciated.
Thanks!
Comments
Any other suggestions? The footer block is not rendering at all, on most pages, in addition to the behavior I noted above.
Thanks again
It seems that only pages that are managed by the fuelCMS are having the issue. The footer block is displayed on pages outside the CMS normally, and I don't see the <!--__FUEL_MARKER__#--> on pages not managed by the CMS.
I turned the debugger on, and the pages in the CMS don't show the debugger either, but other pages not managed by the CMS do show the debugger.
I'm not sure if that helps? Thinking this is a simple fix, it's just a matter of diagnosing..
grrr no errors at all to be found though. Pages that aren't run by the CMS seem to behave normally
My goal is to move the site as-is without upgrading all the things. There's plenty of things that need done but really looking to move servers here in the next week.
When I removed the template codes from the layouts, the pages that are rendered from the CMS (as opposed to having their own controllers) still have issues and the footer block isn't rendered. Still getting the FUEL_MARKER on those pages rendered by the CMS. Pages with their own controllers don't have the FUEL_MARKER showing in the source, the footer renders correctly, everything is fine.
I can try pulling out more variables but it seems like some configuration error. I'm not sure if there is a thing that would stop the template engine from parsing pages coming from the CMS/DB ?
Thanks again
I'm running the identical container locally on my mac and it works perfectly fine.
When I build the containers on the google environment, they appear to be identical, only it appears that fuel_var() function doesn't work when it's called in the templates. Also template vars like {img_path('...')} are not parsed. However, tags like echo site_url(); and echo img_path(); work correctly.