We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I can create a note. But I can't open it, it returns the following error:
yii\base\UnknownMethodException: Calling unknown method: humhub\modules\content\models\Content::canRead() in /var/www/humhub/protected/vendor/yiisoft/yii2/base/Component.php:300 Stack trace: #0 /var/www/humhub/protected/modules/notes/controllers/NoteController.php(74): yii\base\Component->__call('canRead', Array) #1 [internal function]: humhub\modules\notes\controllers\NoteController->actionOpen() #2 /var/www/humhub/protected/vendor/yiisoft/yii2/base/InlineAction.php(57): call_user_func_array(Array, Array) #3 /var/www/humhub/protected/vendor/yiisoft/yii2/base/Controller.php(157): yii\base\InlineAction->runWithParams(Array) #4 /var/www/humhub/protected/vendor/yiisoft/yii2/base/Module.php(528): yii\base\Controller->runAction('open', Array) #5 /var/www/humhub/protected/vendor/yiisoft/yii2/web/Application.php(103): yii\base\Module->runAction('notes/note/open', Array) #6 /var/www/humhub/protected/vendor/yiisoft/yii2/base/Application.php(386): yii\web\Application->handleRequest(Object(humhub\components\Request)) #7 /var/www/humhub/index.php(25): yii\base\Application->run() #8 {main}
The text was updated successfully, but these errors were encountered:
Which HUmHub version are you using?
Sorry, something went wrong.
1.4.0-beta.1 (thank you, luke).
I have been able to solve the problem. canRead() is deprecated. I use canView method instead, in NoteController.php(74)
Now it works fine. -- | --
Fix #27: Removed deprecated method usage
8384432
No branches or pull requests
I can create a note. But I can't open it, it returns the following error:
yii\base\UnknownMethodException: Calling unknown method: humhub\modules\content\models\Content::canRead() in /var/www/humhub/protected/vendor/yiisoft/yii2/base/Component.php:300 Stack trace: #0 /var/www/humhub/protected/modules/notes/controllers/NoteController.php(74): yii\base\Component->__call('canRead', Array) #1 [internal function]: humhub\modules\notes\controllers\NoteController->actionOpen() #2 /var/www/humhub/protected/vendor/yiisoft/yii2/base/InlineAction.php(57): call_user_func_array(Array, Array) #3 /var/www/humhub/protected/vendor/yiisoft/yii2/base/Controller.php(157): yii\base\InlineAction->runWithParams(Array) #4 /var/www/humhub/protected/vendor/yiisoft/yii2/base/Module.php(528): yii\base\Controller->runAction('open', Array) #5 /var/www/humhub/protected/vendor/yiisoft/yii2/web/Application.php(103): yii\base\Module->runAction('notes/note/open', Array) #6 /var/www/humhub/protected/vendor/yiisoft/yii2/base/Application.php(386): yii\web\Application->handleRequest(Object(humhub\components\Request)) #7 /var/www/humhub/index.php(25): yii\base\Application->run() #8 {main}
The text was updated successfully, but these errors were encountered: