creativeguy Posted September 30, 2017 Share Posted September 30, 2017 I tried searching this, assuming I'd see others with the same issues, but I didn't see any similar threads, but apology if this is a repeat topic. The site looks normal (as designed) while I'm logged in to the admin. If I log out, the CSS changes. Been working on a site with a custom login page. The custom login is NOT being used to log into PW admin, however it does know and indicates I'm logged in. It's a user facing login for members. I was working on the site all day yesterday making CSS changes and adding some javascript to handle a video button that changes videosource. Prior to adding this JS, I never had this issue. The site looked normal when logged in or out, That was WITH the custom login. I didn't even know what code to post if any, since this seems REALLY weird. Any thoughts on what might cause such behavior? NOTE: I'm a graphic designer recently turned bad-developer, slowly improving. So, please filter your suggestions to someone with less than the common level of knowledge here. Link to comment Share on other sites More sharing options...
abdus Posted September 30, 2017 Share Posted September 30, 2017 Did you enable template caching? Try disabling it from Setup > Templates > my-template > Cache (or flush page cache from Modules > Page Render) or use @Soma's plugin (https://github.com/somatonic/ClearCacheAdmin) Template cache (by default) is disabled for logged in users, so when you're logged in you're seeing whatever you're supposed to see, but when you log out you see the last cached version of that page. Link to comment Share on other sites More sharing options...
creativeguy Posted September 30, 2017 Author Share Posted September 30, 2017 I'll give that a try. No, at this point, I've never made any changes related to caching, but that obviously makes sense. I'll try that plugin. Link to comment Share on other sites More sharing options...
abdus Posted September 30, 2017 Share Posted September 30, 2017 One other thing is the file compiler. Try deleting site/assets/cache/FileCompiler directory. https://processwire.com/blog/posts/processwire-3.0.14-updates-file-compiler-fields-and-more/ Link to comment Share on other sites More sharing options...
creativeguy Posted September 30, 2017 Author Share Posted September 30, 2017 I'll try that too. FYI, I just installed the cache module. I logged out, and this happened... Link to comment Share on other sites More sharing options...
abdus Posted September 30, 2017 Share Posted September 30, 2017 That shouldnt have happened, does refreshing the page get rid of it? Link to comment Share on other sites More sharing options...
creativeguy Posted September 30, 2017 Author Share Posted September 30, 2017 No, and now I can't log in to the admin at all. I keep getting the ProcessLogin does not exist. Link to comment Share on other sites More sharing options...
abdus Posted September 30, 2017 Share Posted September 30, 2017 Shit. Try logging in from an incognito window. If that doesnt work, go to /site/modules and rename ClearCacheAdmin to something else Link to comment Share on other sites More sharing options...
creativeguy Posted September 30, 2017 Author Share Posted September 30, 2017 I renamed the plugin, but still no login content was found. This is pretty strange. Maybe I should try a fresh install, and just replace the site folder with my current one? Incognito window - same result. Link to comment Share on other sites More sharing options...
abdus Posted September 30, 2017 Share Posted September 30, 2017 Put this on home.php template and visit homepage $modules->uninstall('ClearCacheAdmin'); Link to comment Share on other sites More sharing options...
creativeguy Posted September 30, 2017 Author Share Posted September 30, 2017 Tried that. Same result. No content found for Login. I also tried your code snippet on Home - returned a configuration error. Link to comment Share on other sites More sharing options...
abdus Posted September 30, 2017 Share Posted September 30, 2017 Than the ClearCacheAdmin module isn't the problem, something else is at play here. Let's try clearing module cache. Add this in home.php and visit homepage again $modules->refresh(); Link to comment Share on other sites More sharing options...
creativeguy Posted September 30, 2017 Author Share Posted September 30, 2017 That didn't return any errors, but same result when I try to login. Link to comment Share on other sites More sharing options...
abdus Posted September 30, 2017 Share Posted September 30, 2017 I doubt home.php gets processed at all. Try echoing something and see if anything shows up. Or try force logging in yourself (put $session->forceLogin('admin') see if you can access backend) If not, use site/ready.php (if it doesnt exists, create it) to put these codes in and see if it makes any difference Link to comment Share on other sites More sharing options...
creativeguy Posted September 30, 2017 Author Share Posted September 30, 2017 I'll try now - I appreciate that you're taking time to help me, by the way. Thanks. Link to comment Share on other sites More sharing options...
abdus Posted September 30, 2017 Share Posted September 30, 2017 I wasn't really sure what was the real issue here, but by manually removing Modules.wire and Modules.site entries from caches table in DB, the issue was resolved after a brief Teamviewer support . 6 Link to comment Share on other sites More sharing options...
creativeguy Posted September 30, 2017 Author Share Posted September 30, 2017 Thanks again! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now