-
-
Notifications
You must be signed in to change notification settings - Fork 150
Debug tables wraps content [SKIP CI] #1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Member
|
Please create a PR in yii2 repository. This repository is read only. |
Contributor
Author
|
Okie dokie |
qiangxue
pushed a commit
that referenced
this pull request
Jan 11, 2014
Closed
Closed
SamMousa
added a commit
to SamMousa/yii2-debug
that referenced
this pull request
Mar 5, 2019
When mails fail to serialize all debug panels break due to the summary. This is shown for a panel that is not the mail panel: ```php PHP Warning 'yii\base\ErrorException' with message 'count(): Parameter must be an array or an object that implements Countable' in /project/vendor/yiisoft/yii2-debug/src/panels/MailPanel.php:111 Stack trace: #0 [internal function]: yii\base\ErrorHandler->handleError(2, 'count(): Parame...', '/project/vendor...', 111, Array) yiisoft#1 /project/vendor/yiisoft/yii2-debug/src/panels/MailPanel.php(111): count(NULL) yiisoft#2 /project/vendor/yiisoft/yii2-debug/src/views/default/view.php(25): yii\debug\panels\MailPanel->getSummary() yiisoft#3 /project/vendor/yiisoft/yii2/base/View.php(348): require('/project/vendor...') yiisoft#4 /project/vendor/yiisoft/yii2/base/View.php(257): yii\base\View->renderPhpFile('/project/vendor...', Array) yiisoft#5 /project/vendor/yiisoft/yii2/base/View.php(156): yii\base\View->renderFile('/project/vendor...', Array, Object(yii\debug\controllers\DefaultController)) yiisoft#6 /project/vendor/yiisoft/yii2/base/Controller.php(384): yii\base\View->render('view', Array, Object(yii\debug\controllers\DefaultController)) yiisoft#7 /project/vendor/yiisoft/yii2-debug/src/controllers/DefaultController.php(121): yii\base\Controller->render('view', Array) yiisoft#8 [internal function]: yii\debug\controllers\DefaultController->actionView('5c7e9f3fd6aad', 'router') ``` For the mail panel itself this error is shown: ```php Exception 'yii\debug\FlattenException' with message 'Serialization of 'Closure' is not allowed' in /project/vendor/yiisoft/yii2-debug/src/LogTarget.php:60 Stack trace: #0 /project/vendor/yiisoft/yii2-debug/src/LogTarget.php(60): serialize(Array) yiisoft#1 /project/vendor/yiisoft/yii2-debug/src/LogTarget.php(130): yii\debug\LogTarget->export() yiisoft#2 /project/vendor/yiisoft/yii2/log/Dispatcher.php(189): yii\debug\LogTarget->collect(Array, true) yiisoft#3 /project/vendor/yiisoft/yii2/log/Logger.php(177): yii\log\Dispatcher->dispatch(Array, true) yiisoft#4 [internal function]: yii\log\Logger->flush(true) yiisoft#5 {main} ``` While there is no (good) way to serialize a `Closure`, the very least we can do is have other panels still work.
samdark
pushed a commit
that referenced
this pull request
Mar 11, 2019
…s all panels not to render When mails fail to serialize all debug panels break due to the summary. This is shown for a panel that is not the mail panel: ```php PHP Warning 'yii\base\ErrorException' with message 'count(): Parameter must be an array or an object that implements Countable' in /project/vendor/yiisoft/yii2-debug/src/panels/MailPanel.php:111 Stack trace: #0 [internal function]: yii\base\ErrorHandler->handleError(2, 'count(): Parame...', '/project/vendor...', 111, Array) #1 /project/vendor/yiisoft/yii2-debug/src/panels/MailPanel.php(111): count(NULL) #2 /project/vendor/yiisoft/yii2-debug/src/views/default/view.php(25): yii\debug\panels\MailPanel->getSummary() #3 /project/vendor/yiisoft/yii2/base/View.php(348): require('/project/vendor...') #4 /project/vendor/yiisoft/yii2/base/View.php(257): yii\base\View->renderPhpFile('/project/vendor...', Array) #5 /project/vendor/yiisoft/yii2/base/View.php(156): yii\base\View->renderFile('/project/vendor...', Array, Object(yii\debug\controllers\DefaultController)) #6 /project/vendor/yiisoft/yii2/base/Controller.php(384): yii\base\View->render('view', Array, Object(yii\debug\controllers\DefaultController)) #7 /project/vendor/yiisoft/yii2-debug/src/controllers/DefaultController.php(121): yii\base\Controller->render('view', Array) #8 [internal function]: yii\debug\controllers\DefaultController->actionView('5c7e9f3fd6aad', 'router') ``` For the mail panel itself this error is shown: ```php Exception 'yii\debug\FlattenException' with message 'Serialization of 'Closure' is not allowed' in /project/vendor/yiisoft/yii2-debug/src/LogTarget.php:60 Stack trace: #0 /project/vendor/yiisoft/yii2-debug/src/LogTarget.php(60): serialize(Array) #1 /project/vendor/yiisoft/yii2-debug/src/LogTarget.php(130): yii\debug\LogTarget->export() #2 /project/vendor/yiisoft/yii2/log/Dispatcher.php(189): yii\debug\LogTarget->collect(Array, true) #3 /project/vendor/yiisoft/yii2/log/Logger.php(177): yii\log\Dispatcher->dispatch(Array, true) #4 [internal function]: yii\log\Logger->flush(true) #5 {main} ``` While there is no (good) way to serialize a `Closure`, the very least we can do is have other panels still work.
scrummitch
added a commit
to scrummitch/yii2-debug
that referenced
this pull request
Feb 16, 2022
If the UserPanel class member variable `$this->filterModel` is NULL, php 8.1 will complain and throw a deprecation error. I am adding an is_null() check before the class_exists call to fix this ``` PHP Deprecated Warning – yii\base\ErrorException class_exists(): Passing null to parameter yiisoft#1 ($class) of type string is deprecated ```
themikem
added a commit
to DeltaV-Tech/yii2-debug
that referenced
this pull request
Feb 25, 2022
PHP Deprecated Warning – yii\base\ErrorException class_exists(): Passing null to parameter yiisoft#1 ($class) of type string is deprecated
Closed
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This small change is to avoid table content overflow when the text hasn't spaces to break words.
For example, this:
becomes: