Report this

What is the reason for this report?

LEMP (16.04) Wordpress acting strange

Posted on March 28, 2017

Ive (seemingly) successfully installed Wordpress on LEMP (16.04). Everything looks ok, until I test out my template (which works fine locally btw.)

When im on any page, my jquery resources are loaded as they should, but as soon as i switch to a post, my scripts arent loaded. Specifically; my .js-files located in the template folder dont show up in chrome devtools. So the template is broken, obviously.

Also, when im on any page, im logged in as admin in wordpress, but as soon as I switch to a post, im no longer logged in (wordpress-admin-bar disappears).

Does this makes sense to anyone? Im sure ive messed up some config along the way, but I have no idea where to begin looking. Any help appreciated :)



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Try switching theme to the default 2017 theme. If it works there, then the problem is in your theme. Otherwise disable all plugins and test again.

Heres me switching from a sample-page to a sample-post. See how the bar up top disappears. And im not able to open my js-menu either.

http://g.recordit.co/ha68iJ3ecs.gif

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.