Answers.Body: <p>Apparently what fixed this was that I had to obtain the InstanceId that I pulled by selecting one of the Mailing Reports (I went to Reports - Mailing Reports - and then chose the Summary. In the browser I identified the number of the report which came after &quot;instance%XXXX&quot; and used the &quot;XXXX&quot; as the number. I entered the number by going to Admin - System Settings - Scheduled Jobs and it gave me all of the reports from which I selected Mailing Reports and then clicked the edit button which allowed me to edit both the InstanceId and the format. I selected &quot;PDF&quot; for the format. Not sure if the format is right, but the job runs now.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2022-12-14T18:06:01.067Z
Answers.Text: We're having the same issue. However, when I bring up the Summary Report as in your description above, I get no results. Is there another way to get the instanceId?
Answers.UserDisplayName: Stephen Sloan
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2022-05-05T17:12:43.273Z
Answers.LastActivityDate: 2022-05-05T17:12:43.273Z
Answers.UserDisplayName: Paul Williams
Answers.Body: <p>Encountering a similar problem, with similar logs, except that my instance ID is set to &quot;[ID of report instance],&quot; which had, evidently always worked before.</p>
  <p>At the moment, I don't even have a mailing to run reports on, though we're about to do a big one and I need to make sure this is working.</p>
  <blockquote>
  <p>Parameters parsed (and passed to API method):
  a:3:{s:7:&quot;version&quot;;i:3;s:10:&quot;instanceId&quot;;s:23:&quot;[ID of report instance]&quot;;s:6:&quot;format&quot;;s:3:&quot;pdf&quot;;}</p>
  <p>Full message:
  Finished execution of Mail Reports with result: Failure, Error message:  is not of type String</p>
  </blockquote>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2022-07-10T03:32:10.690Z
Answers.LastActivityDate: 2022-07-10T03:32:10.690Z
Answers.UserDisplayName: mc_burger
Body: <p>CiviCRM v5.48.2, WordPress v 5.9.3</p>
  <p>I have a cron running as follows:</p>
  <p><code>/usr/local/bin/php /home/xxxxxx/public_html/wp-content/plugins/civicrm/civicrm/bin/cli.php -u xxxxxx -p xxxxxxx -e Job -a execute</code></p>
  <pre><code>Entity: Job Action: mail_report
  Summary Starting execution of Mail Reports
  
  Details
  
  Parameters raw (from db settings): 
  instanceId=xxxx
  format=PDF
  
  Parameters parsed (and passed to API method): 
  a:3:{s:7:&quot;version&quot;;i:3;s:10:&quot;instanceId&quot;;s:4:&quot;xxxx&quot;;s:6:&quot;format&quot;;s:3:&quot;PDF&quot;;}
  
  Full message: 
  Starting execution of Mail Reports
  2022-05-03 23:35:06 Mail Reports    
  Entity: Job Action: mail_report
  
  Summary Finished execution of Mail Reports with result: Failure, Error message: is not of type String
  </code></pre>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2022-05-05T08:35:26.980Z
Comments.Text: Anything in the civicrm log?
Comments.UserDisplayName: Aidan
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2022-05-05T16:40:32.867Z
Comments.Text: Too long to add. Seems to be starting here: May 04 23:18:27  [info] inactive contribution page access attempted - page number 2
  
  May 04 23:18:27  [error] 
  $Fatal Error Details = array:3 [
    "message" => "The page you requested is currently unavailable."
    "code" => null
    "exception" => CRM_Contribute_Exception_InactiveContributionPageException {#9799
      -id: 2
Comments.UserDisplayName: Paul Williams
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2022-05-05T16:52:57.377Z
Comments.Text: Here is the entire error which tends to repeat itself: https://pastebin.com/embed_iframe/BncdZcrF
Comments.UserDisplayName: Paul Williams
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2022-05-05T17:07:22.973Z
Comments.Text: It appears that the mailings are now being sent:  
  Entity: Job Action: process_mailing
  Summary
  Finished execution of Send Scheduled Mailings with result: Success (a:1:{s:9:"processed";i:0;})
  Details
  
  Parameters parsed (and passed to API method): 
  a:1:{s:7:"version";i:3;}
  
  Full message: 
  Finished execution of Send Scheduled Mailings with result: Success (a:1:{s:9:"processed";i:0;})
Comments.UserDisplayName: Paul Williams
Tags: <wordpress><reports>
Title: Mail Report Error Is Not Of Type String
ThreadText: # Mail Report Error Is Not Of Type String
  
  (Asked by: username_0 on 2022-05-05)
  
  CiviCRM v5.48.2, WordPress v 5.9.3
  I have a cron running as follows:
  /usr/local/bin/php /home/xxxxxx/public_html/wp-content/plugins/civicrm/civicrm/bin/cli.php -u xxxxxx -p xxxxxxx -e Job -a execute
  Entity: Job Action: mail_report
  Summary Starting execution of Mail Reports
  
  Details
  
  Parameters raw (from db settings): 
  instanceId=xxxx
  format=PDF
  
  Parameters parsed (and passed to API method): 
  a:3:{s:7:"version";i:3;s:10:"instanceId";s:4:"xxxx";s:6:"format";s:3:"PDF";}
  
  Full message: 
  Starting execution of Mail Reports
  2022-05-03 23:35:06 Mail Reports    
  Entity: Job Action: mail_report
  
  Summary Finished execution of Mail Reports with result: Failure, Error message: is not of type String
  
  **Tags:** wordpress, reports
  
  > **Comments:**
  > **username_1**: Anything in the civicrm log?  
  > **username_0**: Too long to add. Seems to be starting here: May 04 23:18:27  [info] inactive contribution page access attempted - page number 2  May 04 23:18:27  [error]  $Fatal Error Details = array:3 [   "message" => "The page you requested is currently unavailable."   "code" => null   "exception" => CRM_Contribute_Exception_InactiveContributionPageException {#9799     -id: 2  
  > **username_0**: Here is the entire error which tends to repeat itself: https://pastebin.com/embed_iframe/BncdZcrF  
  > **username_0**: It appears that the mailings are now being sent:   Entity: Job Action: process_mailing Summary Finished execution of Send Scheduled Mailings with result: Success (a:1:{s:9:"processed";i:0;}) Details  Parameters parsed (and passed to API method):  a:1:{s:7:"version";i:3;}  Full message:  Finished execution of Send Scheduled Mailings with result: Success (a:1:{s:9:"processed";i:0;})  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_0 on 2022-05-05. Score: 2 | Accepted answer
  
  Apparently what fixed this was that I had to obtain the InstanceId that I pulled by selecting one of the Mailing Reports (I went to Reports - Mailing Reports - and then chose the Summary. In the browser I identified the number of the report which came after "instance%XXXX" and used the "XXXX" as the number. I entered the number by going to Admin - System Settings - Scheduled Jobs and it gave me all of the reports from which I selected Mailing Reports and then clicked the edit button which allowed me to edit both the InstanceId and the format. I selected "PDF" for the format. Not sure if the format is right, but the job runs now.
  
  > **Comments:**
  > **username_2**: We're having the same issue. However, when I bring up the Summary Report as in your description above, I get no results. Is there another way to get the instanceId?  
  
  ---
  
  ### Answer by username_3 on 2022-07-10. Score: 1
  
  Encountering a similar problem, with similar logs, except that my instance ID is set to "[ID of report instance]," which had, evidently always worked before.
  
  At the moment, I don't even have a mailing to run reports on, though we're about to do a big one and I need to make sure this is working.
  
  > Parameters parsed (and passed to API method):
  > a:3:{s:7:"version";i:3;s:10:"instanceId";s:23:"[ID of report instance]";s:6:"format";s:3:"pdf";}
  >
  > Full message:
  > Finished execution of Mail Reports with result: Failure, Error message: is not of type String
  
  
  ---
  
  