FriendsOfTYPO3 / frontend_editing

TYPO3 CMS Frontend Editing
https://friendsoftypo3.github.io/frontend_editing/
102 stars 38 forks source link

Exception when Adminpanel is Active #626

Open h3nn3s opened 1 year ago

h3nn3s commented 1 year ago

I get an exception thrown, when adminpanel is active.

(1/1) #1476107295 TYPO3\CMS\Core\Error\Exception
PHP Runtime Deprecation Notice: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/public/typo3/sysext/frontend/Classes/ContentObject/ContentObjectRenderer.php line 5476

Steps to reproduce: I use latest version of EXT:t3kit to have a look at the "new" frontend editing. This package requires typo3/cms-adminpanel. After installing I get the above mentioned exception. This one disapears directly after removing adminpanel from installation and everything is working fine.

mabolek commented 1 year ago

Hi @h3nn3s!

Thank you for reporting this issue.

Please let us know which version of TYPO3, Frontend Editing, and PHP your are running. Also, are you testing this on a specific page in the default t3kit page tree or does it appear everywhere, all the time?

I did a quick test of frontend_editing v3.0.25 and TYPO3 v11.5.12 with PHP 8.0, and I was unfortunately not able to reproduce your issue. (I tried uninstalling and installing typo3/cms-adminpanel as well.)

h3nn3s commented 1 year ago

Hi @mabolek

the issue is caused by PHP 8.1 - I rechecked it with PHP8.0, there everything is fine.

TYPO3: 11.5.12 PHP: 8.1 frontend_editing: 3.0.25 t3kit: dev-master

mabolek commented 1 year ago

Aha! There we probably have it, then! Thanks for checking.

josefglatz commented 1 year ago

I can also reproduce the problem with PHP 8.1

josefglatz commented 1 year ago

The bug also appear if no t3_kit is used