Author Topic: Error: ftp_login(): Login authentication failed (slow loading site)  (Read 2807 times)

AngryPanda

  • Active Member
  • ***
  • Posts: 51
  • Karma: +0/-0
Does anyone know what could cause slow load times? I have a 98% score with Gtmetrix but the index.php file is taking nearly 5 seconds to load / respond. It doesn't seem to be an issue with the server as other sites on the same server all have fast load / response times.

Update: Found an error in the error log

Code: [Select]
ftp_login(): Login authentication failed
Code: [Select]
Array
(
    [0] => Array
        (
            [function] => error_handler
            [args] => Array
                (
                    [0] => 2
                    [1] => ftp_login(): Login authentication failed
                    [2] => /home/*****/public_html/includes/classes/fileop.class.php
                    [3] => 24
                    [4] => Array
                        (
                            [ftp_error] =>
                        )

                )

        )

The FTP username and password are correct. I have even tried adding a new FTP user, but no luck. Still experiencing extremely slow load times. Almost like nothing is being fetched from the cache.

AngryPanda

  • Active Member
  • ***
  • Posts: 51
  • Karma: +0/-0
Re: Error: ftp_login(): Login authentication failed (slow loading site)
« Reply #1 on: February 21, 2014, 01:53:56 PM »
Still haven't been able to pinpoint what's causing this error.

Any ideas?

maverick

  • Administrator
  • Veteran Member
  • *****
  • Posts: 2956
  • Karma: +210/-7
    • Maverick Webworks
Re: Error: ftp_login(): Login authentication failed
« Reply #2 on: February 24, 2014, 10:44:20 AM »
There may have been some changes to your server by your host.

When you install Etano, the script tries to detect which FILEOP_MODE your server uses or allows, there's 2 possibilities, FTP or DISK modes.

If you have a lot members FTP mode isn't recommended as it's slower than DISK mode and might time out when regenerating a large cache, which could be the cause of the slow load times you're experiencing.

You check what mode you're using by looking in your includes/defines.inc.php file.  (you need to check the defines file on your server, not the one in the Etano install package as no server info has been written to it. The info in the defines file is created during the install process.)

If it's in DISK the following lines will look like this:
===============================
define('_FILEOP_MODE_','disk');
define('_FTPHOST_','');
define('_FTPPATH_','');
define('_FTPUSER_','');
define('_FTPPASS_','');

===============================
In DISK mode the 4 extra lines are left blank. If your host allows DISK mode (recommended mode) then use these settings in your defines file.

If it's in FTP the following lines will look like this:
===============================
define('_FILEOP_MODE_','ftp');
define('_FTPHOST_','');
define('_FTPPATH_','');
define('_FTPUSER_','');
define('_FTPPASS_','');

===============================
In FTP mode the 4 last lines will need to have other info such as host name, the path, and also the FTP user and password info. If your host only allows FTP mode then they will have to supply you with the appropriate info. 

If it's in FTP mode, changing the above lines of code so it's in disk mode could effect some files permissions and not work properly until you change the file permissions.

Here's a few topics that have some info regarding this:
http://forum.datemill.com/index.php?topic=1948.0
http://forum.datemill.com/index.php?topic=1876.0

You may have to contact your host regarding the mode your server uses and what the permissions should be, or possibly they can alter the permissions.

Fusion Responsive Template & Free Mods
http://www.maverickwebworks.com
DO NOT PM me asking for personal help. Post your problem or request in the forums so the entire community can contribute and benefit.

AngryPanda

  • Active Member
  • ***
  • Posts: 51
  • Karma: +0/-0
Re: Error: ftp_login(): Login authentication failed (slow loading site)
« Reply #3 on: February 24, 2014, 11:12:40 AM »
That's it! I changed the FILEOP_MODE to 'disk' and response times are back to normal. File permissions don't seem to have been affected.

Thanks for taking the time to give such a detailed answer, Maverick. I really appreciate it.

Karma +


maverick

  • Administrator
  • Veteran Member
  • *****
  • Posts: 2956
  • Karma: +210/-7
    • Maverick Webworks
Re: Error: ftp_login(): Login authentication failed (slow loading site)
« Reply #4 on: February 24, 2014, 12:48:10 PM »
You're welcome, glad it worked out with minimal fuss.

Fusion Responsive Template & Free Mods
http://www.maverickwebworks.com
DO NOT PM me asking for personal help. Post your problem or request in the forums so the entire community can contribute and benefit.