Skip to content

Kenan YAMAN

Dışı tekniker, içi yazılımcı

Menu
Menu

WordPress, a critical error has occurred on your website!

Posted on 3 April 20213 April 2021 by Kenan

Hello everyone, I haven’t been able to produce content for a long time and I haven’t had enough time here, frankly I couldn’t find enough time. At the first opportunity I found, I wanted to write a post or two. The first post is the kind of mistake that can happen to every user who uses wordpress.

İçerik gizle
1 What is this “a critical error occurred on your website” problem?
2 implementation steps for Solution
2.1 Editing the wp config file
2.2 Correction of the error
2.3 Result
2.4 Bunu paylaş:
2.5 Related

One day you wanted to enter your website and you came across such a screen.[goruntu_kare]
[goruntu_kare_amp]

Your site was working fine and smoothly the last time you quit. So what happened now?[yazi_ici_goruntu]

This error can have many causes. Code errors in the last plugin you added, a server-side change or the incompatibility of the plugins installed on your site after you have upgraded the wordpress version … This list goes on and on.

What is this “a critical error occurred on your website” problem?

This warning page, which is an error that can happen to every wordpress site owner, does not occur over a single problem. There may be many reasons for this. To solve this problem, when you enter your website, you cannot see any error codes. This is because wordpress takes security measures. First of all, we need to open the wpconfig.php file and activate the debug mode. After making the necessary arrangement, you can see the page that caused the error on our site and which code on that page caused this error.[goruntu_yatay]
[goruntu_yatay_amp]

After finding the error that makes our site unusable, we can take care of the necessary actions by connecting to the host where our website is hosted.

implementation steps for Solution

Editing the wp config file

Let’s connect to our server with ftp using the Filezilla program to access the wpconfig.php file that contains the settings of our wordpress site in the public html folder, that is, in the main folder of our site, and download the wpconfig.php file to our computer to activate the debug mode.[goruntu_yatay]
[goruntu_yatay_amp]

Before starting the process, it would be in your best interest to keep the original backup of the downloaded file and keep it aside for restoration if you make a mistake.

Let’s open the wpconfig.php file we downloaded and “define (‘WP_DEBUG’, false);” Let’s find the line. After finding this line, let’s replace the part that says “false” with “true” and save the file. After saving, let’s send the wpconfig.php file back to our server via ftp.

When we send the file back, the ftp application will ask us what to do because this file already exists on our server. Use the overwrite option.[goruntu_kare]
[goruntu_kare_amp]

Correction of the error

When we open our site again after the file editing and submission processes are over, it will show us where the error is. I am leaving a picture below for an example.

kenanyaman.com-web-sitenizde-kritik-bir-hata-olustu-2
kenanyaman.com-web-sitenizde-kritik-bir-hata-olustu

After turning on the debug mode, we can clearly see the error and error code given by our site. The reason for the error I encountered was due to insufficient memory space for the plugin called wpforms, so I had to increase the memory space that wordpress had to use. After learning the reason for this error, I learned what I had to do with a short google search and did not apply. In this section, you may have encountered such an error on your site due to a different error code or a different event. For this, you can find the necessary solution by searching the error or error code you encountered on google.[yazi_ici_goruntu]

The solution I applied for this error was to find the “WP_MEMORY_LIMIT” part on wpconfig.php and duplicate the memory reserved for wordpress.

For the wp debug mode, we find the “WP_MEMORY_LIMIT” part as we did in the wpconfig.php file and change it and resubmit it using ftp to the host where our site is hosted.[goruntu_kare]
[goruntu_kare_amp]

Result

When I returned to my site after making this change for the error I encountered, I saw that the error had been fixed. After fixing the error, we do not leave the operations we did like this. We need to turn off the wp debug mode as we turned it on. It is important for security that we do not show these error codes to users who visit our site if a problem occurs on our site with an error like this.

If we go back to the beginning, we edit the WP_DEBUG part to be “false” again through the wpconfig.php file and send it to our server and finish the process.

[goruntu_yatay]
[goruntu_yatay_amp]

Bunu paylaş:

  • Twitter
  • Facebook

Related

Leave a Reply Cancel reply

Categories

  • Console
  • Django-en
  • English
  • General
  • Hardware
  • Kick-off information
  • Linux-en
  • Python-en
  • Software
  • TürkçeTürkçe

Personal VPN setup

Personal vpn setup

RSS Rss

  • Samsung np s3511 laptop fan temizliği, termal macun değişimi ve parça değişimi (RAM, HDD,Cd room,CPU ) 12 October 2021
    Herkese merhaba, uzun zamandır bir laptop söküp bakım yapmamıştım. Eski bir arkadaşım laptopuında ısınma ve kapanma sorunları olduğunu söyledi. Bir hafta sonu misafirliğe giderek laptopa güzel bir temizlik yaptık. Temizlik yaparken yaptığım işlemleri resim çekerek görselleştirdim. Ben temizlik için laptopu söktüm fakat sadece temizlik yapmak dışında bu yazınında başlığında gördüğünüz gibi parça değişimi işlemleri içinde...
  • Linux işletim sisteminin yanına windows işletim sistemi nasıl kurulur ? [Dual boot] 28 June 2021
    Herkese merhaba, bugün ki konumuz dual boot, bir başka değişle; bilgisayarınızda yüklü olan işletim sisteminin yanına bir başka işletim sistemi kurmak. Uzun yıllar Windows kullanmış bir birey olarak, yaklaşık 5-6 yıldır Linux tabanlı işletim sistemleri kullanıyorum. Uygulama geliştiricelerin kullanırken daha rahat hissetiği ve işletim sistemi üzerinde tam kontrole sahip olduğu bir işletim sistemi. Bunun yanı...
  • Docker nedir, Docker ile neler yapılır ? 14 June 2021
    Herkese merhaba, sitemin temasını değiştirdim ve bir kaç bileşen eklemesi yaptım. Bri şeyi fark ettim, bir kaç yıldır blog yazıyorum fakat bloğumda arşiv kısmına baktığımda bir kaç ay hariç geri kalan aylarda neredeyse sadece bir adet yazı paylaşmışım. Düşünüyorum; ayda bir yazıdan fazla blog yazmış olmam gerekiyor. Ama gerçekte öyle değilmiş. Neyse, bu durum bloğun...
  • Linux uyku modları ve sorunları 22 May 2021
    Herkese merhaba, uzun zamandır blog yazamıyorum. İş değiştirme olsun yaşadığım sorunlar olsun bir türlü vakit ayırıp içerik hazırlayamadım. Kendi bilgisayarım üzerinde yaşadığım bir sorunu nasıl çözdüğümü yazarak başlamak istiyorum. Öncelikle hikayenin başına dönelim. Önceki yazılarımı okuyanlar bilir, askerden geldikten sonra yaptığım ilk iş bilgisayarıma format atmak oldu. Herşeye sıfırdan başladım. Buraya kadar bir problem yok...
  • WordPress, web sitenizde kritik bir hata oluştu! 3 April 2021
    Herkese merhaba, uzun süredir içerik üretemedim ve fazla vakit ayıramadım buralara, yeterince vakit bulamadım işin açıkcası. Bulduğum ilk fırsatta bir iki yazı yazmak istedim. İlk yazım wordpress kullanan her kullanıcının başına gelebilecek türden bir hata. Bir gün web sitenize girmek istediniz ve karşınıza böyle bir ekran geldi. [goruntu_kare][goruntu_kare_amp] Siz en son bıraktığınızda siteniz güzel ve...
  • İnternette Kişisel Güvenlik 24 January 2021
    Geçtiğimiz günlerde WhatsApp’ın güncellediği kişisel veri ilkesiyle ülkemizde büyük ses getird. Bununla birlikte telefonumuzda ya da bilgisayarımızda kullandığımız uygulamaların ne tür verileri sakladığını ve bu verileri ne amaçla kullandığını bilmek kişisel olarak güvenliğimizi artırmak için araştırmamız gereken konular arasına girdi. İnternet üzerinde yaptığımız her türlü araştırma ve web site ziyareti kayıt altına alınıyor bu bir...
  • Nasıl pasaport alınır ? detaylı anlatım 2021 5 December 2020
    Dünyanın başına gelmeyen olayın kalmadığı 2020 yılının son ayındayız. Hastalıklar, doğal afetler, ölümler, patlamalar, çatlamalar envai çeşit sıkıntıyla yüzleştik, umarım 2021 yılı daha hurulu ve mutlu geçer tüm dünya ve bizim için. 2020 yılının son ayına girdiğimiz şu günlerde uzun süredir aklımda olan bir eylemi gerçekleştirdim ve pasaport aldım. Pasaport alırken yapılacak işlemleri ve pasaport...
  • Pythonanywhere üzerinde selenium kullanımı 5 November 2020
    Python üzerinde veri kazıma yapmak isterseniz eğer muhakkak ismini duyup araştırmışsınızdır selenium modülünü. Selenium modülü ile kullanıcı taklit edilecek web sitesi üzerinde testler oluşturabilir ya da veri kazıma işlemleri yapabilirsiniz. Peki bu işlemleri herhangi bir ekrana sahip olmayan uzak sunucu üzerinde yapmak istersek nasıl gerçekleştireceğiz ? Hadi başlayalım. [baglanti_kare] [baglanti_kare][space] Python selenium modülü nedir ?...
  • Polylang eklentisi nedir ? WordPress sitesine çoklu dil ekleme nasıl yapılır ? 29 October 2020
    Herkese merhaba, bir blog siteniz varsa ve sürekli yazılar yayınlayıp paylaşıyorsanız eğer bir süre sonra bu yazıları farklı diller içinde paylaşmak isteyebilirsiniz. Farklı dillerde yayın yaparak daha fazla kitelelere ulaşabilir ve Google adsense ya da farklı reklam gösterimlerini kullanarak daha fazla gelir elde edebilirsniz. Peki wordpress alt yapısı ile oluşturulmuş bir sitede çoklu dil eklemek...
  • HTTP Metodları nelerdir ? 26 October 2020
    Bugün ki yazımda, gün içinde sıklıkla kullandığımız fakat arkaplanına pek dikkat etmediğimiz web site isteklerine bakacağız. Bilgisayar başına geçtiğimizde gerek iş için olsun gerekse bir araştırma için olsun bir çok web sitesini ziyaret ediyoruz, bu ziyaretlerimiz sırasında site ile iletişim kurmamız gereken durumlarda meydana geliyor. Peki bu iletişimin nasıl olduğunu hiç merak ettiniz mi ?...

Archives

  • July 2021 (2)
  • April 2021 (1)
  • October 2020 (2)
  • September 2020 (1)
  • March 2020 (1)
  • February 2020 (4)
  • January 2020 (6)
  • December 2019 (5)
  • November 2019 (3)
  • September 2019 (1)
  • July 2019 (1)
  • April 2019 (1)
  • December 2018 (2)
  • November 2018 (2)
  • October 2018 (1)
  • September 2018 (1)
  • August 2018 (4)

Blog Stats

  • 22,921 hits

Blog İnformation

  • 22,921 Click

DMCA.com Protection Status

© 2022 Kenan YAMAN | Powered by Minimalist Blog WordPress Theme
Go to mobile version