• Resolved slooffmaster

    (@slooffmaster)


    When I request the previous querter VAT report or for the quarter before that, I get a 403 error. This is the URL for the previous quarter report:
    https://<my host name>/wp-admin/admin.php?page=wc_eu_vat_compliance_cc&tab=reports&range=previous_quarter&order_statuses[0]=processing&order_statuses[1]=completed

    There are no errors at all to be found in the web server error logs and I have checked the file permissions for the files of the plugin and all look fine.

    This is with WooCommerce version 3.3.5.

    Any clues where I should look?

Viewing 12 replies - 1 through 12 (of 12 total)
  • Plugin Author David Anderson

    (@davidanderson)

    My guess would be that it is a timeout. Does your shop have a huge number of orders? How long before the 403 response occurs? The webserver admin should be able to say definitively by reading the webserver logs.

    Thread Starter slooffmaster

    (@slooffmaster)

    I’m afraid that can’t be the root-cause: ATM there are 10 orders in there and the 403 error is immediate. I also checked the web server logs but there’s nothing there (I am the web server admin and I develop web-based software for a living).

    I am simply trying to get my VAT report for the past quarter…

    Plugin Author David Anderson

    (@davidanderson)

    Hi,

    You’ll want to look at the webserver’s logging setup – if nothing is logged, and a 403 is returned, then that’s a problem. You need to get it to log sufficient information for the Apache and/or PHP error logs to have something in them when a 403 is returned. It can’t be coming from the plugin itself (as the plugin has no code that sends back a 403), so it’s somewhere else in there – but without sufficient logging (and no prior reports of the same thing), it’s hard to guess where.

    David

    Thread Starter slooffmaster

    (@slooffmaster)

    Thanks for the suggestion, I looked at trace6 level and noticed a large number of lines just before the 403 error occurs containing RewriteCond, which result in these two lines (truncated to fit):

    
    forcing responsecode 403 for /srv/www/htdocs/<install path>/wp-admin/admin.php 
    fixups hook gave 403:
    

    The main .htaccess file has some remains from (I believe) an old version of WordFence which include some RwriteCond statements. I would expect the culprit to be found there somewhere. What do you think?

    Plugin Author David Anderson

    (@davidanderson)

    What log file is that? I don’t recognise that format.

    Thread Starter slooffmaster

    (@slooffmaster)

    Those are truncated lines from the apache2 error log, configured with the default format.

    Thread Starter slooffmaster

    (@slooffmaster)

    Your tip to increase the log level helped me find the culprit: some old .htaccess file from a removed plugin which was left lingering in /wp-admin/ was affecting and blocking the URL.

    Thanks!

    Thread Starter slooffmaster

    (@slooffmaster)

    For posterity sake it was Bulletproof and the lingering .htaccess file is the “SECURE” version.

    Thread Starter slooffmaster

    (@slooffmaster)

    Marking as resolved

    Plugin Author David Anderson

    (@davidanderson)

    Glad you got it sorted! Please do consider giving us a 5-star review if you like the plugin. (If not please let us know – reviews with fewer stars bring our average down!)

    Thread Starter slooffmaster

    (@slooffmaster)

    Thanks, done!

    Plugin Author David Anderson

    (@davidanderson)

    Thank you!

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Error loading previous quarter VAT report’ is closed to new replies.