<p>The current solution i know of is to change CLogFilter's default dumper from:</p>

<pre><code>public $dumper='var_export';
</code></pre>

<p>To:</p>

<pre><code>public $dumper='print_r';
</code></pre>

<p>It even has a comment above it:</p>

<pre><code>/**
 * @var callable or function which will be used to dump context information.
 * Defaults to `var_export`. If you're experiencing issues with circular references
 * problem change it to `print_r`. Any kind of callable (static methods, user defined
 * functions, lambdas, etc.) could also be used.
 * @since 1.1.14
 */
</code></pre>

<p>My previous answer was criticised because I obviously wasn't clear enough. As for the age of this question, it's only 2 months old.</p>

<p>Note: I've told P&amp;T about this.</p>

CC BY-SA 3.0
2016-04-08T23:58:06.617Z
Added the [logDumpMethod](https://craftcms.com/docs/config-settings#logDumpMethod) config setting so this can be easily configured.
Brad Bell
CC BY-SA 3.0
2014-11-21T17:25:16.800Z
2014-11-21T18:08:51.230Z
2014-11-21T18:08:51.230Z
Jay
<p>When devMode is true, both the front end and admin of my site give me the PHP warning:</p>

<blockquote>
  <p>"<code>var_export</code> does not handle circular references".</p>
</blockquote>

<p>I've tried disabling plugins, with no luck.</p>

CC BY-SA 3.0
2014-09-12T00:24:23.640Z
Can you send a database dump over to support@buildwithcraft.com and we'll see if we can reproduce with your data? Will update the thread here with what we find.
Brad Bell
<php><devmode>
"PHP Warning: var_export does not handle circular references" when devMode = true
# "PHP Warning: var_export does not handle circular references" when devMode = true

(Asked by: username_0 on 2014-09-11)

When devMode is true, both the front end and admin of my site give me the PHP warning:

> "`var_export` does not handle circular references".

I've tried disabling plugins, with no luck.

**Tags:** php, devmode

> **Comments:**
> **username_1**: Can you send a database dump over to support@buildwithcraft.com and we'll see if we can reproduce with your data? Will update the thread here with what we find.  

---

## 1 answers

### Answer by username_2 on 2014-11-21. Score: 2

The current solution i know of is to change CLogFilter's default dumper from:
public $dumper='var_export';

To:
public $dumper='print_r';

It even has a comment above it:
/**
 * @var callable or function which will be used to dump context information.
 * Defaults to `var_export`. If you're experiencing issues with circular references
 * problem change it to `print_r`. Any kind of callable (static methods, user defined
 * functions, lambdas, etc.) could also be used.
 * @since 1.1.14
 */

My previous answer was criticised because I obviously wasn't clear enough. As for the age of this question, it's only 2 months old.
Note: I've told P&T about this.

> **Comments:**
> **username_1**: Added the [logDumpMethod](https://craftcms.com/docs/config-settings#logDumpMethod) config setting so this can be easily configured.  

---

