jsmrtn / craftagram

Grab Instagram content through the Instagram Basic Display API
Other
14 stars 8 forks source link

CP Section rendering only page partial (with no styling) on certain environments #17

Closed isjackwild closed 4 years ago

isjackwild commented 4 years ago

On my live site, the CP section appears to load only the plain HTML of the inner (right hand) part of the Dashboard.

Inspecting the source, I can see that the only HTML rendered is that of the Craftagram section itself (second screenshot). I haven't experienced this issue before with other CP Sections (is it possibly to do with routing, as it redirects you to /craftagram/settings).

It doesn't work on the live server (Apache2) but it is working on Nginx for local development.

image image

jsmrtn commented 4 years ago

That's very odd–you're still seeing the old template. In vendor/scaramangagency/craftagram folder on your production website, what are you seeing in the templates folder?

isjackwild commented 4 years ago

I'm seeing this...

It may be because the build script might only add new files, and leave the old ones in place. I guess if I manually delete that settings.twig in the root of templates/ it may fix things?

image

isjackwild commented 4 years ago

Just tried that, and it's fixed. Sorry my build must be set to merge folders rather than overwrite. Thanks for the pointer though!

jsmrtn commented 4 years ago

No problemo!