Skip to content

Update Scheduled Reports with Multiple recipients on 2.16.1 #10096

@mackieee

Description

@mackieee

I'm getting a direct 500 error when attempting to update a report with multiple recipients. At the following POST URL:

analytics.websitename.com/index.php?date=2016-04-26&period=day&hour=19&idSite=1

With the following POST parameters (Taken literally from Chrome Dev tools):

module:API
method:ScheduledReports.updateReport
format:json
idReport:1
description:Daily Stats
idSegment:
reportType:email
reportFormat:html
reports[]:VisitsSummary_get
reports[]:VisitTime_getVisitInformationPerLocalTime
reports[]:Goals_get_idGoal--ecommerceOrder
reports[]:DevicesDetection_getType
reports[]:DevicesDetection_getBrowserVersions
parameters[displayFormat]:2
parameters[emailMe]:true
parameters[evolutionGraph]:false
parameters[additionalEmails][]:mackieee@gmail.com
token_auth:5bafcbd0838f3ab93f866a90b71d7e47

So when updating a report and adding a recipient 'one per line' at the _Send report to_ field group. Just add one or two then press 'Update Report' then the exception is immediately thrown and it's stuck on "please wait" on the report update.

{
"result":  "error",
"message": 
  "Uncaught TypeError: Argument 1 passed to Piwik\\API\\ResponseBuilder::getResponseException() must be an instance of Exception, instance of Error given, 
  called in \/home\/websitename\/public_html\/001_subdomains\/analytics\/core\/ExceptionHandler.php on line 90 and defined in \/home\/websitename\/public_html\/001_subdomains\/analytics\/core\/API\/ResponseBuilder.php:130 
  Stack trace:#0 \/home\/websitename\/public_html\/001_subdomains\/analytics\/core\/ExceptionHandler.php(90): Piwik\\API\\ResponseBuilder->getResponseException(Object(Error))
  #1 \/home\/websitename\/public_html\/001_subdomains\/analytics\/core\/ExceptionHandler.php(70): Piwik\\ExceptionHandler::getErrorResponse(Object(Error))
  #2 \/home\/websitename\/public_html\/001_subdomains\/analytics\/core\/ExceptionHandler.php(36): Piwik\\ExceptionHandler::dieWithHtmlErrorPage(Object(Error))
  #3 [internal function]: Piwik\\ExceptionHandler::handleException(Object(Error))#4 {main}  thrown"
}

I'm using the latest version of Piwik 2.16.1. I've tested this on:

  • Chrome (On Windows 7 & 10 )
  • Safari 8.0.8 (Mac)

This Piwik is self-hosted and is running on a subdomain.

If you need anything at all to help debug the issue or please point me in the direction if this has already been answered :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    answeredFor when a question was asked and we referred to forum or answered it.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions