If you cannot access your site

When using WordPress, it sometimes happens that you can’t access your site. As you cannot access the dashboard even, you cannot do anything. It makes you abandon your site (*_*).

You won’t access your site, when the php files are broken.

For example, there are two problems with PHP files in the case above.

Fatal error : Allowed memory size of 524288000 bytes exhausted (tried to allocate 20480 bytes) in  michirojohn.com/public_html/wp/wp-includes/functions.php  on line  650

Fatal error : Allowed memory size of 524288000 bytes exhausted (tried to allocate 32768 bytes) in  michirojohn.com/public_html/wp-includes/pomo/streams.php  on line  189

Read the lines, it looks like about 524MB of memory was allocated then crashed.

It also says “tried to allocate ~~~ bytes”. So opened the server’s file manager and rewriting the lines of 650 and 189 to correct.

Before you edit a file, make a copy of it.

It’s much better to use a backup file than. Restore the data before the day of crash. It’s not certain what will happen for amateurs ( or even for professionals ).
After restoring the site, you should update your plugins one by one to find the cause. Mostly it is a plugin malfunction.

If you don’t know when it was broken, you would have to use a file manager. If your server doesn’t have a file manager, you just give it up (^^;.

To prevent this problem, it’s good to take the precautions for it.

1. Do not automatically update WordPress itself.
2. Do not automatically update plugins
3. Turn on Jetpack’s “Downtime Monitoring”
__Install Wordfence

If your site is currently working properly, there is no problem, so I recommend you not to update it automatically.

A bit older version of WordPress site is not weaker for security, so it’s better to update your sites manually rather.

If you receive a vulnerability report, you have to update them immediately.

WordPress system update
plugin updates

Also, turn on Jetpack’s ” Downtime Monitoring “. You can receive an alert email when your site is down. You can also receive a same alert by installing Wordfence. This will let you know the day the problem occurred. Immediately restore the data before the day. Time battle is.

You got it !

Leave a comment(コメントを残す)

タイトルとURLをコピーしました