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
debug panel not shown after upgrade to 2.0.10 #156
Comments
Update: After few research and help from rawtaz on IRC, found out that debug not displayed because: <div id="yii-debug-toolbar" data-url="/debug/default/toolbar?tag=580b70648631c" style="display:none" class="yii-debug-toolbar-bottom"></div> yeah, there is "display: none" on style. using web browser dev-tools to remove that style found out this error:
From that error, seems that this update can not write debug data to "@app/runtime/debug" directory. |
Have you checked if your debug folder has files? |
yes, it has debug files produced by 2.0.9, but for 2.0.10, only exception files. |
Is it actually logged?:
Is it actually saved?:
|
like I said, only exception by triggering (throw new Exception).
by using this config:
no
no, there is no new files on
currently on 775
no.
yes, still no different. |
running this function on vagrant: <?php
var_dump('User: ' .get_current_user()); returns:
|
I am trying to trigger Not Found Exception, simply by open route that doesn't exists. here's what I got:
see, there is debug data file named And this is screenshot from web view: Only exception that recorded. The rest are not. |
do you have YII_DEBUG = true |
yes, YII_DEBUG = true. |
whats happens if you downgrade debug panel from 2.0.6 to 2.0.5? |
with yii2 v2.0.10 and downgrade trying with |
changing
|
how does a fresh install of the application (basic/advanced app) of 2.0.10 look like? |
ok, got it. doing debug step-by-step it actually trigger exception it caused by: if ($this->getIsActive()) {
YII_DEBUG ? session_write_close() : @session_write_close();
} On Yii2 version 2.0.9, the code looks like this: if ($this->getIsActive()) {
@session_write_close();
} Here the commit that caused it: |
@agungsijawir, thanks for sharing. The change matches yiisoft/yii2#10583. Could you check if your answer is in that topic? |
in specific commit yiisoft/yii2@7c6f76c |
@dynasource yes, since i am using vagrant, i need to change session directory other than the thing is, i didn't use redis/memcached, it just simple apps. thank you for your assistance, have a nice day! |
What steps will reproduce the problem?
On 2.0.9, debug panel shown properly.
My config (
config/config.php
) areDid double check my remote IP (on vagrant) with following code:
the result are:
Notice that
192.168.56.1
are on same class onallowedIPs
.What's expected?
Debug panel should be shown.
What do you get instead?
Debug panel shows only when hit error something like 404, 500.
Any request except error exception didn't captured.
Additional info
The text was updated successfully, but these errors were encountered: