İçeriğe geç
Araçlar

WP_DEBUG Configurator

Turn on the debug log without breaking your live site

Tarayıcınızda çalışır. Hiçbir şey yüklenmez.

Where is this site?

This changes the recommendation, not just the wording. The safe configuration on a live site is genuinely different from the useful one on your laptop.

Verdict

Options
wp-config.php

Paste these ABOVE the line that says /* That's all, stop editing! */ — anything below it is ignored, which is why so many people report that WP_DEBUG 'does nothing'.

WP_DEBUG Configurator hakkında

Generate the WP_DEBUG constants that write errors to a log file instead of printing them to your visitors. The default WP_DEBUG snippet most sites copy will display PHP errors publicly — this one will not.

FAQ

Sorular

Canlı bir sitede WP_DEBUG'ı etkinleştirmek güvenli mi?

Yalnızca WP_DEBUG_DISPLAY false olarak ayarlıysa. Tek başına WP_DEBUG, PHP uyarılarını ve bildirimlerini — sunucunuzun mutlak dosya yolları dahil — doğrudan ziyaretçilerinizin yüklediği sayfalara yazdırır. Neredeyse her öğretici size o tek satırı verir ve durur. Bunu WP_DEBUG_LOG ile ve WP_DEBUG_DISPLAY false ile eşleştirin, o zaman güvenlidir.

WordPress debug günlüğü nereye gider?

Varsayılan olarak wp-content/debug.log. Bilinmesi gerekir: birçok barındırma sağlayıcısında o dosya herkese açık şekilde erişilebilir — herkes bir tarayıcıda onu isteyebilir. Bunun yerine WP_DEBUG_LOG'a bir yol verip günlüğü web kök dizininin üstüne yazabilirsiniz, ki bu araç bunu sizin için oluşturur.

WP_DEBUG'ı true yaptım ama hiçbir şey olmadı. Neden?

Neredeyse her zaman sabit, wp-config.php'deki "That's all, stop editing!" satırının ALTINA eklendiği içindir. O satırdan sonraki her şey görmezden gelinir. Onu üste taşıyın.