Support » Fixing WordPress » Blank WP after deleting files from test server.

  • Resolved Veebimeister

    (@veebimeister)


    Hi,

    I got blank WP (also wp-admin) (https://indiast.ee) after I deleted the files from testing server. Testing server and live server are not connected. The files are here in live server and none of them are touched.
    I can not figure it out, how it was connected and what files (or database tables)I have to investigate to fix this problem.
    I tried already turning off/on plugins and themes.

    Can someone please give me some hints, what may cause this problem?

    Thank You

Viewing 11 replies - 1 through 11 (of 11 total)
  • Moderator James Huff

    (@macmanx)

    Volunteer Moderator

    Internal server errors (error 500) are often caused by plugin or theme function conflicts, so if you have access to your admin panel, try deactivating all plugins. If you don’t have access to your admin panel, try manually resetting your plugins (no Dashboard access required). If that resolves the issue, reactivate each one individually until you find the cause.

    If that does not resolve the issue, try switching to the Twenty Seventeen theme to rule-out a theme-specific issue. If you don’t have access to your admin panel, access your server via SFTP or FTP, or a file manager in your hosting account’s control panel, navigate to /wp-content/themes/ and rename the directory of your currently active theme. This will force the default theme to activate and hopefully rule-out a theme-specific issue.

    If that does not resolve the issue, it’s possible that a .htaccess rule could be the source of the problem. To check for this, access your server via SFTP or FTP, or a file manager in your hosting account’s control panel, and rename the .htaccess file. If you can’t find a .htaccess file, make sure that you have set your SFTP or FTP client to view invisible files.

    If you weren’t able to resolve the issue by either resetting your plugins and theme or renaming your .htaccess file, we may be able to help, but we’ll need a more detailed error message. Internal server errors are usually described in more detail in the server error log. If you have access to your server error log, generate the error again, note the date and time, then immediately check your server error log for any errors that occurred during that specific time period. If you don’t have access to your server error log, ask your hosting provider to look for you.

    @veebimeister published last lines of the error_log
    otherwise we do not have as realizing the problems

    Thread Starter Veebimeister

    (@veebimeister)

    Now I tried to overwrite the wp-config file. The server doesn’t let me do that. It says that “Operation not permitted”.
    How can I get the error_log?

    P.S. I already tried theme and plugin resetting and I cleaned the htaccess file. No luck with that.

    Moderator James Huff

    (@macmanx)

    Volunteer Moderator

    Don’t change the wp-config file, no one is suggesting that.

    The location (and ways of accessing) the server error log vary depending on the hosting provider, so I recommend checking their documentation or contacting their support department for specifics on that.

    Just a reminder, we’ll need the error log entry from the specific date/time you saw the internal server error (error 500) in your browser. Simply attempt to visit the site again to generate a new error log entry.

    Thread Starter Veebimeister

    (@veebimeister)

    I have these error logs:
    error.log
    ssl-error.log
    transfer.log
    ssl-transfer.log

    Which one do You need?

    Thread Starter Veebimeister

    (@veebimeister)

    Hi,

    I got this info from my hosting provider:

    PHP Fatal error: Unknown: Failed opening required ‘/www/apache/domains/www.convertonline.ee/htdocs/indiast/wordfence-waf.php’

    Faili ‘htdocs/.user.ini’ sisu on:
    ; Wordfence WAF
    auto_prepend_file = ‘/www/apache/domains/www.convertonline.ee/htdocs/indiast/wordfence-waf.php’
    ; END Wordfence WAF

    Thread Starter Veebimeister

    (@veebimeister)

    I understand that when I deleted the files from test server (convertonline.ee) then the Wordfence can not get the access to them anymore?
    Do I have to change the wordfence-waf.php file?

    @veebimeister it seems that you have not set well wordfence
    The best thing you should ask them their advice

    does not exist wordfence-waf.php on the server at least not in this directory /www/apache/domains/www.convertonline.ee/htdocs/indiast/

    Thread Starter Veebimeister

    (@veebimeister)

    I don’t have the Wordfence plugin in this site.

    Thread Starter Veebimeister

    (@veebimeister)

    Hi,

    I deleted wordfence related lines from user.ini and I got the site back.

    Moderator James Huff

    (@macmanx)

    Volunteer Moderator

    Excellent!

    For those who stumble across this thread, here’s the solution from Wordfence’s documentation: https://docs.wordfence.com/en/After_moving_a_site_or_deleting_some_files,_I_see:_PHP_Fatal_error:_Unknown:_Failed_opening_required_/var/www/html/wordfence-waf.php

    • This reply was modified 5 years, 4 months ago by James Huff.
Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Blank WP after deleting files from test server.’ is closed to new replies.