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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Similar Content

    • 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.
    • By rareyush
      I moved my site to Google cloud platform and i am stuck some where.
      my homepage is working fine but when it comes to other pages it says 404 not found
      and when i add this on virtual host 
       
      <Directory "/var/www"> Options Indexes FollowSymLinks AllowOverride All Require all granted </Directory> or <Directory "/var/www"> AllowOverride All </Directory>  
          I receive internal server error 
       
       
       
      I tried comment out this line to but still same thing 
      # RewriteBase /
      and
        # RewriteRule ^(.*)$ /index.php?it=$1 [L,QSA]
    • By joelplambeck
      Hi Guys,
      I'm trying to do my first migration to the customers existing server (IIS 10) . I ran the site as a subdirectory on my website for test purposes (everything works fine).
      Following the tutorial of Joss, I tryed the site on a local xampp server to make sure, it also works on a root directory. So far so good, everything works.
      Now I moved the files (from the xampp) to the customers server. The root/index page is shown but for every subpage i get 404 Errors...
      Hence I followed the troubleshooting guide for not working URLs:
      On the first sight, the .htaccess file is not recognized, therefore I contacted the host support. They said, it is recognized but not all modules are supported in the processwire .htaccess file. I did the "öalskjfdoal" test in the .htaccess file and didn't get a 500 Error.... BUT the rewrite rule from the hosts support, to proof the file is read, DID work... The support claims, they do not provide debugging... so basically the .htaccess file is recognized and working, but not throwing any errors (for whatever reason).
      Working rewrite rule (from support):
      RewriteEngine On RewriteBase / RewriteRule ^test\.asp$ index.html [NC,L] RewriteRule ^test\.html$ konzept.html [NC,L] RewriteRule ^test2\.html$ team.html [NC,L] The support said, a couple modules are not supported in the htaccess file, the supported ones are listed here: http://www.helicontech.com/ape/ (I think mod_rewrite is supported)
      As I do not completely understand what exactly is happening in the htaccess file, I'm stuck. I tried all suggestions I found regarding this topic on the forum, but none of them solved the problem.
       
      .htaccess.txt