rick Posted August 10, 2015 Share Posted August 10, 2015 Howdy folks! Hope everyone is having a great weekend. I have a slight problem. I am no longer able to login from the admin page. It continuously displays the login page. I have not changed my password or my user name, nor made any changes in /wire. I tried this approach, processwire-recipes.com/recipes/resetting-admin-password-via-api/ but I get the following errors: Trying to get property of non-object in /[localhost]/sc/wire/core/Page.php on line 1459 Fatal error: Call to a member function hasField() on a non-object in /[localhost]/sc/wire/core/Page.php on line 1459 Error: Call to a member function hasField() on a non-object (line 1459 of /[localhost]/sc/wire/core/Page.php) The last entry in apache error log that was not a stack trace was: PHP Notice: Object of class InputfieldSelect could not be converted to int in /[localhost]/sc/wire/core/InputfieldWrapper.php on line 652, referer: http://localhost/sc/scadmin/setup/field/edit?id=127 Any suggestions would be greatly appreciated. P.S. Speaking of the apache error log. Is there any way of turning off all the entries? I have error_reporting( E_ALL & ~E_DEPRECATED & ~E_NOTICE ); set in /site/config.php but my error log is currently over 3M worth of stack traces just from today's work. P.P.S. I think I will pour myself a glass of scotch. Cheers! Link to comment Share on other sites More sharing options...
pwired Posted August 10, 2015 Share Posted August 10, 2015 Check with manual queries your database tables where login data is stored Check permissions on folders try maximum permissions recursively to all the folders Replace the wire folder. Link to comment Share on other sites More sharing options...
rick Posted August 10, 2015 Author Share Posted August 10, 2015 Non of those options made a difference. I've been working on two items, logging in with email rather than username, and per user type profiles. I've removed all the changes except for the cloned user templates and associated pages. I can now log in. It obviously has to be pilot error, so I will re-apply the changes, noting at each step where any failure might ocurr, and report back. Thanks pwired for the input. Link to comment Share on other sites More sharing options...
pwired Posted August 10, 2015 Share Posted August 10, 2015 Not sure but I remember something about replacing the index.php might help. Are there any messages popping up during login ? Did you turn debug mode on ? This will ensure that errors are sent to the screen, exceptions reported, etc. This can be found in /site/config.php. By default, it is false. You'll want to change it to true:$config->debug = true; 1 Link to comment Share on other sites More sharing options...
adrian Posted August 10, 2015 Share Posted August 10, 2015 I've been working on two items, logging in with email rather than username If you having issues getting this to work, I have posted two separate ways of doing this: https://processwire.com/talk/topic/1716-integrating-a-member-visitor-login-form/page-5#entry89599 and https://processwire.com/talk/topic/1716-integrating-a-member-visitor-login-form/page-5#entry89616 Pros and cons to each version, so you should read all the posts in between as well. Personally I would go with the second one, just be aware that if you want it to work on the front-end you need to consider the name of your form fields. 2 Link to comment Share on other sites More sharing options...
rick Posted August 10, 2015 Author Share Posted August 10, 2015 Thanks adrian and pwired. I do have debug on, and any other option I can set to offer info while 'in dev mode' I'll check those links you posted. [edit] @adrian: I am using Ryan's procedure found here, https://processwire.com/talk/topic/107-custom-login/?p=735 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