• Resolved luminsol

    (@luminsol)


    Hi again,

    Another issue is that I can’t save any changes on the Show Statistics tab.

    WP-Matomo 1.0.23 is successfully connected to Matomo 4.2.1. You are running WordPress 5.7.2.

    When I hit save, I get a 403 error from the server.

    The url it tries to access is:

    https://example.com/wp-admin/options-general.php?page=wp-piwik/classes/WP_Piwik.php

    Everything else is still working however.

    I’m running in Self-Hosted (PHP API) mode.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author braekling

    (@braekling)

    Do you have access to your server logs and can look for an related entry? (Usually, it will appear in your Apache/Nginx or PHP error logs.)

    Thread Starter luminsol

    (@luminsol)

    I haven’t been able to spot any errors in the logs. I will keep looking, thanks.

    Thread Starter luminsol

    (@luminsol)

    So I was debugging this further.

    When saving the Stats Tab, you do a POST to https://example.com/wp-admin/options-general.php?page=wp-piwik/classes/WP_Piwik.php

    The POST returns a 403, and I see in the error log the reason is File Not Found.

    Does that help?

    Thread Starter luminsol

    (@luminsol)

    Another possible clue, I note that when viewing the settings the URL is https://example.com/wp-admin/options-general.php?page=wp-piwik%2Fclasses%2FWP_Piwik.php, note the forward slashes are escaped.

    When hitting save, the POST url doesn’t not contain escaped forward slashes.

    I think this is the cause of the File Not Found error.

    • This reply was modified 3 years, 6 months ago by luminsol.
    Thread Starter luminsol

    (@luminsol)

    Not sure what’s changed, but posting here to say the latest versions have fixed the problem.

    WP-Matomo 1.0.26 is successfully connected to Matomo 4.5.0. You are running WordPress 5.8.1.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Can’t Save Changes on Show Statistics Tab’ is closed to new replies.