Jump to content
neophron

Can't login, but no error message (solved)

Recommended Posts

Hi there,

a few weeks ago I completed a 3.098 installation (server php 7.2). Yesterday I wanted to login but failed. I tried different browsers, meanwhile on two different PCs, but no login.

Then I realized, that after hitting the »Login« button, there was no message (admin name – Login failed). I also tried all procedures (https://processwire-recipes.com/recipes/resetting-admin-password-via-api/). Then I checked the errors.txt (site/assets/logs) – nothing.

The frontend works fine. Is there a way to check this Processwire installation? Could be something missing?

 

Share this post


Link to post
Share on other sites

Activate debug mode in config.php, and also check your server's error log files. With something like the web development browser extension you could at least see if the server returns HTTP 200 or 500 - that would be a start for further debugging. You could also copy everything to another server, and try if you can login there (of course, do a mySQL dump, adjust config.php file etc.)

  • Like 2

Share this post


Link to post
Share on other sites

Thanks,

the debug mode is active.
These are the server logs statistics:

[Sat Nov 24 02:56:21 2018] [php7:error] [pid 31827] [client 2c0f:f038:208:8e00:453:7af4:3aa7:c8dc] [host robin-shillcock.com] script '/is/htdocs/wp1155705_7UFJDYJEXF/www/processwire_10-2018/wp-login.php' not found or unable to stat
[Sat Nov 24 03:02:46 2018] [php7:error] [pid 27344] [client 198.44.228.85] [host xxx.com] script '/is/htdocs/wp1155705_7UFJDYJEXF/www/processwire_10-2018/fuck.php' not found or unable to stat
[Sat Nov 24 03:02:48 2018] [php7:error] [pid 27384] [client 198.44.228.85] [host xxx.com] script '/is/htdocs/wp1155705_7UFJDYJEXF/www/processwire_10-2018/coon.php' not found or unable to stat
[Sat Nov 24 04:56:06 2018] [php7:error] [pid 19825] [client 111.93.22.58] [host xxx.com] script '/is/htdocs/wp1155705_7UFJDYJEXF/www/processwire_10-2018/wp-login.php' not found or unable to stat
[Sat Nov 24 14:33:27 2018] [php7:error] [pid 8407] [client 87.142.120.228] [host xxx.com] script '/is/htdocs/wp1155705_7UFJDYJEXF/www/processwire_10-2018/reset.php' not found or unable to stat

 The last entry is from my attempt to change the login with a reset.php. But someone tried to check, if this is Wordpress site.

Share this post


Link to post
Share on other sites

When we submit the login form of your admin page, the response is a 404 error code. Also your attempt to visit the reset.php failed, you might have an issue with the .htaccess file.

 

You could try the following :

  1. backup everything
  2. create a file - disable-procache.php - on the root web dir (along the index.php file) with this code:
    <?php namespace ProcessWire;
    require_once('./index.php');
    // get the module
    $pc = $modules->get('ProCache');
    // turn off procache
    $pc->cacheOn = false; 
  3. visit the page at http://yourwebsite.com/disable-procache.php
  4. replace the .htaccess file with this https://github.com/processwire/processwire/blob/master/htaccess.txt (do not forget to rename it to .htaccess)
  5. try to login - result ?
  • Like 2

Share this post


Link to post
Share on other sites

Thanks for your suggestion.

Thanks god, I had a backup (the Duplicator saved my ass). I extracted it and installed it in a subdomain. Login was no problem. Then I replaced the old htaccess with new one and – et voilla – I'm in. I remember, that I had to deactivate some rules in the htaccess file, cause Processwire had some problems with this hoster (Host Europe).

I think the reason was, that I added some rewriting stuff to the htaccess.

  • Like 1

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    No registered users viewing this page.

  • Similar Content

    • By ce90
      Hello everyone,
      hopefully this is the right place to ask and is not a duplicate question.
      I'm pretty new to processwire, so... if this question is kind of funny for some of you, you're welcome 😄 
      I have the following issue and can't find anything understandable about it. Maybe I'm searching the wrong way, but anyways.. here is my question:

      How is it possible to rewrite the URLs, that I'll get a *.php ending?
      Example:
      https://www.mysite.de/urlsegment/ -> https://www.mysite.de/urlsegment.php
      https://www.mysite.de/urlsegment/urlsegment/ -> https://www.mysite.de/urlsegment/urlsegment.php
      Because I've read a lot about "Why do you wanna do this or have that?" – here my answer for that in advance:
      I've built a processwire installation inside or around an existing website. Therefore, we want to keep the existing *.php Google entries. Sure, we could redirect via 301 Redirect, but would prefer to keep the *.php ending.
      If you have further questions, please do not hesitate to ask.
      Thank you in advance for your help.

      Best regards
      ce90
    • By Orkun
      Hi Guys
      How can I make a redirect inside the .htaccess to my custom maintenance.html file when any URL of my Website is accessed except the processwire admin (www.example.com/processwire/).
      Because I want that my User's still can access the website when they are loggedin in Processwire.
      When the current url starts with /processwire or if there is a processwire-login-cookie (Is there a cookie when user is logged in Processwire?) available the redirect should not work. Otherwise it should work.
      How can I achieve this?
    • By Jennifer Stock
      Greetings. I would like to restrict access to certain sections of my organization's ProcessWire site using pubcookie. We are rolling out Shibboleth authentication later this year but for now, it seems I can only make use of our institution's single sign-on routine by utilizing rules in an .htaccess file. 
      I am wondering if there is a way to ask PW to apply these rules to certain pages in the site, whether via template type or location in the page tree:
      AuthType UWNetID PubcookieAppID "MyApplication" require type staff faculty  
    • By dweeda
      I installed an SSL Certificate, then edited my .htaccess file:
        # -----------------------------------------------------------------------------------------------
        # 9. If you only want to allow HTTPS, uncomment the RewriteCond and RewriteRule lines below.
        # -----------------------------------------------------------------------------------------------
        RewriteCond %{HTTPS} off
        RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
      by uncommenting out the Rewrite lines.
      Now I get 404 error pages when I try go to any .../processwire-master/<pagename>/
      This includes my admin page at .../processwire-master/processwire/, so i can't get into my admin.
      What else do I need to do?
    • By pwfans
      Hello,
      1. Anybody can help, why this htaccess (location in root) doesn't work at 3.0.98 ? it show 404
      RewriteEngine on RewriteRule ^(.*)$ /subdirectory/$1 [L] That rule works in 3.0.62
      It redirect root request to subdirectory processwire installation and hiding the subdirectory name in url.
      I have try to uncomment htaccess inside subdirectory processwire installation :
      RewriteBase /pw/ to RewriteBase /subdirectory/ Doesn't help, still 404 when open the site from root domain.
      2. Is there anyway to find processwire version from processwire files ? not from admin login page.
      Thank you.
×
×
  • Create New...