-
Notifications
You must be signed in to change notification settings - Fork 51
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
Error in command line with PageUrlRule component #281
Comments
@gevorgmansuryan Any idea? |
@luke- will try to reproduce/understand |
Thanks @gevorgmansuryan ! Don't hesitate if I can help. |
@funkycram thank you. Can you please try to reproduce, and see what jobs are executing. It will help me to find job that using cache incorrectly (uses yii\WEB\UrlRule from cli). 99% it is related to UrlRules caching. |
@gevorgmansuryan the bug doesn't occurs with jobs, but when executing a command line with SSH, e.g. I can reproduce only on Humhub instances on production (where many people are using the platform during my tests). If I clone the humhub to have a dev instance, I cannot reproduce the bug, and the only difference I can see is that nobody is using the dev instance. I have 2 ways to solve the bug:
In the settings, "Cache Backend" is set to "File". |
@funkycram yeah, i know that it's doesn't occurs with jobs. There is some job or command that calls/uses Web/UrlManager and stores incorrect cache of Rules. Since i can not reproduce it anyway, there is no other chance to reproduce it and find the problem.
|
@gevorgmansuryan thanks for you suggestions. 'urlManager' => [
'showScriptName' => false,
'enablePrettyUrl' => true,
], from The problem is still there. Then, in I tried commenting it and uncommenting it again, and this is really what makes the difference systematically. |
@funkycram interesting :) Can you please comment back YII_DEBUG line, change line 47 from |
@gevorgmansuryan It works with these changes (the bug is gone)! I tested 3 cache types:
The bug occurs only on this server, for all Humhub instances installed on it. I've checked all server settings with the doc, and "Administration" -> "Information" -> "Prerequisites". Everything seems ok. I've done the folowing test in command line (Controller extending echo Yii::$app->cache->get('test_key');
Yii::$app->cache->set('test_key', 'test value'); At the second execution, the "test value" is shown. So caching works. Thanks for your investigation! |
@gevorgmansuryan have you got an idea how to fix this problem without having to add code in the core If it can help, we can have a video call with screen sharing. |
Related to #86 and #74
On some Humbub instance, I don't know why and cannot reproduce on my local dev instance, each time I execute a command line (e.g.
php yii queue/run -v
), the command executes correctly up to the end, and just after, Humhub is not working anymore with on the browser: each time a user loads a page, and error is thrown.php yii cache/flush-all
fixes the problem.Error log:
The text was updated successfully, but these errors were encountered: