• Resolved Brendan

    (@brendymullan)


    Hi when trying to download a revenue report in Woocommerce Analytics it states “Your Revenue Report will be emailed to you.” but no email is ever sent/generated.

    I’ve checked the email log via an email logging plugin and no email is ever generated.

    Checked the action scheduler and no failed jobs in there. I can see the cron job for the requested report showing as complete.

    I don’t see any errors in Chrome or FF console. Or in my WordPress error.log

    Any idea why this is happening and how to get the report or understand why it’s not generating?

    Thanks in advance!

    • This topic was modified 4 years, 1 month ago by Brendan.
    • This topic was modified 4 years, 1 month ago by Brendan.
Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Support Stuart Duff – a11n

    (@stuartduff)

    Automattic Happiness Engineer

    Hi @brendymullan,

    I’ve carried out some testing for us today and I’m receiving the revenue report email to my inbox after it’s sent out by WooCommerce Admin via WordPress. Below is a screenshot from WP Mail Logging which shows the email as being sent by WooCommerce Admin and WordPress.

    Image Link: https://cloudup.com/cLyN3vQlJw3

    I’m not too sure why you’re not seeing the email as being as sent in your logging plugin. If you deactivate the WooCommerce Admin plugin and use the standard Analytics > Revenue section built into the WooCommerce core plugin do you see that email being sent?

    Thread Starter Brendan

    (@brendymullan)

    Hey @stuartduff ,

    I see all other emails being logged but no email is ever generated/sent for the report.

    It’s like it tells me it’ll email me the report but it’s never generated.

    Checked the action scheduler and I can see the cron job for the requested report showing as complete.

    View post on imgur.com

    I deactivated the plugin and tried the same at Analytics > Revenue and same issue. No email ever generated.

    I’m not seeing any issues in the Woocommerce > status either.

    Disabled all plugins apart from Woocommerce and still doesn’t generate it.

    Any idea where I could look next to help diagnose the issue?

    • This reply was modified 4 years, 1 month ago by Brendan.
    Plugin Support Stuart Duff – a11n

    (@stuartduff)

    Automattic Happiness Engineer

    Hey @brendymullan,

    That is strange and not something I can personally replicate for us on any of our test installations.

    I can see from your screenshot that you’re seeing the cron job completed within the Action Scheduler. That indicates that the CSV file was compiled and the email triggered to send was initiated.

    If you’re not seeing the email for the CSV report download after that has been triggered within WP Mail Logging plugin I’m really not sure why that would be.

    It could, however, be code from another plugin or theme which has caused a possible conflict and affected those particular emails from being sent.

    To see if that is the case we’d suggest carrying out a conflict test on your site by disabling all other plugins aside from WooCommerce along with switching to a theme like Storefront. This will help with trying to and locate what software you have installed which could possibly be causing this behaviour? You could use a free plugin called Health Check and Troubleshooting to carry out such testing.

    When in Troubleshooting mode all plugins will be deactivated and only the admin of the site carrying out the troubleshooting would see those changes. Any customers visiting the site would see no changes at all.

    Once you have disabled all other plugins and switched theme if the behaviour is resolved you can then enabled your theme and sites plugins testing after each one is enabled until the behaviour returns to locate the culprit.

    https://docs.woocommerce.com/document/how-to-test-for-conflicts/

    Thread Starter Brendan

    (@brendymullan)

    Hi @stuartduff,

    That’s the bizarre part as I’ve already tried disabling all plugins apart from Woocommerce and still doesn’t send any email.

    Is there somewhere on the server these CSV files are stored when generated that I could see if the actual file exists?

    Kind Regards,

    Brendan

    Plugin Support Stuart Duff – a11n

    (@stuartduff)

    Automattic Happiness Engineer

    Hey @brendymullan,

    For the CSV report files generated by the Analytics section, those are created and stored in the /wp-content/uploads/ folder of a WordPress installation like this example below.

    Image Link: https://cloudup.com/c7IGvonCvsg

    I hope this helps.

    Thread Starter Brendan

    (@brendymullan)

    Thanks @stuartduff,

    That’s very helpful as the exports are being generated as I can see the CSV files. Something is just preventing the email from being sent which has me stumped.

    At least that gives me what I need in the meantime.

    Edit: Bizarrely when I deleted all of the generated csv files from the upload directory and then generated a new one via the Revenue report the emails are now generating!

    • This reply was modified 4 years, 1 month ago by Brendan.
    Plugin Support Stuart Duff – a11n

    (@stuartduff)

    Automattic Happiness Engineer

    Hey @brendymullan,

    That is strange, hopefully, the emails will continue to send now though. Fingers crossed! ??

    Thread Starter Brendan

    (@brendymullan)

    Thanks Stuart, pretty strange bug but seems good now ever since I deleted the CSV files that had accumulated in the uploads directory ??

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Revenue Report Download/Email Fails’ is closed to new replies.