TehTux / jh_captcha

TYPO3 Extension jh_captcha
https://typo3.org/extensions/repository/view/jh_captcha
GNU General Public License v2.0
5 stars 19 forks source link

Fluid template files loaded from wrong path #23

Closed schuberttobias closed 3 years ago

schuberttobias commented 3 years ago

Describe the bug Typo3 loads jh_recaptcha fluid template files from the wrong path:

Note that I used jh_recaptcha v3.0.3 and the issue is different from https://github.com/TehTux/jh_captcha/issues/10 .

Is this a configuration problem on my part or a bug?

To Reproduce Steps to reproduce the behavior:

  1. Install jh_captcha
  2. Create a new form, with only 1 field of type jh_recaptcha
  3. Save form
  4. Visit form in frontend
  5. Frontend displays: "Oops, an error occurred!"
  6. Error logged to Typo3 Syslog: Core: Exception handler (WEB): Uncaught TYPO3 Exception: #1225709595: The Fluid template files "/var/www/<removed by schuberttobias>/httpdocs/typo3conf/ext/powermail/Resources/Private/Partials/Form/Field/JhCaptchaRecaptcha.html", "/var/www/<removed by schuberttobias>/httpdocs/typo3conf/ext/powermail/Resources/Private/Partials/Form/Field/JhCaptchaRecaptcha" could not be loaded. | TYPO3Fluid\Fluid\View\Exception\InvalidTemplateResourceException thrown in file /var/www/<removed by schuberttobias>/typo3_src-9.5.19/vendor/typo3fluid/fluid/src/View/TemplatePaths.php in line 730. Requested URL: https://dev.<removed by schuberttobias>/kontakt.html

Expected behavior Steps 1-4 identical as above

  1. Frontend displays the form correctly

Affected versions

schuberttobias commented 3 years ago

I have solved this in the Typo3 backend. I added template "Google reCAPTCHA (v2/v3)" in Inlcudes -> "Include static (from extensions)" of my template. Now the form renders correctly with the captcha and no errors are displayed or logged. However, the user manual does not mention this step. Is it required?

TehTux commented 3 years ago

Yes, it is necessary. It is not mentioned separately, because it is so common with extensions in general.