Title: How to debug theme?
Last modified: August 21, 2016

---

# How to debug theme?

 *  [bublick](https://wordpress.org/support/users/bublick/)
 * (@bublick)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/how-to-debug-theme/)
 * Not long ago I had a trouble with my wp site on nginx. Now I understood what 
   is the error kind of.
    It appears on just published posts in wp editor. The page
   isn’t loaded at the end and jQuery isn’t loaded too. So I can’t debug it with
   any WP Plugins. Troubles are going out when I remove line `register_taxonomy('
   basic_cats', 'post', array( 'hierarchical' => 'true', 'label' => 'Simple', 'query_var'
   => 'true', 'rewrite' => 'true' ) );` from my build taxes function. The last builts
   also 4 taxes. But the problem going out only when I remove this taxonomy registering
   function. I’m crazy o.O
 * So, my question is about how can I get WP’s error messege about this line. I 
   don’t know why wp don’t like it. It just don’t load all jQueries and css stylesheet.
   Does anybody has some means about this?

Viewing 5 replies - 1 through 5 (of 5 total)

 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/how-to-debug-theme/#post-4341408)
 * Try [turning debug on](http://codex.wordpress.org/Editing_wp-config.php#Debug)
   and [enabling error logging.](http://codex.wordpress.org/Editing_wp-config.php#Configure_Error_Logging)
 *  Thread Starter [bublick](https://wordpress.org/support/users/bublick/)
 * (@bublick)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/how-to-debug-theme/#post-4341417)
 * Thank you,
    I already tried this config
 *     ```
       // Enable WP_DEBUG mode
       define('WP_DEBUG', true);
   
       // Enable Debug logging to the /wp-content/debug.log file
       define('WP_DEBUG_LOG', true);
   
       // Disable display of errors and warnings
       define('WP_DEBUG_DISPLAY', true);
       @ini_set('display_errors',0);
   
       // Use dev versions of core JS and CSS files (only needed if you are modifying these core files)
       define('SCRIPT_DEBUG', true);
       ```
   
 *  Thread Starter [bublick](https://wordpress.org/support/users/bublick/)
 * (@bublick)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/how-to-debug-theme/#post-4341430)
 * Oh, **esmi**, sorry. I didn’t mensioned second link. Cause it has bad ancor. 
   Now I’m talking with my admins to edit php.ini
 *  Moderator [bcworkz](https://wordpress.org/support/users/bcworkz/)
 * (@bcworkz)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/how-to-debug-theme/#post-4341586)
 * Hi bublick,
 * There are some issues with your `register_taxonomy()` arguments, though I am 
   not sure if they are the cause of your problem. These are things you should know
   anyway.
 * In arguments expecting a boolean value, do not use quotes with `true` or `false`.`'
   true'` (with quotes) is a four character string, `true` (no quotes) is a boolean
   value. In your case, I do not think this is a problem because it turns out that`'
   true'==true`, but keep in mind that `'true'!==true` and `'false'==true`.
 * One place it does matter is `'query_var'`. By using `'query_var' => 'true'` you
   are saying use `'true'` (string value) instead of `'basic_cats'` in queries. 
   You probably want to use `'query_var' => true` (boolean) meaning use `'basic_cats'`
   in queries.
 * Your `'rewrite' => 'true'` may actually be the problem, as any string arguments
   must be in the form of an array. Simply removing the quotes around `true` could
   solve your problem, use `'rewrite' => true` instead.
 *  [ShaqAttack](https://wordpress.org/support/users/shaqattack/)
 * (@shaqattack)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/how-to-debug-theme/#post-4341589)
 * I also thank you, I had a similar problem and thus most helped me. I often looked
   at the forum because I see a lot of helping hands

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘How to debug theme?’ is closed to new replies.

## Tags

 * [register_taxonomy](https://wordpress.org/support/topic-tag/register_taxonomy/)
 * [theme dev](https://wordpress.org/support/topic-tag/theme-dev/)

 * In: [Hacks](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
 * 5 replies
 * 4 participants
 * Last reply from: [ShaqAttack](https://wordpress.org/support/users/shaqattack/)
 * Last activity: [12 years, 5 months ago](https://wordpress.org/support/topic/how-to-debug-theme/#post-4341589)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
