Closed reluem closed 6 years ago
you're probably using a very old Contao version?
no, Contao 3.5.28, with PHP 7.0.21-he.0 according to the contao-check.
I have absolutely no idea why it's not working any longer. I used this extension for various forms in the past (but only once a year).
Update: form submission works (email via notification center + leads is working), but the ajax refresh to the confirmation page is not working with above mentioned error.
I have the same issue using:
Contao 3.5.24 PHP 7.1 FPM AjaxForm 1.0.5 Build 4
Detailed error message:
Fatal error: Uncaught exception Error with message Call to undefined method InsertTags::replace() thrown in system/modules/ajaxform/AjaxForm.php on line 110
0 system/modules/ajaxform/AjaxForm.php(39): AjaxForm::sendResponse('
Any updates on this issue? @aschempp
not really, it does not make any sense to me…
@aschempp the problem is with the inserttags
extension that you named the class InsertTags
and autoload it the old way, which means you are in fact replacing the original Contao InsertTags
class.
https://github.com/terminal42/contao-inserttags/blob/master/config/autoload.php
We have to either rename the class or introduce the namespace, what do you prefer?
any idea why this would happen? Installed both latest release, develop branch and older 1.0.4. The latter doesn't throw the error, basically because this method was only introduced in 1.0.5 ;)
The only insertTags I'm currently using are the {{fa::icon}} from FontAwesome.