Bug #50274
closedProblem with Form extension and standard search
100%
Description
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!").
Files
Updated by Philipp Gampe over 11 years ago
- Status changed from New to Needs Feedback
- Priority changed from Must have to Should have
Please turn on debugging by setting your IP to the devIpMask setting (Install Tool) and show us the real error message.
Updated by Koen Van Nuffelen over 11 years ago
http://wiki.typo3.org/Exception/CMS/1 says:
typo3 6.1.0
indexed search
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
/var/www/vhosts/typo3_cores/typo3_src-6.1.0alpha1/typo3/sysext/frontend/Classes/ContentObject/ContentObjectRenderer.php
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
Solution
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 over 11 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 Alexander Opitz over 11 years ago
- Category set to Indexed Search
- Status changed from Needs Feedback to New
Updated by Christian Bernet over 11 years ago
we have the problem without the indexed search extension installed (only with the placed search content element)!
so i think the category indexed search is wrong. I think it shoud be Form wizzard.
Updated by Joris Willems about 11 years ago
Indeed. Uninstalling the Form sysext "fixes" the issue.
You can also apply the changes proposed in this patch:
https://review.typo3.org/#/c/6537/
Updated by Ernesto Baschny about 11 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 about 11 years ago
The changes in https://review.typo3.org/#/c/6537/ solve the crash issue but standard search not working properly, the form is not displayed correctly. I get
###LABEL### ###FIELD### as output for the search field.
Updated by Alexander Opitz almost 11 years ago
As #31572 was merged, does this issue is resolved in latest TYPO3?
Das the issue with "###LABEL### ###FIELD###" still exist?
Updated by Thomas Etter almost 11 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:
in /typo3/sysext/form/Classes/Controller/FormController.php
line 107
'10.' => is_array($mergedTypoScript) ? $mergedTypoScript : array(),
Updated by Alexander Opitz almost 11 years ago
- Status changed from Needs Feedback to New
Ok, would you like to provide a patch against master by using Gerrit? http://wiki.typo3.org/CWT
Updated by Thomas Etter almost 11 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 Alexander Opitz almost 11 years ago
So which TYPO3 are you running now?
And which issue is left (without using a patch)?
Updated by Alexander Opitz almost 11 years ago
- Status changed from New to Needs Feedback
Updated by Thomas Etter almost 11 years ago
Alexander Opitz wrote:
So which TYPO3 are you running now?
And which issue is left (without using a patch)?
TYPO3 version is 6.1.7
Without using a patch i get Label code displayed but no search form. The search itself is working.
Updated by Alexander Opitz almost 11 years ago
Ok, can you please add an illustrative screenshot?
Updated by Thomas Etter almost 11 years ago
- File screenshot.PNG screenshot.PNG added
Alexander Opitz wrote:
Ok, can you please add an illustrative screenshot?
Updated by Alexander Opitz almost 11 years ago
- Status changed from Needs Feedback to New
Updated by Stefan Neufeind over 10 years ago
I can confirm the non-replaced labels with current 6.2-master and the default search-form.
Updated by Stefan Neufeind over 10 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.
Updated by Oliver Hader over 10 years ago
- File formController.patch formController.patch added
Updated by Gerrit Code Review over 10 years ago
- Status changed from New to Under Review
Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/28042
Updated by Oliver Hader over 10 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 50a08fc8e8ed438e279688c496314268b7df00b2.
Updated by Björn Jacob over 9 years ago
- Category changed from Form Framework to 1602
Updated by Björn Jacob over 8 years ago
- Category changed from 1602 to Form Framework