jsmrtn / craftagram

Grab Instagram content through the Instagram Basic Display API
Other
14 stars 8 forks source link

Authorize Error #42

Closed laurabennett closed 3 years ago

laurabennett commented 3 years ago

I had this working but am not able to renew after 60 days. I have upgraded Craft but no changes to the Instagram account or the website url. Here is the stack trace I get when I go to the redirect uri. /actions/craftagram/default/auth

PHP 7.4.16 Craft 3.6.13 Craftagram 1.4.4

yii\base\ErrorException: Undefined index: query in /home/settlersgreen/webapps/dev/vendor/scaramangagency/craftagram/src/controllers/DefaultController.php:70 Stack trace:

0 /home/settlersgreen/webapps/dev/vendor/craftcms/cms/src/web/ErrorHandler.php(77): yii\base\ErrorHandler->handleError()

1 /home/settlersgreen/webapps/dev/vendor/scaramangagency/craftagram/src/controllers/DefaultController.php(70): craft\web\ErrorHandler->handleError()

2 [internal function]: scaramangagency\craftagram\controllers\DefaultController->actionAuth()

3 /home/settlersgreen/webapps/dev/vendor/yiisoft/yii2/base/InlineAction.php(57): call_user_func_array()

4 /home/settlersgreen/webapps/dev/vendor/yiisoft/yii2/base/Controller.php(181): yii\base\InlineAction->runWithParams()

5 /home/settlersgreen/webapps/dev/vendor/craftcms/cms/src/web/Controller.php(190): yii\base\Controller->runAction()

6 /home/settlersgreen/webapps/dev/vendor/yiisoft/yii2/base/Module.php(534): craft\web\Controller->runAction()

7 /home/settlersgreen/webapps/dev/vendor/craftcms/cms/src/web/Application.php(279): yii\base\Module->runAction()

8 /home/settlersgreen/webapps/dev/vendor/craftcms/cms/src/web/Application.php(582): craft\web\Application->runAction()

9 /home/settlersgreen/webapps/dev/vendor/craftcms/cms/src/web/Application.php(258): craft\web\Application->_processActionRequest()

10 /home/settlersgreen/webapps/dev/vendor/yiisoft/yii2/base/Application.php(392): craft\web\Application->handleRequest()

11 /home/settlersgreen/webapps/dev/web/index.php(21): yii\base\Application->run()

12 {main}

jsmrtn commented 3 years ago

@laurabennett Sorry to hear your having issues–can you paste the full URL you get when you are being returned to the auth page from instagram?

laurabennett commented 3 years ago

https://www.instagram.com/oauth/authorize?client_id=144477937548148&scope=user_profile,user_media&response_type=code&redirect_uri=http://dev.settlersgreen.drivedev.net/actions/craftagram/default/auth&state=1

If I manually type an "s" to make it https that fixes the problem. Maybe that's what I had to do the first time too I don't remember. I guess that won't be an issue once I switch to the live site. Thanks, Laura

On Tue, May 11, 2021 at 11:25 AM Joshua Martin @.***> wrote:

@laurabennett https://github.com/laurabennett Sorry to hear your having issues–can you paste the full URL you get when you are being returned to the auth page from instagram?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/scaramangagency/craftagram/issues/42#issuecomment-838676675, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEYJKJUVCSGJ6D5KNYNFWFDTNFD5PANCNFSM44VT3RDA .

--

Laura Bennett digital diva

drive > P.O. Box 2838, 170 Kearsarge Street North Conway, NH 03860 603.356.3030 @.***