eror log dosyası sürekli şişiyor ne yapabilirim arkadaşlar
[06-Jan-2020 19:41:58 UTC] PHP Warning: Illegal string offset 'body' in /home/......../wp-content/themes/frontier/functions.php on line 202
[06-Jan-2020 19:41:58 UTC] PHP Warning: Illegal string offset 'below_menu' in /home/............/wp-content/themes/frontier/functions.php on line 224
[06-Jan-2020 19:41:58 UTC] PHP Warning: Illegal string offset 'before_content' in /home/............/wp-content/themes/frontier/functions.php on line 235
[06-Jan-2020 19:41:58 UTC] PHP Warning: Illegal string offset 'after_content' in /home/..................../wp-content/themes/frontier/functions.php on line 245
[06-Jan-2020 19:41:58 UTC] PHP Warning: Illegal string offset 'top_menu' in /home/............../wp-content/themes/frontier/header.php on line 33
Illegal string offset hatası alıyorum?
2
●161
- 06-01-2020, 23:22:02Değişkenlerin varlığını isset fonksiyonu ile kontrol ederek kullanmalısınız.
- 07-01-2020, 02:34:25Birkaç çözüm var;
- İşletim sistemine göre php.ini dosyasını bulup içerisindeki Warning uyarısının log dosyasına gelmesini engelleyebilirsin.
- Warning uyarı hatası veren tüm dosyaları tek tek açıp hataları düzeltebilirsin.
- Error_Log dosyasını belirli zamanlarla temizleyen bir script yazabilir ve bunu Crontab a ekleyebilirsin.