Categories
Blogs Free to use TIK Wordpress World Wide Web

9 Proven Methods to Fix WordPress White Screen of Death (WSoD)

 
wordpress white screen of death

 

 

Nothing is worse than browsing to your WordPress site and suddenly being met with the White Screen of Death (WSoD). This error makes your website inaccessible to both administrators and visitors.

The WSoD can also be incredibly frustrating, due to the lack of information pointing to a possible cause or solution. However, it is also one of the most common WordPress errors. So while concerning, in most cases it’s resolvable.

In this post, we’ll explain what the WordPress WSoD is and what its common causes are. Most importantly, we’ll walk you through nine potential solutions for getting your site back up and running as fast as possible.

Let’s get started!

What’s the WordPress White Screen of Death?

 

True to its name, the WordPress White Screen of Death (also known as “WSoD”) occurs when, instead of the web page you’re trying to access, you’re faced with a blank white screen in its place.

Depending on the browser you’re using, you could get different error messages. Below is an example in Google Chrome, which includes an HTTP 500 error warning “This page isn’t working and is unable to handle the request”:

wordpress wsod chrome

The WordPress White Screen of Death in Google Chrome

Now let’s take a look at the White Screen of Death in Mozilla Firefox:

wordpress wsod firefox

The WordPress WSoD in Mozilla Firefox

As you can see, it’s just a plain white screen. It doesn’t contain any useful errors or warning messages.

The WordPress White Screen of Death is almost always caused by PHP code errors or memory limit exhaustion.

Another possible cause is a faulty theme or plugin. The latter is likely the issue if the frontend of the website is down, but your WordPress admin area is up. To quickly check whether the dashboard on your site is working, simply navigate to yourdomain.com/wp-admin.

So, how do you fix WSoD? Glad you asked!

The WordPress White Screen of Death is frustrating, confusing, but ultimately, fixable! 😅 Here are 9 easy solutions for you to try ⬇Click to Tweet

How to Fix WordPress White Screen of Death (9 Methods)

 

When you experience the WordPress White Screen of Death, your priority will be to fix it as quickly as possible. With that in mind, let’s take a look at nine possible solutions you can use to resolve it.

1. Disable Your WordPress Plugins

 

One of the easiest and most common ways to fix the WordPress WSoD is to simply disable all of your plugins. Often, a site goes down due to a bad plugin update.

If you can still access your admin area, a quick way to do this is to navigate to Plugins from the dashboard, select all plugins, and then click on Deactivate from the Bulk Actions dropdown menu:

WSOD: Deactivate all WordPress Plugins setting

The Deactivate all WordPress Plugins setting

This will disable all of your plugins.

If that fixes the issue, you’ll need to find the culprit. To do this, you can start activating the plugins one by one, reloading the site after each activation. When your frontend goes down, you’ve found the misbehaving plugin.

You can then reach out to the plugin’s developer for help or post a support ticket in the WordPress Plugin Directory.

If you can’t access your dashboard, you can use a File Transfer Protocol (FTP) client to access your site’s files directory.

Under the wp-content folder of your root directory, locate the plugins folder. Rename it to something along the lines of “plugins_old”:

WSoD: Rename your plugins folder

Rename your plugins folder

Then, check your site again on the frontend. If this works, you will need to test each plugin one by one. Rename your plugin folder back to “plugins”, and then individually rename each plugin folder inside of it until you locate the faulty one.

2. Switch to a Default WordPress Theme

 

If the problem isn’t a plugin, your WordPress theme may be the cause of the White Screen of Death. To see if this is the issue, you can replace your theme by switching to a default one.

If you can access your admin area, go to Appearance > Themes in your dashboard. Locate and activate a default WordPress theme such as Twenty Twenty:

WSOD: switch to a default theme

The Twenty Twenty WordPress theme.

Then, test your site again. If it works, you’ll know the problem lies with your theme.

 

If you can’t access your dashboard, the process is the same as it is with plugins.

Use FTP to access your site’s files, and rename your wp-content/themes folder to something else:

WSoD: theme folder

Rename your themes folder

WordPress will then revert to the latest default theme, which is most likely Twenty Twenty. If you don’t have any other themes, you can download one from the WordPress Theme Directory and then upload it to your themes folder.

After that, go ahead and check your site again. If it works, perhaps your theme has had a conflict or a bad update. If this is the case, you might need to reach out to the developer for help or consider switching themes.

3. Clear Browser and WordPress Plugin Cache

 

If you have access to the backend of your WordPress site but are still seeing the WSoD on the frontend, it might be due to an issue with your cache.

To fix it, try clearing your web browser’s cache and your WordPress caching plugin (assuming you have one installed).

If you have a caching plugin installed on your WordPress site, such as WP Rocket or WP Super Cache, most offer a quick way to clear the cache via the plugin’s settings page.

Using WP Super Cache as an example, in your WordPress dashboard you would navigate to Settings > WP Super Cache > Delete Cache:

delete plugin cache

The WP Super Cache plugin settings page

How to Clear Your Cache from MyKinsta

 

If you’re a Kinsta user, there’s also an easy way for you to clear your cache using MyKinsta. To do this, log in to your account. Click on Tools, followed by Clear cache under the Site Cache section:

kinsta site cache

The Clear cache option in MyKinsta

Once you empty the cache, save your changes. Then revisit your site to see whether that corrected the issue. If not, it’s time to move on to another solution.

4. Switch on Debugging Mode

 

If you are still seeing the WordPress White Screen of Death, the admin area isn’t working, or you think you’ve found the problem but want to dig deeper, you can enable debugging mode. This will show any errors that are occurring on your website.

To enable debugging, you’ll need to open the wp-config.php file of your WordPress install. Within it you should find the following line:

define( 'WP_DEBUG', false )

Change “false” to “true”, and then reload your site. If this line doesn’t exist, you can add it to the top of the file.

Instead of the white screen, you’ll get a white screen and some error messages. This isn’t a huge improvement, but it’s only a start. The WSoD error message should state which file the problem originated in, like this:

Cannot redeclare get_posts() (previously declared in 
/var/www/html/wordpress/wp-includes/post.php:1874) in 
/var/www/html/wordpress/wp-content/plugins/my-test-plugin/my-test-plugin.php on line 38

You can see at the end of this example message that the problem is in line 38 of a plugin called my-test-plugin. Therefore, disabling that plugin should resolve the issue.

If you don’t see any errors at all after enabling debug mode, you might need to reach out to your web host. It’s possible debugging isn’t correctly configured on your server.

Kinsta customers have the option to use a built-in debugging tool. From the MyKinsta dashboard, click on your website’s name followed by Tools. Under WordPress debugging, select Enable:

kinsta debugging tool

How to enable WordPress debugging mode in MyKinsta

You can then access your error log under the Logs section of your MyKinsta dashboard, and explore them to learn more about the problem.

Keep in mind that having the debugging mode turned on can expose some of your website’s information to unapproved users. Therefore, make sure to always turn the mode off when you’re done using it.

 
Info

Would love to give MyKinsta a test run? Create your demo account for free and start playing around with it.

5. Increase Your Memory Limit

 

If you still see the dreaded WSoD empty page after trying some of the above solutions, or you get an error complaining about memory limits or exhausted memory, you’ll need to assign more memory to the application.

This can be done through the wp-config.php file on many WordPress installs. Open the file and add the following code:

define('WP_MEMORY_LIMIT', '64M');

If this doesn’t seem to work, you have a few options. In a regular environment, you can use your .htaccess file to increase the memory limit. Simply add the following line:

php_value memory_limit 64M

If you can’t access your .htaccess file, you can use your php.ini file to increase the memory limit instead.

Struggling with downtime and WordPress issues? Kinsta is the hosting solution designed with performance and security in mind! Check out our plans

To do that, connect to your server via FTP. In the root directory of your site, look for the php.ini file. Once you locate it, add the following line anywhere inside the file:

memory_limit = 64M

If you’re still out of memory and need to assign more, there may be an issue within your application. Perhaps your theme or one of your plugins is using an inordinate amount of resources.

At this point, you may want to hire a developer to take a look. Even your host may be able to help, by showing you the SQL logs and other resource stats for your site.

“Kinsta customers won’t need to increase their memory limit as all of our plans set a default memory limit of 256 MB.

6. Check File Permission Issues

 

Another potential cause of the WSoD is permission and ownership issues. It is possible to fix this problem yourself. However, unless you really know what you’re doing, we would advise against it as you can inadvertently create vulnerabilities that attackers can exploit.

When it comes to WordPress permissions, there are three simple rules to follow:

  • Files should be set to 664 or 644.
  • Folders should be set to 775 or 755.
  • The wp-config.php file should be set to 660, 600, or 644.

If you have SSH access to your server, you can apply the appropriate rules with the following command, running it from the root WordPress directory:

sudo find . -type f -exec chmod 664 {} +
sudo find . -type d -exec chmod 775 {} +
sudo chmod 660 wp-config.php

If you are unsure how to do this or are a bit intimidated, go ahead and ask your web host for help.

7. Check for Failed Auto-Update Issues

 

Sometimes WordPress runs into an issue with updates, such as when the server times out. More often than not, this problem resolves itself automatically. However, in some rare cases, it may lead to the WordPress White Screen of Death.

The first thing you should do is go into your WordPress root directory and see if there’s a .maintenance file there (the file’s name may be abbreviated as well).

What you’d want to do is try deleting that file and loading up your site again.

If the update was successful, but WordPress failed to remove this file automatically, everything should go back to normal.

If the update was not completed, it may be restarted automatically, in which case things should go back to normal just the same.

If all else fails, follow the recommended manual update procedure for WordPress, which should resolve the issue once and for all.

8. Resolve Syntax Errors or Restore a Backup

 

Another common cause for the WordPress WSoD is when you’re editing the code on your WordPress site and accidentally mistype something or use the wrong syntax.

One character in the wrong place could take down your entire site, which is why you should never edit code on your live production site.

Not to worry, though. You can always connect to your site via FTP and revert the change you made manually. If you don’t know what change caused the problem, this is where having WordPress backups in place comes in handy.

Here at Kinsta, you can restore your site to an earlier point in time with a single click. To do this, log in to your MyKinsta dashboard and navigate to Backups:

The backup feature in MyKinsta

The backup feature in MyKinsta

Keep in mind that if you enabled debug mode in WordPress earlier, there might also be an error message indicating a parse syntax error. If this is the case, it should tell you exactly where to find the problem code.

9. Increase the PHP Text Processing Capability

 

At this point, if the WSoD has not yet been resolved, there’s one additional trick you can try. On rare occasions, this problem might occur because of a page or post is particularly long.

If this is the case, you can try adjusting the PHP text processing capability on your site, by increasing the backtrack and recursion limits. To do so, paste the following code within your wp-config.php file:

/* Trick for long posts /
ini_set('pcre.recursion_limit',20000000);
ini_set('pcre.backtrack_limit',10000000);

Once you add this code, save your changes. Then refresh your site to see if it’s now working.

Faced with the dreaded WordPress White Screen of Death? 😭 Don’t worry… these 9 fixes will get your site back up & running in a flash! 💥Click to Tweet

Summary

 

The WordPress White Screen of Death can be incredibly frustrating, even frightening. There are a number of things that can go wrong, but thankfully the situation is usually not as bad as it seems.

A simple plugin and/or theme check should fix the WSoD issue in most cases. Getting more familiar with WordPress debug mode will definitely shed more light on the problem and guide you.

If you’ve encountered any other WordPress White Screen of Death situations, let us know so we can learn from it and share the experience!

Sources by , July 2, 2020

For another technical wordpress issue, you can read https://www.toptal.com/wordpress#hiring-guide

Leave a Reply

Your email address will not be published. Required fields are marked *

Categories
Blogs Free to use TIK Wordpress World Wide Web

9 Cara Mudah untuk Memperbaiki White Screen of Death (WSoD) WordPress

Layar putih saat buka website? kalau pakai wordpress, solusinya mudah banget, ikuti langkah ini.

 
wordpress white screen of death

 

 

Tidak ada yang lebih buruk dari pada menjelajah ke situs WordPress dan tiba-tiba bertemu dengan Layar Putih Kematian (WSoD). Kesalahan ini membuat situs web Anda tidak dapat diakses oleh administrator dan pengunjung.

WSoD juga bisa sangat membuat frustrasi, karena kurangnya informasi yang menunjukkan kemungkinan penyebab atau solusinya. Namun, ini juga salah satu kesalahan WordPress yang paling umum. Jadi meski memprihatinkan, dalam banyak kasus itu bisa diselesaikan.

Dalam posting ini, kami akan menjelaskan apa itu WSoD WordPress dan apa penyebab umumnya. Yang terpenting, kami akan memandu Anda melalui sembilan solusi potensial untuk membuat situs Anda kembali aktif dan berjalan secepat mungkin.

Mari kita mulai!

Apa itu White Screen (Layar Putih) of Death WordPress?

Sesuai dengan namanya, Layar Putih Kematian WordPress (juga dikenal sebagai “WSoD”) terjadi ketika, alih-alih halaman web yang Anda coba akses, Anda dihadapkan pada layar putih kosong sebagai gantinya.

Bergantung pada browser yang Anda gunakan, Anda bisa mendapatkan pesan kesalahan yang berbeda. Di bawah ini adalah contoh di Google Chrome, yang menyertakan peringatan kesalahan HTTP 500  “Halaman ini tidak berfungsi dan tidak dapat menangani permintaan”:

wordpress wsod chrome

WordPress White Screen of Death di Google Chrome

Sekarang mari kita lihat White Screen of Death di Mozilla Firefox:

wordpress wsod firefox

WordPress WSoD di Mozilla Firefox

Seperti yang Anda lihat, itu hanya layar putih biasa. Itu tidak mengandung kesalahan yang berguna atau pesan peringatan.

White Screen of Death WordPress hampir selalu disebabkan oleh kesalahan kode PHP atau kehabisan batas memori.

Kemungkinan penyebab lainnya adalah tema atau plugin yang salah. Yang terakhir kemungkinan adalah masalah jika bagian depan situs web sedang down , tetapi area admin WordPress Anda sedang aktif. Untuk memeriksa dengan cepat apakah dasbor di situs Anda berfungsi, cukup navigasikan ke yourdomain.com/wp-admin.

Jadi, bagaimana Anda memperbaiki WSoD? Senang Anda bertanya!

Cara Memperbaiki White Screen of Death WordPress (9 Metode)

Saat Anda mengalami White Screen of Death WordPress, prioritas Anda adalah memperbaikinya secepat mungkin. Dengan mengingat hal itu, mari kita lihat sembilan kemungkinan solusi yang dapat Anda gunakan untuk mengatasinya.

Panduan dari Kinsta:

1. Nonaktifkan Plugin WordPress Anda

Salah satu cara termudah dan paling umum untuk memperbaiki WSoD WordPress adalah dengan menonaktifkan semua plugin Anda . Seringkali, sebuah situs mati karena pembaruan plugin yang buruk.

Jika Anda masih dapat mengakses area admin Anda , cara cepat untuk melakukannya adalah dengan menavigasi ke Plugin  dari dasbor, pilih semua plugin, lalu klik Nonaktifkan  dari menu tarik-turun Tindakan Massal :

WSOD: Deactivate all WordPress Plugins setting

Pengaturan Nonaktifkan semua Plugin WordPress

Ini akan menonaktifkan semua plugin Anda.

Jika itu memperbaiki masalah, Anda harus menemukan pelakunya. Untuk melakukan ini, Anda dapat mulai mengaktifkan plugin satu per satu, memuat ulang situs setelah setiap aktivasi. Ketika frontend Anda down, Anda telah menemukan plugin yang bermasalah.

Anda kemudian dapat menghubungi pengembang plugin untuk mendapatkan bantuan atau memposting tiket dukungan di Direktori Plugin WordPress.

Jika Anda tidak dapat mengakses dasbor, Anda dapat menggunakan klien File Transfer Protocol (FTP)  untuk mengakses direktori file situs Anda.

Di bawah folder wp-content  dari direktori root Anda, cari folder plugins  . Ubah namanya menjadi sesuatu di sepanjang baris “plugins_old”:

WSoD: Rename your plugins folder

Rename your plugins folder

Kemudian, periksa kembali situs Anda di frontend. Jika ini berhasil, Anda perlu menguji setiap plugin satu per satu. Ganti nama folder plugin Anda kembali menjadi “plugins” ,  lalu ganti nama setiap folder plugin di dalamnya sampai Anda menemukan yang salah.

2. Beralih ke Tema WordPress Default

Jika masalahnya bukan pada plugin, tema WordPress Anda mungkin menjadi penyebab Layar Putih Kematian. Untuk melihat apakah ini masalahnya, Anda dapat mengganti tema Anda  dengan beralih ke tema default.

Jika Anda dapat mengakses area admin, buka Tampilan > Tema  di dasbor Anda. Temukan dan aktifkan tema WordPress default seperti Twenty Twenty :

WSOD: switch to a default theme

Tema Twenty Twenty di WordPress.

Kemudian, uji situs Anda lagi. Jika berhasil, Anda akan tahu masalahnya terletak pada tema Anda.

Baca artikel wordpress lainnya di https://hilfan.staff.telkomuniversity.ac.id/en/tag/wordpress-en-2/

Jika Anda tidak dapat mengakses dasbor Anda, prosesnya sama dengan plugin.

Gunakan FTP untuk mengakses file situs Anda, dan ganti nama folder wp-content/themes Anda  menjadi sesuatu yang lain:

WSoD: theme folder

Ganti nama folder tema wordpress

WordPress kemudian akan kembali ke tema default terbaru, yang kemungkinan besar adalah Dua Puluh Dua Puluh. Jika Anda tidak memiliki tema lain, Anda dapat mengunduhnya dari Direktori Tema WordPress lalu mengunggahnya ke folder tema Anda .

Setelah itu, lanjutkan dan periksa kembali situs Anda. Jika berhasil, mungkin tema Anda mengalami konflik atau pembaruan yang buruk . Jika demikian, Anda mungkin perlu menghubungi pengembang untuk mendapatkan bantuan atau mempertimbangkan untuk beralih tema .

3. Hapus Cache Browser dan Plugin WordPress

Jika Anda memiliki akses ke backend situs WordPress Anda tetapi masih melihat WSoD di frontend, mungkin karena ada masalah dengan cache Anda .

Untuk memperbaikinya, coba bersihkan cache browser web Anda dan plugin caching WordPress Anda (dengan asumsi Anda sudah menginstalnya).

Jika Anda memasang plugin caching di situs WordPress Anda, seperti WP Rocket  atau WP Super Cache , sebagian besar menawarkan cara cepat untuk menghapus cache melalui halaman pengaturan plugin.

Menggunakan WP Super Cache sebagai contoh, di dasbor WordPress Anda, Anda akan menavigasi ke Pengaturan >  WP Super Cache >  Hapus Cache :

delete plugin cache

Halaman pengaturan plugin WP Super Cache

Cara Menghapus Cache Anda dari MyKinsta

Jika Anda adalah pengguna Kinsta, ada juga cara mudah bagi Anda untuk menghapus cache menggunakan MyKinsta . Untuk melakukan ini, masuk ke akun Anda. Klik Tools , diikuti oleh  Clear cache  di bawah bagian Site Cache :

kinsta site cache

Opsi Bersihkan cache di MyKinsta

Setelah Anda mengosongkan cache, simpan perubahan Anda. Kemudian kunjungi kembali situs Anda untuk melihat apakah itu memperbaiki masalah. Jika tidak, saatnya beralih ke solusi lain.

4. Aktifkan Mode Debugging

Jika Anda masih melihat Layar Putih Kematian WordPress, area admin tidak berfungsi, atau Anda merasa telah menemukan masalahnya tetapi ingin menggali lebih dalam, Anda dapat mengaktifkan mode debug . Ini akan menunjukkan kesalahan apa pun yang terjadi di situs web Anda.

Untuk mengaktifkan debugging, Anda harus membuka  file wp-config.php  dari instalasi WordPress Anda. Di dalamnya Anda harus menemukan baris berikut:

define( 'WP_DEBUG', false )

Ubah “false” menjadi “true”, lalu muat ulang situs Anda. Jika baris ini tidak ada, Anda dapat menambahkannya ke bagian atas file.

Alih-alih layar putih, Anda akan mendapatkan layar putih dan beberapa pesan kesalahan. Ini bukan peningkatan besar, tapi ini hanya permulaan. Pesan kesalahan WSoD harus menyatakan dari file mana masalah itu berasal, seperti ini:

Cannot redeclare get_posts() (previously declared in 
/var/www/html/wordpress/wp-includes/post.php:1874) in 
/var/www/html/wordpress/wp-content/plugins/my-test-plugin/my-test-plugin.php on line 38

Anda dapat melihat di akhir pesan contoh ini bahwa masalahnya ada di baris 38 dari sebuah plugin bernama my-test-plugin . Oleh karena itu, menonaktifkan plugin tersebut akan menyelesaikan masalah.

Jika Anda tidak melihat kesalahan sama sekali setelah mengaktifkan mode debug, Anda mungkin perlu menghubungi host web Anda . Mungkin proses debug tidak dikonfigurasi dengan benar di server Anda.

Pelanggan Kinsta memiliki opsi untuk menggunakan alat debugging bawaan . Dari dasbor MyKinsta, klik nama situs web Anda diikuti dengan Tools . Di bawah debugging WordPress , pilih Aktifkan :

kinsta debugging tool

Cara mengaktifkan mode debug WordPress di MyKinsta

Anda kemudian dapat mengakses log kesalahan Anda di bawah bagian Log di dasbor MyKinsta Anda, dan menjelajahinya untuk mempelajari lebih lanjut tentang masalahnya.

Perlu diingat bahwa mengaktifkan mode debug dapat memaparkan beberapa informasi situs web Anda kepada pengguna yang tidak disetujui. Oleh karena itu, pastikan untuk selalu mematikan mode tersebut setelah selesai menggunakannya

5. Tingkatkan Batas Memori Anda

Jika Anda masih melihat halaman kosong WSoD yang ditakuti setelah mencoba beberapa solusi di atas, atau Anda mendapatkan kesalahan yang mengeluh tentang batas memori atau kehabisan memori, Anda harus menetapkan lebih banyak memori ke aplikasi.

Ini dapat dilakukan melalui file wp-config.php  di banyak instalasi WordPress. Buka file tersebut dan tambahkan kode berikut:

define('WP_MEMORY_LIMIT', '64M');

Jika ini tampaknya tidak berhasil, Anda memiliki beberapa opsi. Di lingkungan biasa, Anda dapat menggunakan file .htaccess untuk menambah batas memori . Cukup tambahkan baris berikut:

php_value memory_limit 64M

Jika Anda tidak dapat mengakses  file .htaccess , Anda dapat menggunakan file php.ini  untuk menambah batas memori.

Untuk melakukannya, sambungkan ke server Anda melalui FTP. Di direktori root situs Anda, cari file php.ini . Setelah Anda menemukannya, tambahkan baris berikut di mana saja di dalam file:

memory_limit = 64M

Jika Anda masih kehabisan memori dan perlu menetapkan lebih banyak, mungkin ada masalah dalam aplikasi Anda. Mungkin tema Anda atau salah satu plugin Anda menggunakan sumber daya yang sangat banyak.

Pada titik ini, Anda mungkin ingin menyewa pengembang untuk melihatnya. Bahkan host Anda mungkin dapat membantu, dengan menunjukkan log SQL dan statistik sumber daya lainnya untuk situs Anda.

Khusus pelanggan Kinsta tidak perlu menambah batas memori karena semua paket kinsta menetapkan batas memori default sebesar 256 MB .

6. Periksa Masalah Izin File

Penyebab potensial lain dari WSoD adalah masalah izin dan kepemilikan. Dimungkinkan untuk memperbaiki masalah ini sendiri Namun, kecuali Anda benar-benar tahu apa yang Anda lakukan, kami tidak menyarankannya karena Anda dapat secara tidak sengaja membuat kerentanan yang dapat dieksploitasi oleh penyerang.

Mengenai izin WordPress , ada tiga aturan sederhana yang harus diikuti:

  • File harus diatur ke 664 atau 644.
  • Folder harus diatur ke 775 atau 755.
  • File wp-config.php  harus disetel ke 660, 600, atau 644.

Jika Anda memiliki akses SSH ke server Anda , Anda dapat menerapkan aturan yang sesuai dengan perintah berikut, menjalankannya dari direktori root WordPress:

sudo find . -type f -exec chmod 664 {} +
sudo find . -type d -exec chmod 775 {} +
sudo chmod 660 wp-config.php

Jika Anda tidak yakin bagaimana melakukan ini atau sedikit terintimidasi, lanjutkan dan minta bantuan host web Anda.

7. Periksa Masalah Pembaruan Otomatis yang Gagal

Terkadang WordPress mengalami masalah dengan pembaruan , seperti saat waktu server habis. Lebih sering daripada tidak, masalah ini teratasi dengan sendirinya secara otomatis. Namun, dalam beberapa kasus yang jarang terjadi, ini dapat menyebabkan Layar Putih Kematian WordPress.

Hal pertama yang harus Anda lakukan adalah masuk ke direktori root WordPress Anda dan lihat apakah ada file .maintenance di sana (nama file juga dapat disingkat).

Yang ingin Anda lakukan adalah mencoba menghapus file itu dan memuat situs Anda lagi.

Jika pembaruan berhasil, tetapi WordPress gagal menghapus file ini secara otomatis , semuanya akan kembali normal.

Jika pembaruan tidak selesai, itu mungkin dimulai ulang secara otomatis, dalam hal ini semuanya akan kembali normal sama saja.

Jika semuanya gagal, ikuti prosedur pembaruan manual yang disarankan untuk WordPress , yang akan menyelesaikan masalah ini untuk selamanya.

8. Selesaikan Kesalahan Sintaks atau Pulihkan Cadangan

Penyebab umum lainnya untuk WSoD WordPress adalah saat Anda mengedit kode di situs WordPress Anda  dan secara tidak sengaja salah mengetik sesuatu atau menggunakan sintaks yang salah.

Satu karakter di tempat yang salah dapat menghapus seluruh situs Anda, itulah sebabnya Anda tidak boleh mengedit kode di situs produksi langsung Anda .

Namun, tidak perlu khawatir. Anda selalu dapat terhubung ke situs Anda melalui FTP dan mengembalikan perubahan yang Anda buat secara manual. Jika Anda tidak tahu perubahan apa yang menyebabkan masalah, di sinilah memiliki cadangan WordPress  sangat berguna.

Di sini, di Kinsta, Anda dapat memulihkan situs Anda ke titik waktu sebelumnya dengan satu klik. Untuk melakukan ini, masuk ke dasbor MyKinsta Anda dan arahkan ke Cadangan :

The backup feature in MyKinsta

Fitur backup MyKinsta

Perlu diingat bahwa jika Anda mengaktifkan mode debug di WordPress sebelumnya, mungkin juga ada pesan kesalahan yang menunjukkan kesalahan sintaks parse. Jika demikian, ini akan memberi tahu Anda dengan tepat di mana menemukan kode masalahnya.

9. Meningkatkan Kemampuan Pemrosesan Teks PHP

Pada titik ini, jika WSoD belum terselesaikan, ada satu trik tambahan yang bisa Anda coba. Terkadang, masalah ini dapat terjadi karena halaman atau postingan sangat panjang.

Jika demikian, Anda dapat mencoba menyesuaikan kemampuan pemrosesan teks PHP di situs Anda, dengan meningkatkan batas mundur dan rekursi. Untuk melakukannya, rekatkan kode berikut di dalam file wp-config.php Anda:

/* Trick for long posts /
ini_set('pcre.recursion_limit',20000000);
ini_set('pcre.backtrack_limit',10000000);

Setelah Anda menambahkan kode ini, simpan perubahan Anda. Kemudian segarkan situs Anda untuk melihat apakah sekarang berfungsi.

Ringkasan

White Screen of Death WordPress bisa sangat membuat frustrasi, bahkan menakutkan. Ada beberapa hal yang bisa salah, tetapi untungnya situasinya biasanya tidak seburuk kelihatannya.

Plugin sederhana dan/atau pemeriksaan tema seharusnya memperbaiki masalah WSoD dalam banyak kasus. Menjadi lebih akrab dengan mode debug WordPress pasti akan menjelaskan masalah dan memandu Anda.

Jika Anda pernah mengalami situasi White Screen of Death WordPress lainnya, beri tahu kami agar kami dapat belajar darinya dan berbagi pengalaman!

Sumber oleh Matteo Duò , 2 Juli 2020

Untuk masalah wordpress teknis lainnya, Anda dapat membaca https://www.toptal.com/wordpress#hiring-guide

Leave a Reply

Your email address will not be published. Required fields are marked *

Discover more from Just Shared on Tel-U

Subscribe now to keep reading and get access to the full archive.

Continue reading