Re: Drupal8.2 and Devel 8.x-1.0-alpha1, PHP Version 7.0.12

I'm using Profile2 and created a profile type and one test profile. On this page, /admin/config/people/profiles I selected "Devel" from the drop-down for the test profile and rec'd this error, repeated numerous times, after increasing the php memory limit to 768MB:

"Warning: var_export does not handle circular references in Drupal\Component\Utility\Variable::export() (line 61 of core/lib/Drupal/Component/Utility/Variable.php)"

I have no idea what this means, but it is not helpful to me as I can't get to the data I seek through the Devel module. Seems like something's not right.

Comments

webpotato created an issue. See original summary.

willzyx’s picture

Status: Active » Postponed (maintainer needs more info)

@webpotato thanks for reporting.
Seems that drupal_variable devel dumper plugin is not the right plugin to use for dumping complex object since it not handle circular references.
Please can you describe the steps for reproduce the issue in a vanilla drupal installation? Thanks

willzyx’s picture

Status: Postponed (maintainer needs more info) » Closed (cannot reproduce)

Closing for lack of activity. Feel free to reopen if the issue still exists

mausolos’s picture

Status: Closed (cannot reproduce) » Active

I'm getting this error on a brand new D8 site, so I'm re-opening this old ticket.

Steps to reproduce:

  • Navigate to admin/config/development/devel
  • Select "Kint backtrace in the message area" from "Error handlers"
  • Select "Drupal variable" from "Variables Dumper"
  • Navigate to user/1 and click on "Devel" tab (gives WSOD with log errors below)

System:

  • Ubuntu 16.04/PHP7
  • D8 Core 8.3.7
  • devel 8.x-1.0

Below is from the logs:
...
/lib/Drupal/Component/Utility/Variable.php on line 61, referer: http://localhost/user/1
[Thu Sep 14 06:10:20.336480 2017] [:error] [pid 13701] [client 172.17.0.1:58994] PHP Warning: var_export does not handle circular references in /apps/drupal/d8root/core
/lib/Drupal/Component/Utility/Variable.php on line 61, referer: http://localhost/user/1
[Thu Sep 14 06:10:20.336497 2017] [:error] [pid 13701] [client 172.17.0.1:58994] PHP Warning: var_export does not handle circular references in /apps/drupal/d8root/core
/lib/Drupal/Component/Utility/Variable.php on line 61, referer: http://localhost/user/1
[Thu Sep 14 06:10:20.336508 2017] [:error] [pid 13701] [client 172.17.0.1:58994] PHP Warning: var_export does not handle circular references in /apps/drupal/d8root/core
/lib/Drupal/Component/Utility/Variable.php on line 61, referer: http://localhost/user/1
[Thu Sep 14 06:10:20.336589 2017] [:error] [pid 13701] [client 172.17.0.1:58994] PHP Fatal error: Allowed memory size of 402653184 bytes exhausted (tried to allocate 26
6342400 bytes) in /apps/drupal/d8root/core/lib/Drupal/Component/Utility/Variable.php on line 61, referer: http://localhost/user/1

Good luck! :)