• Resolved Iris Kammerer

    (@iriskammerer)


    Hi all,

    I am in despair. All of a sudden a working WP site came back with a fatal error and a form request asking for FTP credentials. When I do that, the error just repeats.

    I checked all the files, and as far as I can see nothing was manipulated.

    There is no problem with the database connection, I checked that.

    I uploaded all WP files via FTP on the site, rewriting the old ones (same version 6.8.1), but no effect.

    I am a member of the board of a club and the webmaster for keeping up WordPress for the club’s website. I have no technical access to the admin panel of the web account, I cannot even check the error log or the database (the MyPHPAdmin data I got, never worked). I just know that there had been “some problems after upgrading the database software”, but the tech support is not very helpful, blaming it all on WP, which he admittedly doesn’t know at all. Yet, I do, right from the start, but something like this never occurred.

    I have several sites running with different configurations on different servers, and this one is the only one that breaks down.

    I assume the error occurs due to a bad configuration of the web server. But how can I find out?

    Thank you! Cheers,

    Iris

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Yogesh Yadav

    (@20yogesh)

    1. Enable WP Debug Mode (via FTP)
      define(‘WP_DEBUG’, true);
      define(‘WP_DEBUG_LOG’, true);
      define(‘WP_DEBUG_DISPLAY’, false); // Hide from frontend

      2. Force Direct File Access (to Bypass FTP Prompt)
      define(‘FS_METHOD’, ‘direct’);
      In wp-config.php, add:

      3. Check File Permissions (via FTP)
      Ensure typical WP permissions:
      Folders: 755
      Files: 644
      wp-config.php: 640 or 644
      If permissions are too restrictive, WP can’t function properly, and it’ll keep asking for FTP.

      4. Temporarily Rename Plugins and Themes

      Still via FTP:
      Rename /wp-content/plugins/ to /wp-content/plugins-old/.
      Rename your active theme folder (inside /wp-content/themes/) to something else.
      This disables all plugins/themes. Then try loading the site. If it works, the issue is a plugin/theme conflict (possibly due to the database or PHP version change).
    Sandeep Dahiya

    (@sandeepdahiya)

    Defining (‘FS_METHOD’, ‘direct’); is basically bypassing wordpress security which is not the right way. The proper solution is to provide proper permissions in your wordpress directory. https://developer.ww.wp.xz.cn/advanced-administration/server/file-permissions/

    further, you dont need access to Admin panel. These permissions can be modified using a simple FTP client like Filezilla.

    Thread Starter Iris Kammerer

    (@iriskammerer)

    Seems the permissions are the problem. Directories are set to 770, files to 660. Even via FTP client I cannot change the permissions. I tried it and it was denied. 😉

    I contacted the provider’s tech support to switch the permissions to 755 and 644. Hopefully, the problem will be solved then.

    Thank you all!

    Thread Starter Iris Kammerer

    (@iriskammerer)

    It worked. Promissions are now set to 755 (directories) and 644 (files).

    Thank you all!

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Fatals Error – asking for credentials’ is closed to new replies.