in2code-de / instagram

Show instagram feed without API in a TYPO3 extension
https://www.in2code.de/agentur/typo3-extensions/instagram/
19 stars 13 forks source link

PHP-error display Feed #38

Open ipnextOne opened 5 months ago

ipnextOne commented 5 months ago

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

LightsOnDeveloper commented 4 months ago

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

ipnextOne commented 4 months ago

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.