haassie / rh_recaptcha

TYPO3 extension implementing Google reCAPTCHA
1 stars 9 forks source link

Call to a member function connect() on null --> Complete shutdown of Typo3 after installation of rh_recaptcha #14

Closed Enkrod closed 7 years ago

Enkrod commented 7 years ago

Bugreport:

After installing rh_recaptcha the entire Typo3 installation shuts down with the following error-message:

Call to a member function connect() on null

Exceptionreport

Core: Exception handler (WEB): Uncaught TYPO3 Exception: Call to a member function connect() on null | Error thrown in file /www/htdocs/xxx/example.com/typo3conf/ext/rh_recaptcha/ext_localconf.php in line 7. Requested URL: http://example.com/typo3/index.php?M=tools_ExtensionmanagerExtensionmanager&moduleToken=ed6de6467d6b7e3d7d568f0c4502cc2c5329977d&tx_extensionmanager_tools_extensionmanagerextensionmanager%5BextensionKey%5D=rh_recaptcha&tx_extensionmanager_tools_extensionmanagerextensionmanager%5Baction%5D=toggleExtensionInstallationState&tx_extensionmanager_tools_extensionmanagerextensionmanager%5Bcontroller%5D=Action

Versions:

rh_recaptcha 1.0.0 Typo3 8.7.0 PHP 7.0.14-nmm1

Enkrod commented 7 years ago

13 Should work, but i think the variable should be preserved #15 instead? Depending on if the variable should be preserved or not.

15 is tested for this issue and fixes the bug.