1

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.

1
  • 1
    Can you send a database dump over to [email protected] and we'll see if we can reproduce with your data? Will update the thread here with what we find.
    – Brad Bell
    Commented Sep 12, 2014 at 0:24

1 Answer 1

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.

1
  • 1
    Added the logDumpMethod config setting so this can be easily configured.
    – Brad Bell
    Commented Apr 8, 2016 at 23:58

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.