1

We have web site with CraftCMS Pro 2.6.2930. Due to development of new site, we set test web server (Centos/Apache/mariaDB) in our local network and migrated whole site there for testing (2.6.2993 with trial license). Site is working, but logins to craft admin webpage are rejected (log in button is greyed out).

For migration i have followed this Migration of Craft CMS from one host to another (we deleted license.key file)

Craft/storage/runtime/logs shows

2018/05/17 13:45:58 [warning] [application] tried to log in unsuccessfully.

Site content is migrated successfully.

PS: I've already tried this and it isn't working: Reset password with MySQL

Any ideas?

PS: It seems my problem is very similar to this one Control Panel access. Greyed out button since i see (almost the same) errors

user8391
  • 21
  • 2
  • Do you have any JavaScript errors in your browser's console on the login page? – Brad Bell May 17 '18 at 20:19
  • @BradBell yes there are 9 errors shown https://imgur.com/ZbwsvGp – user8391 May 18 '18 at 18:40
  • btw i'm not so deep into web or craft so i could interpret it. Since similar question exists, i've uploaded all files again to the server via WinSCP using "auto" option for transfer type, but no luck there – user8391 May 18 '18 at 18:48
  • What do you get when you try to load that first JS file in a browser? i.e. http://yoursite.com/admin/resources/lib/d3/d3.min.js – Brad Bell May 18 '18 at 21:26
  • it is d3.min.js file https://imgur.com/OB6TIzV Permissions are 777 – user8391 May 19 '18 at 05:19
  • Weird... if you want to send some CP and (s)FTP/SSH credentials over to support@craftcms.com, we can poke around a bit. – Brad Bell May 21 '18 at 00:21
  • I've solved the problem! I guess all those files (showing erros) were somehow corrupted during download from web server in production. I've downloaded and copied all those files again and voila, it works!! However huge THANKS to Brad for pointing me in the right direction by looking browser console! – user8391 May 21 '18 at 07:36
  • Glad you got it sorted! Would you mind adding what worked for you as an official answer? Might end up helping someone in the future. – Brad Bell May 22 '18 at 04:54

1 Answers1

1

Resolved! So, the console clearly showed which files were broken.

I've downloaded those files again from production server, and uploaded on my test server. Login succeed without any problems now!

I guess it has something to do with transfer mode (auto, binary, text etc) when transferring files via FTP. Transfer mode should be on auto, otherwise files might get corrupted which can cause all kind of (weird) problems. Thanks to Brad for help!

user8391
  • 21
  • 2