• 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)
  • Thread Starter bublick

    (@bublick)

    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

    (@bublick)

    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

    (@bcworkz)

    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.

    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.