var_export does not handle circular references #48931
Unanswered
prathna124
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Try https://packagist.org/packages/henzeb/var-export-wrapper It should automatically wrap closures so they are exportable. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Laravel: 8
Php: 8.1
We are facing an issue when caching the config with
PHP artisan config: cache. It is a circular references-related issue and we have also faced issue-related closure that occurs when using the callback function in config files as you have suggested here https://github.com/exodusanto/Laravel-Admin/blob/master/docs/fields.md#editable-option.
https://i.imgur.com/Fxcb7Pt.png
Error: var_export does not handle circular references
We have tried this but not working:-
We have tried to handle the error using Handler.php but it is not working
Also we have tried to remove the closure function from config/adminer.php but we have faced the below error:
There are problems with your administrator.php config: The permission option must be a function
Please guide me on how to solve this error when configuring the cache.
Is it possible to ignore this error when config cache or any way to handle this so error should not be reported?
Please guide me how to solve this ?
Beta Was this translation helpful? Give feedback.
All reactions