georgringer / t3monitoring_client

Monitoring client
GNU General Public License v2.0
29 stars 25 forks source link

TypoScriptFrontendController is not initialized #65

Closed mhuber84 closed 3 years ago

mhuber84 commented 3 years ago

With t3monitoring_client v9.2.1 in TYPO3 v11.3.3 the TypoScriptFrontendController in Classes/Client.php row 107 can not be initialized:

Here the important parts from the stacktrace:

...
Argument 1 passed to TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::__construct() must be an instance of TYPO3\CMS\Core\Context\Context, null given
...
.../typo3conf/ext/t3monitoring_client/Classes/Client.php(56): T3Monitor\\T3monitoringClient\\Client->collectData()
...
drblitz-weblab commented 3 years ago

Hello @mhuber84

I provide solution for TYPO3 v11 let's talk about it :)

https://github.com/georgringer/t3monitoring_client/pull/66

mhuber84 commented 3 years ago

Hi @blitz-weblab I applied your solution as a patch in our project and it seems to work :-). The error is gone and curl https://www.example.de/index.php?eID=t3monitoring&secret=abc returns a nice JSON string. Thank you!

peterkraume commented 3 years ago

@mhuber84 I've created a patch which should add support for TYPO3 9 until 11. Maybe you can give my patch a try.

mhuber84 commented 3 years ago

Hi @peterkraume , your patch #67 works with TYPO3 11.4