in2code-de / instagram

Show instagram feed without API in a TYPO3 extension

Home Page:https://www.in2code.de/agentur/typo3-extensions/instagram/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PHP-error display Feed

ipnextOne opened this issue · comments

Hi,
Feed is integrated and is also displayed correctly in the backend.
But in the frontend I get the following error:

PHP Warning: Attempt to read property "data" on null in /var/www/vhosts/website/typo3conf/ext/instagram/Classes/Controller/ProfileController.php line 41

PHP 8.3
Typo3 11.5.36

hey. which version did you use? I got the same error with 8.0.0. A downgrade to 7.2.0 fixed it.

Hi,
yes i use version 8.
I have commented out this line in the file /ext/instagram/Classes/Controller/ProfileController.php
// 'data' => $this->request->getAttribute('currentContentObject')->data,

that work for me.