defmc
By:
defmc

LEMP (16.04) Wordpress acting strange

March 28, 2017 400 views
WordPress LEMP Nginx Ubuntu 16.04

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 :)

2 Answers
hansen March 28, 2017
Accepted Answer

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.

  • Thanks! I got it working. I had not properly registered a plugin, so the page broke. Need to learn troubleshooting php better 😅

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

Have another answer? Share your knowledge.