• Resolved dbiljak

    (@dbiljak)


    After update to PHP 8.2 Analytics -> Products not working, error: There was an error getting your stats. Please try again.

    After downgrade to PHP 8.0 it is OK again. Hosted on WP Engine. Is there anything I can do?

Viewing 1 replies (of 1 total)
  • Hi @dbiljak

    After update to PHP 8.2 Analytics -> Products not working, error: There was an error getting your stats. Please try again. After downgrade to PHP 8.0 it is OK again. Hosted on WP Engine. Is there anything I can do?

    From what I understand, you’re having trouble with the Analytics -> Products feature after upgrading to PHP 8.2, and you’re seeing an error message saying, “There was an error getting your stats. Please try again.” However, you’ve found that downgrading back to PHP 8.0 fixes the problem. You’re also hosting your site on WP Engine.

    First off, I commend you for troubleshooting the problem by downgrading your PHP version. The issue you’re facing could be due to incompatibilities between your current WooCommerce version and PHP 8.2.

    To fix this, you can:

    1. Update WooCommerce: Make sure you’re using the latest version of WooCommerce. We constantly improve and fix bugs in our updates, so it’s possible that the issue has already been fixed.
    2. Check for Plugin Conflicts: Other plugins can sometimes interfere with WooCommerce’s functionality. Try deactivating all your plugins except WooCommerce and see if the problem persists. If the problem is resolved, reactivate your plugins one by one to find the problematic one.
    3. Switch Themes: Switch to a default WordPress theme (like Storefront) to see if the problem is theme-related. Here’s a handy guide on how to test for conflicts: 👉 How to Test for Plugin and Theme Conflicts.
    4. Enable Debugging: If the problem persists, activate debugging in WordPress. This can help identify the root cause. You can activate debugging by adding these lines to your wp-config.php file:
    define( 'WP_DEBUG', true );
    define( 'WP_DEBUG_LOG', true );
    define( 'WP_DEBUG_DISPLAY', false );
    @ini_set( 'display_errors', 0 );

    This will create a debug.log file in your wp-content directory, which will log any PHP errors or notices. Here’s a detailed guide on enabling debugging in WordPress: 👉 Debugging in WordPress.

    If you’re still facing the issue after trying these steps, we’ll need more details like the exact error messages you see when debug mode is on. This will help us identify and solve the problem more effectively.

    It would also be really helpful if you could share your site’s System Status report. This will give us a clearer picture of your site’s setup and help us pinpoint the problem. You can get this report via WooCommerce > Status. Select ‘Get system report‘ and then ‘Copy for support‘.

    Finally, could you share any fatal error logs (if there are any) under WooCommerce > Status > Logs?

    Once you have all this information, please paste it inside a Code block in your reply, or use https://pastebin.com to paste it and share the link with us.

    Thank you so much for your patience and cooperation! We’re here to help you get this sorted.

Viewing 1 replies (of 1 total)

The topic ‘Updated to PHP 8.2 Analytics broken’ is closed to new replies.