Pro Reports 5.0.7 - API 404

Hey guys,

Following the latest Pro Reports 5.0.7 ver release.

Did something change with the API end-points since after updating, the requests started to break with this:

[30-May-2025 06:58:31 UTC] Making API request to: https://mainwpdashURL.com/wp-json/mainwp/v2/pro-reports/domain.com/wordpress?start_date=2025-04-30&end_date=2025-05-30&action=updated
[30-May-2025 06:58:31 UTC] API Response Code: 404
[30-May-2025 06:58:31 UTC] API Response Length: 114
[30-May-2025 06:58:31 UTC] API Raw Response (first 1000 chars): {"code":"rest_no_route","message":"No route was found matching the URL and request method.","data":{"status":404}}
[30-May-2025 06:58:31 UTC] API Raw Response (last 1000 chars): {"code":"rest_no_route","message":"No route was found matching the URL and request method.","data":{"status":404}}
[30-May-2025 06:58:31 UTC] MainWPAPI getPluginsReport Error: API Error: HTTP 404 - {"code":"rest_no_route","message":"No route was found matching the URL and request method.","data":{"status":404}}
[30-May-2025 06:58:31 UTC] MainWPAPI getPluginsReport Stack trace: #0 /path/includes/api/MainWPAPI.php(469): MainWPAPI->request()
#1 /path/includes/core/MainWPManager.php(598): MainWPAPI->getPluginsReport()
#2 /path/includes/controllers/DashboardController.php(545): MainWPManager->getPluginsReport()
#3 /path/includes/core/Router.php(153): DashboardController->handlePluginsReportRequest()
#4 /includes/core/Router.php(79): Router->handleRoute()
#5 /path/index.php(175): Router->dispatch()
#6 /path/index.php(87): include('/home/path/i...')
#7 {main}
[30-May-2025 06:58:31 UTC] MainWPManager: Raw API Response: Array
(
    [success] =>
    [message] => API Error: HTTP 404 - {"code":"rest_no_route","message":"No route was found matching the URL and request method.","data":{"status":404}}
)

[30-May-2025 06:58:31 UTC] MainWPManager: API returned error: API Error: HTTP 404 - {"code":"rest_no_route","message":"No route was found matching the URL and request method.","data":{"status":404}}

If we revert back to 5.0.6 it works with no issues, so I suspect something might have changed with the hooks mentioned in the changelog.

We’re running the latest 5.4.0.10 MainWP ver.

Thanks!
Martin G.

1 Like

Hey @Fixed

Thanks for reporting this to us.

We are working on a fix and will prepare a Pro Reports hotfix release shortly.

We’ve just released v5.0.8 of Pro Reports that addresses this.

Thanks again for reporting this to us.

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.