Skip to content
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

403 while reordering structured content #20

Open
khayamy001 opened this issue Jun 11, 2018 · 0 comments
Open

403 while reordering structured content #20

khayamy001 opened this issue Jun 11, 2018 · 0 comments

Comments

@khayamy001
Copy link

Hey,

I ran into an issue this morning which I couldn't reproduce locally (without docker).
While reordering structured content in craft the server seems to generate a 403.

Exactly the same issue is happening here: craftcms/cms#2655

Unfortunately this solution didn't work for me. In my case we have the Redis setup. I haven't looked into this much but it seems to be related to the AJAX call hitting an invalid session? Is there a way to run the containers without redis to verify if the issue is caused by it?

Stacktrace:

2018-06-11 13:24:03 [92.111.66.66][1][-][error][yii\web\HttpException:403] yii\web\ForbiddenHttpException: User is not authorized to perform this action in /usr/share/nginx/vendor/craftcms/cms/src/web/Controller.php:214
Stack trace:
#0 /usr/share/nginx/vendor/craftcms/cms/src/controllers/StructuresController.php(67): craft\web\Controller->requireAuthorization('editStructure:5')
#1 /usr/share/nginx/vendor/yiisoft/yii2/base/BaseObject.php(109): craft\controllers\StructuresController->init()
#2 /usr/share/nginx/vendor/yiisoft/yii2/base/Controller.php(86): yii\base\BaseObject->__construct(Array)
#3 [internal function]: yii\base\Controller->__construct('structures', Object(craft\web\Application), Array)
#4 /usr/share/nginx/vendor/yiisoft/yii2/di/Container.php(375): ReflectionClass->newInstanceArgs(Array)
#5 /usr/share/nginx/vendor/yiisoft/yii2/di/Container.php(156): yii\di\Container->build('craft\\controlle...', Array, Array)
#6 /usr/share/nginx/vendor/yiisoft/yii2/BaseYii.php(345): yii\di\Container->get('craft\\controlle...', Array)
#7 /usr/share/nginx/vendor/yiisoft/yii2/base/Module.php(642): yii\BaseYii::createObject('craft\\controlle...', Array)
#8 /usr/share/nginx/vendor/yiisoft/yii2/base/Module.php(596): yii\base\Module->createControllerByID('structures')
#9 /usr/share/nginx/vendor/yiisoft/yii2/base/Module.php(522): yii\base\Module->createController('move-element')
#10 /usr/share/nginx/vendor/craftcms/cms/src/web/Application.php(273): yii\base\Module->runAction('structures/move...', Array)
#11 /usr/share/nginx/vendor/craftcms/cms/src/web/Application.php(521): craft\web\Application->runAction('structures/move...', Array)
#12 /usr/share/nginx/vendor/craftcms/cms/src/web/Application.php(257): craft\web\Application->_processActionRequest(Object(craft\web\Request))
#13 /usr/share/nginx/vendor/yiisoft/yii2/base/Application.php(386): craft\web\Application->handleRequest(Object(craft\web\Request))
#14 /usr/share/nginx/web/index.php(21): yii\base\Application->run()
#15 {main}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant