• mhogas

    (@mhogas)


    Hey there!

    I wanted to report some php notices that i’m getting in my error log. They are shown in Query Monitor plugin’s report too.

    is_tax was called incorrectly. Conditional query tags do not work before the query is run. Before then, they always return false. Please see Debugging in WordPress for more information. (This message was added in version 3.1.0.)

    Lines:
    – wp-content/plugins/perfect-woocommerce-brands/classes/class-perfect-woocommerce-brands.php:34
    – wp-content/plugins/perfect-woocommerce-brands/classes/class-perfect-woocommerce-brands.php:322

    Wouldn’t it be better if they were hooked into wp, as far as i tested the notices are gone, however i just installed the plugin and don’t know all use cases.

    System report

    Array
    (
        [home_url] => https://localhost/test
        [site_url] => https://localhost/test
        [version] => 3.5.4
        [wp_version] => 5.0.3
        [wp_multisite] => 
        [wp_memory_limit] => 40M
        [wp_debug_mode] => 1
        [wp_cron] => 1
        [language] => en_US
        [server_info] => Apache
        [php_version] => 7.0.22
        [php_post_max_size] => 32M
        [php_max_execution_time] => 30
        [php_max_input_vars] => 1000
        [max_upload_size] => 33554432
        [default_timezone] => UTC
        [theme] => Array
            (
                [name] => Twenty Nineteen
                [version] => 1.2.0
                [parent_theme] => 
            )
    
        [active_plugins] => Array
            (
                [0] => query-monitor/query-monitor.php
                [1] => advanced-custom-fields/acf.php
                [3] => duplicate-post/duplicate-post.php
                [4] => elementor/elementor.php
                [6] => perfect-woocommerce-brands/main.php
                [8] => ti-woocommerce-wishlist/ti-woocommerce-wishlist.php
                [10] => woo-gutenberg-products-block/woocommerce-gutenberg-products-block.php
                [11] => woo-smart-quick-view/index.php
                [12] => woocommerce/woocommerce.php
            )
    
        [pwb_options] => Array
            (
                [version] => 1.7.1
                [wc_pwb_admin_tab_brand_single_position] => after_meta
                [old_wc_pwb_admin_tab_slug] => brand
                [wc_pwb_notice_plugin_review] => 
                [wc_pwb_admin_tab_slug] => 
                [wc_pwb_admin_tab_brand_desc] => 
                [wc_pwb_admin_tab_brand_single_product_tab] => 
                [wc_pwb_admin_tab_brands_in_loop] => 
                [wc_pwb_admin_tab_brands_in_single] => 
                [wc_pwb_admin_tab_brand_logo_size] => 
            )
    
    )
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Getting multiple PHP Notices’ is closed to new replies.