• Resolved manaka02

    (@manaka02)


    Hello,
    Since I make last update (I think). I got error when I try to list all out of stock products using this link :

    
    https://mywebsite.mg/wp-admin/admin.php?page=wc-reports&tab=stock&report=out_of_stock
    

    Here is the log :

    PHP Notice:  Undefined index: 00 in /home/admin/web/mywebsite.mg/public_html/wp-includes/class-wp-locale.php on line 307
    [14-Jun-2019 11:22:01 UTC] PHP Fatal error:  Uncaught Error: Call to undefined method Product::get_id() in /home/admin/web/mywebsite.mg/public_html/wp-content/plugins/woocommerce/includes/admin/reports/class-wc-report-stock.php:81
    Stack trace:
    #0 /home/admin/web/mywebsite.mg/public_html/wp-admin/includes/class-wp-list-table.php(1332): WC_Report_Stock->column_default(Object(stdClass), 'product')
    #1 /home/admin/web/mywebsite.mg/public_html/wp-admin/includes/class-wp-list-table.php(1272): WP_List_Table->single_row_columns(Object(stdClass))
    #2 /home/admin/web/mywebsite.mg/public_html/wp-admin/includes/class-wp-list-table.php(1259): WP_List_Table->single_row(Object(stdClass))
    #3 /home/admin/web/mywebsite.mg/public_html/wp-admin/includes/class-wp-list-table.php(1244): WP_List_Table->display_rows()
    #4 /home/admin/web/mywebsite.mg/public_html/wp-admin/includes/class-wp-list-table.php(1175): WP_List_Table->display_rows_or_placeholder()
    #5 /home/admin/web/mywebsite.mg/public_html/wp-content/plugins/woocommerce/includes/admin/reports/class-wc-report-stock.php(68): WP_List_Table->display()
    #6 /home/ in /home/admin/web/mywebsite.mg/public_html/wp-content/plugins/woocommerce/includes/admin/reports/class-wc-report-stock.php on line 81
    

    Hope you can help me !!

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support con

    (@conschneider)

    Engineer

    Hi there,

    This is a PHP notice which you can safely ignore, maybe caused by a component conflict. It should not display to begin with. Add this to you wp-config.php.

    define( 'WP_DEBUG_DISPLAY', false );
    @ini_set( 'display_errors', 0 );

    **Before you do that, please do make a full backup!**

    Kind regards,

    laceyrod

    (@laceyrod)

    Automattic Happiness Engineer

    This thread has been inactive for a bit, so I’m going to mark it as Resolved now. Please feel free to open a new one if you have any further questions.

    Cheers!

    Thread Starter manaka02

    (@manaka02)

    Sorry for my late response,
    I can’t disable wp-debug caused I want to see log.
    And @conschneider, It’s a fatal error, I can’t ignore it. And I don’t have access to out_of_stock report by woocommerce.

    Plugin Support Missy a11n

    (@m155y5)

    Automattic Happiness Engineer

    @manaka02

    Many times we see these types of errors when there’s a plugin or theme conflict of some sort.

    Here are some troubleshooting steps you can take to resolve this issue:

    1.) To begin, please make sure that your theme and all plugins are up to date.

    2.) Try to deactivate all the plugins except for WooCommerce to see if the issue persists. If the problem goes away, re-activate and test each plugin to see if you can determine which plugin the problem originates from.

    3.) If the above does not resolve the issue, try switching your theme to the Storefront theme (https://woocommerce.com/storefront/) and see if it works correctly. If it does, you’ll want to contact your theme’s developers and see if they have a fix/update.

    Plugin Support Missy a11n

    (@m155y5)

    Automattic Happiness Engineer

    We haven’t heard back from you in a while, so I’m going to go ahead and mark this thread as resolved. If you have any other questions please feel free to start a new thread.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Error : Show out of stock product list in dashboard woocommerce state’ is closed to new replies.