Roych Posted May 21, 2018 Share Posted May 21, 2018 Hello, I've made a site that was working great until today. When I try to login to ADMIN I get 404 error. The frontend works normal. The admin URL is right. I didn't lock the admin to 404. Everything looks normal in .htacces. I just can't login. The site is still in subfolder and should be deployed today but somehow this happened .. The site is: http://barbsart.si/novo/admin/ Any help is greatly appreciated. Thank you R Link to comment Share on other sites More sharing options...
pwired Posted May 21, 2018 Share Posted May 21, 2018 Your back end doesn't get loaded at all, check your processwire setup. edit: I see your backend is back again ? Link to comment Share on other sites More sharing options...
Roych Posted May 21, 2018 Author Share Posted May 21, 2018 yes I was trying to upgrade, but still the error persist. ? Any idea R EDIT: The error started when tried to upload some images in repeater field, but got error in between. Just found out! Maybe it will help. On this page: http://barbsart.si/novo/si/cenik/ R Link to comment Share on other sites More sharing options...
pwired Posted May 21, 2018 Share Posted May 21, 2018 Check this helper page: http://processwire.com/docs/tutorials/troubleshooting-guide/page3 Link to comment Share on other sites More sharing options...
Roych Posted May 21, 2018 Author Share Posted May 21, 2018 1 minute ago, pwired said: Check this helper page: http://processwire.com/docs/tutorials/troubleshooting-guide/page3 Already tried that none of the above worked, everything looks normal. Link to comment Share on other sites More sharing options...
pwired Posted May 21, 2018 Share Posted May 21, 2018 Ok try echo $config->urls->admin; shows up ok ? Link to comment Share on other sites More sharing options...
Roych Posted May 21, 2018 Author Share Posted May 21, 2018 6 minutes ago, pwired said: Ok try echo $config->urls->admin; Yes it shows the right URL : /novo/admin Link to comment Share on other sites More sharing options...
pwired Posted May 21, 2018 Share Posted May 21, 2018 Sometimes searching for the cause of a problem can take more time than installing a fresh new processwire installation, and copy back the site folder and database. 1 Link to comment Share on other sites More sharing options...
pwired Posted May 21, 2018 Share Posted May 21, 2018 Did you set $config->debug = true ? Link to comment Share on other sites More sharing options...
Roych Posted May 21, 2018 Author Share Posted May 21, 2018 yes tried this also, but see no errors ... Link to comment Share on other sites More sharing options...
pwired Posted May 21, 2018 Share Posted May 21, 2018 Did you install Adrians debugger ? This one has become really sophisticated lately. Recommended and good chance it will show up something for your admin problem. https://modules.processwire.com/modules/tracy-debugger/ Link to comment Share on other sites More sharing options...
pwired Posted May 21, 2018 Share Posted May 21, 2018 How long can it take to install a fresh new processwire installation and copy back the site folder and database, 10 minutes ??? That is of course your problem is not lurking somewhere (e.g. a typo) in your templates or corrupted database record. 1 Link to comment Share on other sites More sharing options...
Roych Posted May 21, 2018 Author Share Posted May 21, 2018 I have it installed. I get [2018-05-21 15-17-19] PHP Notice: Trying to get property of non-object in ..../novo/site/templates/cenik.php:20 @ http://barbsart.si/novo/si/cenik/ [2018-05-21 15-17-20] PHP Notice: Trying to get property of non-object in ..../novo/site/templates/settings.php:2 @ http://barbsart.si/novo/si/nastavitve/ Not sure what this means ? all looks fine on those files and was working great until now. I will try ti install a fresh copy and copy the site folder and DB and hope this will fix the problem. I'll get back if all goes well. Thank you. R 1 Link to comment Share on other sites More sharing options...
pwired Posted May 21, 2018 Share Posted May 21, 2018 That error means you have an object or variable missing or it's value missing 1 Link to comment Share on other sites More sharing options...
Roych Posted May 21, 2018 Author Share Posted May 21, 2018 I installed a fresh copy of PW and copy the old SITE folder and old DB but the same problem occures! Link to comment Share on other sites More sharing options...
pwired Posted May 21, 2018 Share Posted May 21, 2018 Did you install processwire this time in the root or again in a subfolder ? I am running out of ideas, maybe an eperienced coder will step in and have more ideas. 2 Link to comment Share on other sites More sharing options...
Roych Posted May 21, 2018 Author Share Posted May 21, 2018 Just now, pwired said: Did you install processwire this time in the root or again in a subfolder ? I am running out of ideas, maybe an eperienced coder will step in and have more ideas. Installed in subfolder again, not sure but it shouldn't be a problem. I've never encountered this problem before. Link to comment Share on other sites More sharing options...
bernhard Posted May 21, 2018 Share Posted May 21, 2018 have you checked your installation on another system (local dev)? Link to comment Share on other sites More sharing options...
Roych Posted May 21, 2018 Author Share Posted May 21, 2018 21 minutes ago, bernhard said: have you checked your installation on another system (local dev)? Just checked and I get the same error on my local wamp server. Site itself works great but get 404 on admin. Any ideas? ? Link to comment Share on other sites More sharing options...
pwired Posted May 21, 2018 Share Posted May 21, 2018 Did you lose for some reason permission in admin template ? Check if you have to add "useRoles":1 in data for admin template. 1 Link to comment Share on other sites More sharing options...
Roych Posted May 21, 2018 Author Share Posted May 21, 2018 not sure how to do that? Do I add this line "useRoles":1 in admin.php or ..? (tried, still not working) Link to comment Share on other sites More sharing options...
pwired Posted May 21, 2018 Share Posted May 21, 2018 Here is an old post with some solutions that might put you in the right direction: https://processwire.com/talk/topic/552-i-get-the-404-page-when-editing-home-page/ Link to comment Share on other sites More sharing options...
Roych Posted May 21, 2018 Author Share Posted May 21, 2018 thank you for link, but none of that resolved my issue. Not sure what to do anymore. ? Link to comment Share on other sites More sharing options...
bernhard Posted May 21, 2018 Share Posted May 21, 2018 make a fresh install, does it work? replace site folder, does it still work? replace db, does it still work? with the error clear cache and cookies (should not be the problem as you have the same problem on local dev, but just to be sure..), does that make a difference? see error logs, any hints? remove modules in the modules folder one by one and check if the error goes away. sorry, no idea, that's just some wild guesses... edit: also try to remove the files folder - maybe there is a corrupt file in it as you said you got the error while uploading. maybe it's a multilanguage issue? you can also check if the page exists via api, something like: $p = $pages->get(2); echo $p->path; echo $p->viewable() ? 'viewable' : 'not viewable'; Link to comment Share on other sites More sharing options...
FrancisChung Posted May 21, 2018 Share Posted May 21, 2018 Is there another computer you could try the install on? That should tell you whether it's definitely the install itself or machine related and we can go from there. What sort of machine / OS is it? 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