Skip to content
Read For Learn
Read For Learn
  • Database
    • Oracle
    • SQL
  • C
  • C++
  • Java
  • Java Script
  • jQuery
  • PHP
Read For Learn
  • Database
    • Oracle
    • SQL
  • C
  • C++
  • Java
  • Java Script
  • jQuery
  • PHP

wp-debug

Pick your brain on wp-config.php if statement for multisite

Your best bet would be to match $_SERVER[‘HTTP_HOST’] variable against desired host. Unfortunately wordpress init WP_DEBUG constant before multisite functions are loaded.

Categories multisite Tags multisite, wp-config, wp-debug

Some ways to debug code

Did you enable for debug in wp-config.php, you know, that is great for developing your theme define(‘WP_DEBUG’, false);

Categories buddypress Tags buddypress, debug, wp-debug

Notice: Use of undefined constant – assumed ‘ ‘

Notice: Use of undefined constant – assumed ‘ ‘

Categories wp-debug Tags constants, wp-debug

WP Debug set to true but still wsod

WP Debug set to true but still wsod

Categories debug Tags debug, wp-debug

Which language files are loaded?

Thx to the comments I found the plugin: Debug MO Translations It returns a list of all searched and loaded MO files. The source code is provided on github: https://github.com/closemarketing/debug-mo-translations

Categories multi-language Tags debug, language, multi-language, wp-debug

Debugging conundrum with a problem fixed by enabling WP_DEBUG

There are two aspects to WP_DEBUG: It configures PHP runtime to desired state, this is handled once in wp_debug_mode(). It is used as a state flag, that can be arbitrarily checked by code. Widely done both in core and more so in third party code. It is hard to make a guess how either of … Read more

Categories debug Tags debug, wp-debug

Unnessary character on post after restore

Unnessary character on post after restore

Categories errors Tags debug, errors, wp-debug

Cannot read property ‘hasClass’ of undefined(…) jquery-ui

Cannot read property ‘hasClass’ of undefined(…) jquery-ui

Categories visual-editor Tags debug, jquery-ui, visual-editor, wp-debug

Notice: Undefined index: post_title error

Notice: Undefined index: post_title error

Categories PHP Tags debug, functions, php, wp-debug

admin_post_(action) hook create console log error

admin_post_(action) hook create console log error

Categories hooks Tags hooks, wp-debug
Older posts
Newer posts
← Previous Page1 Page2 Page3 … Page9 Next →
+ More

Recommended Hostings

Cloudways: Realize Your Website's Potential With Flexible & Affordable Hosting. 24/7/365 Support, Managed Security, Automated Backups, and 24/7 Real-time Monitoring.

FastComet: Fast SSD Hosting, Free Migration, Hack-Free Security, 24/7 Super Fast Support, 45 Day Money Back Guarantee.

Recent Added Topics

  • Bug in translation system: load_theme_textdomain() returns true, files are available and accessible but the language defaults to english
  • Custom Elementor controls not appearing in the widget Advanced tab using injection hooks
  • Get the name of the template/*html file used
  • Trying to Add Paging to Single Post Page
  • Sharing media files between live and staging servers
  • How to display the description of a custom post type in the dashboard?
  • Critical error on image display
  • Copying WP data and files into new install?
  • How to determine the DirectAdmin WordPress backup date?
  • How to get list of ALL tables in the database?
© 2026 Read For Learn
Next Page »
  • Database
    • Oracle
    • SQL
  • algorithm
  • asp.net
  • assembly
  • binary
  • c#
  • Git
  • hex
  • HTML
  • iOS
  • language angnostic
  • math
  • matlab
  • Tips & Trick
  • Tools
  • windows
  • C
  • C++
  • Java
  • javascript
  • Python
  • R
  • Java Script
  • jQuery
  • PHP
  • WordPress