codefog / contao-instagram

Contao extension that displays Instagram feed on your website
MIT License
11 stars 12 forks source link

Error while setting up on Contao 4.13.4 #37

Closed johannes-bittner closed 2 years ago

johannes-bittner commented 2 years ago

When I try to request the access token (fresh install), I am redirected to Instagram; then I allow the app to share information, and after clicking on "Allow", I get redirected to my installation where the following error is displayed:

Attempted to call an undefined method named "fetchAssoc" of class "Doctrine\DBAL\Connection". Did you mean to call "fetchAssociative"?

Uncaught PHP Exception Symfony\Component\ErrorHandler\Error\UndefinedMethodError: "Attempted to call an undefined method named "fetchAssoc" of class "Doctrine\DBAL\Connection". Did you mean to call "fetchAssociative"?" at /var/www/vhosts/client/httpdocs/contao-4-13/vendor/codefog/contao-instagram/src/Controller/InstagramController.php line 92 { "exception": {} }

Stack trace:

Symfony\Component\ErrorHandler\Error\UndefinedMethodError: Attempted to call an undefined method named "fetchAssoc" of class "Doctrine\DBAL\Connection". Did you mean to call "fetchAssociative"?

at vendor/codefog/contao-instagram/src/Controller/InstagramController.php:92 at Codefog\InstagramBundle\Controller\InstagramController->authAction() (vendor/symfony/http-kernel/HttpKernel.php:152) at Symfony\Component\HttpKernel\HttpKernel->handleRaw() (vendor/symfony/http-kernel/HttpKernel.php:74) at Symfony\Component\HttpKernel\HttpKernel->handle() (vendor/symfony/http-kernel/Kernel.php:202) at Symfony\Component\HttpKernel\Kernel->handle() (web/index.php:44)

Changing "fetchAssoc" to "fetchAssociative" in vendor/codefog/contao-instagram/src/Controller/InstagramController.php line 92 solved the problem for me.

qzminski commented 2 years ago

Thank you, released in 2.3.2.

johannes-bittner commented 2 years ago

I thank you !