Problem with Form extension and standard search
When form extension is loaded and a standard search form is placed on a page an error shows up when loading the page with the search plugin ("oops an error occured!").
Updated by Koen Van Nuffelen about 8 years ago
I get this error after installing indexed search.
Oops, an error occurred!
PHP Catchable Fatal Error: Argument 2 passed to TYPO3\CMS\Form\Controller\FormController::cObjGetSingleExt()
must be an array, null given, called in
on line 730 and defined in
/var/www/vhosts/typo3_cores/typo3_src-6.1.0alpha1/typo3/sysext/form/Classes/Controller/FormController.php line 93
After uninstalling extension system extension form it works
=> This solutions works, but not really a solution if you want to use the form system extension.
Updated by Christian Bernet about 8 years ago
sorry for the bad error message from thomas.
thanks to koen van nuffelen, but * we need the form extension installed.*
the error message is:
PHP Catchable Fatal Error: Argument 2 passed to TYPO3\CMS\Form\Controller\FormController::cObjGetSingleExt() must be an array, null given, called in D:\wamp\www\psroggwil\typo3\sysext\frontend\Classes\ContentObject\ContentObjectRenderer.php on line 732 and defined in D:\wamp\www\psroggwil\typo3\sysext\form\Classes\Controller\FormController.php line 93
Updated by Ernesto Baschny about 8 years ago
- Category changed from Indexed Search to Form Framework
- Status changed from New to Needs Feedback
- Is Regression set to No
Updated by Thomas Etter almost 8 years ago
Alexander Opitz wrote:
As #31572 was merged, does this issue is resolved in latest TYPO3?
Das the issue with "###LABEL### ###FIELD###" still exist?
Yes, it still exists. The following line solves the problem:
'10.' => is_array($mergedTypoScript) ? $mergedTypoScript : array(),
Updated by Thomas Etter over 7 years ago
Alexander Opitz wrote:
Ok, would you like to provide a patch against master by using Gerrit? http://wiki.typo3.org/CWT
Sorry, I have to correct myself: The standard search form still isn't displayed, the only difference between the two patches is that with our patch, no form is displayed at all (no labels either). I had to add the form manually via html, the standard search is still working though.
Updated by Stefan Neufeind over 7 years ago
Problem appears if EXT:form is installed, no matter if its static template is loaded or not. Thanks to Olly for the clarification. If you can, deactivate EXT:form for the moment.
EXT:form "overlays" the form-functionality and produces the undesired output.