title: Catchable Fatal Error: Object of class stdClass could not be converted to string in error on live site only
body: <p>I have a test (localhost) website and a live site that use the same PHP code. I am getting the following error ONLY on my live site (doesn't happen on the localhost version using the same codebase.</p>
  
  <blockquote>
    <p>Catchable Fatal Error: Object of class stdClass could not be converted
    to string in .... on line 486.</p>
  </blockquote>
  
  <p>Note - line 486 is this line within the foreach loop - any ideas why it isn't working on live but ok for localhost?</p>
  
  <pre><code>$out .= sprintf("&lt;tr&gt;&lt;td&gt;%s&lt;/td&gt;&lt;td&gt;%s&lt;/td&gt;&lt;/tr&gt;", $error['title'], $error['description']);
  </code></pre>
  
  <p>Code Block</p>
  
  <pre><code>public function getErrorTable()
  {
      $support_email_link = "&lt;a href='" . $this-&gt;support_email . "'&gt;" . $this-&gt;support_email . "&lt;/a&gt;";
  
      $out = '&lt;div style="width:100%;min-height:380px;text-align:center;"&gt;&lt;p style="font-size: 30px;"&gt;Error encountered &lt;i class="fa fa-times" style="color:#CC0000;"&gt;&lt;/i&gt;&lt;/p&gt;&lt;span&gt;Please contact ' . $support_email_link . "&lt;/span&gt;&lt;br&gt;&lt;table id='error_table'&gt;&lt;thead&gt;&lt;th&gt;Error Title&lt;/th&gt;&lt;th&gt;Description&lt;/th&gt;&lt;/thead&gt;&lt;tbody&gt;";
  
      foreach ($this-&gt;errors as $error) {
          $out .= sprintf("&lt;tr&gt;&lt;td&gt;%s&lt;/td&gt;&lt;td&gt;%s&lt;/td&gt;&lt;/tr&gt;", $error['title'], $error['description']);
      }
  
      $out .= "&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;";
  
      return $out;
  }
  </code></pre>