Apen / additional_reports

Useful information in the reports module : xclass, ajax, cliKeys, eID, general status of the system (encoding, DB, php vars...), hooks, compare local and TER extension (diff), used content type, used plugins, ExtDirect... It can really help you during migration or new existing project (to have a global reports of the system).
Other
12 stars 11 forks source link

Undefined array key issues #36

Closed christianbltr closed 12 months ago

christianbltr commented 1 year ago

There a some "undefined array issues" with PHP 8

Tested with

Examples:

Core: Error handler (BE): PHP Warning: Undefined array key "baseURL" in [...]/vendor/apen/additional_reports/Classes/Reports/WebsiteConf.php line 79    

Core: Error handler (BE): PHP Warning: Trying to access array offset on value of type null in [...]/vendor/apen/additional_reports/Classes/Reports/Plugins.php line 139 

Core: Error handler (BE): PHP Warning: Undefined array key "news_pi1" in [...]/vendor/apen/additional_reports/Classes/Reports/Plugins.php line 139  

Core: Error handler (BE): PHP Warning: Undefined array key "extbase" in [...]/vendor/apen/additional_reports/Classes/Reports/CommandControllers.php line 37 

Core: Error handler (BE): PHP Warning: Undefined array key 1 in [...]/vendor/apen/additional_reports/Classes/Reports/Eid.php line 43    

Core: Error handler (BE): PHP Warning: Undefined array key 1 in [...]/vendor/apen/additional_reports/Classes/ViewHelpers/ContentInfosViewHelper.php line 56

Core: Error handler (BE): PHP Warning: Undefined array key "initCommands" in [...]/vendor/apen/additional_reports/Classes/Reports/Status.php line 88
instruccionesaldorso commented 1 year ago

Same issue here. Tested against PHP 8.1, TYPO3 11.5.28, EXT:additional_reports 3.4.3.

Apen commented 1 year ago

Did you test with the last git version? Can you confirm it's still happening?

instruccionesaldorso commented 1 year ago

@Apen I can confirm it works with "master" version in PHP 8.1 now. Sorry, I didn't check this was fixed here: https://github.com/Apen/additional_reports/commit/b4c4fd6aaf96b82c7adde470970da552dc4c8bde I'll keep the "dev-master" version for now in composer until a new version is released. Thanks for your feedback!