-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SearchForm does not work (example below with cut and paste) #87
Comments
Could you please set the extension configuration of rn_base for verbose mayday to true? After this you should see a more verbose error message in place. |
Hi,
I got the following backtrace, but it seems that actually I do not understand where the problem is coming from. I hope you can help me:
UNCAUGHT EXCEPTION FOR VIEW: tx_mkforms_action_FormBase
CODE: 1
MESSAGE: PHP Warning: array_key_exists() expects parameter 2 to be array, null given in C:\inetpub\wwwroot\sdgziel\typo3conf\ext\mkforms\widgets\searchform\class.tx_mkforms_widgets_searchform_Main.php line 173
STACK:
TYPO3\CMS\Core\Error\Exception: PHP Warning: array_key_exists() expects parameter 2 to be array, null given in C:\inetpub\wwwroot\sdgziel\typo3conf\ext\mkforms\widgets\searchform\class.tx_mkforms_widgets_searchform_Main.php line 173 in C:\inetpub\wwwroot\typo3_src-7.6.31\typo3\sysext\core\Classes\Error\ErrorHandler.php:111
Stack trace:
#0 [internal function]: TYPO3\CMS\Core\Error\ErrorHandler->handleError(2, 'array_key_exist...', 'C:\\inetpub\\wwwr...', 173, Array)
#1 C:\inetpub\wwwroot\sdgziel\typo3conf\ext\mkforms\widgets\searchform\class.tx_mkforms_widgets_searchform_Main.php(173): array_key_exists('rdt_lister', NULL)
#2 C:\inetpub\wwwroot\sdgziel\typo3conf\ext\mkforms\widgets\searchform\class.tx_mkforms_widgets_searchform_Main.php(67): tx_mkforms_widgets_searchform_Main->_initCriterias()
#3 C:\inetpub\wwwroot\sdgziel\typo3conf\ext\mkforms\widgets\searchform\class.tx_mkforms_widgets_searchform_Main.php(24): tx_mkforms_widgets_searchform_Main->_initData()
#4 C:\inetpub\wwwroot\sdgziel\typo3conf\ext\mkforms\api\class.mainrenderlet.php(524): tx_mkforms_widgets_searchform_Main->_render()
#5 C:\inetpub\wwwroot\sdgziel\typo3conf\ext\mkforms\api\class.tx_ameosformidable.php(2901): formidable_mainrenderlet->render()
#6 C:\inetpub\wwwroot\sdgziel\typo3conf\ext\mkforms\api\class.tx_ameosformidable.php(2878): tx_ameosformidable->_renderElement(Object(tx_mkforms_widgets_searchform_Main))
#7 C:\inetpub\wwwroot\sdgziel\typo3conf\ext\mkforms\api\class.tx_ameosformidable.php(2441): tx_ameosformidable->_renderElements()
#8 C:\inetpub\wwwroot\sdgziel\typo3conf\ext\mkforms\api\class.tx_ameosformidable.php(2192): tx_ameosformidable->_render()
#9 C:\inetpub\wwwroot\sdgziel\typo3conf\ext\mkforms\action\class.tx_mkforms_action_FormBase.php(113): tx_ameosformidable->render()
#10 C:\inetpub\wwwroot\sdgziel\typo3conf\ext\rn_base\action\class.tx_rnbase_action_BaseIOC.php(87): tx_mkforms_action_FormBase->handleRequest(Object(tx_rnbase_parameters), Object(Tx_Rnbase_Configuration_Processor), Object(ArrayObject))
#11 C:\inetpub\wwwroot\sdgziel\typo3conf\ext\rn_base\class.tx_rnbase_controller.php(254): tx_rnbase_action_BaseIOC->execute(Object(tx_rnbase_parameters), Object(Tx_Rnbase_Configuration_Processor))
#12 C:\inetpub\wwwroot\sdgziel\typo3conf\ext\rn_base\class.tx_rnbase_controller.php(228): tx_rnbase_controller->doAction('tx_mkforms_acti...', Object(tx_rnbase_parameters), Object(Tx_Rnbase_Configuration_Processor))
#13 [internal function]: tx_rnbase_controller->main('', Array)
.... skip useless parts
Best regards
Anton
De : Hannes Bochmann <[email protected]>
Envoyé : lundi 20 août 2018 08:49
À : DMKEBUSINESSGMBH/typo3-mkforms <[email protected]>
Cc : Anton Mezger <[email protected]>; Author <[email protected]>
Objet : Re: [DMKEBUSINESSGMBH/typo3-mkforms] SearchForm does not work (example below with cut and paste) (#87)
Could you please set the extension configuration of rn_base for verbose mayday to true? After this you should see a more verbose error message in place.
Furthermore it would be helpful to install a devlog extension like mklog <https://github.com/DMKEBUSINESSGMBH/typo3-mklog/> if that doesn't help.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub <#87 (comment)> , or mute the thread <https://github.com/notifications/unsubscribe-auth/AMZUKJnvcvnpopFdM9IE0GYKHEzAyM6aks5uSlvNgaJpZM4WC_-o> . <https://github.com/notifications/beacon/AMZUKOVHWnPk5MrmySCrIva7gR_OkXKQks5uSlvNgaJpZM4WC_-o.gif>
|
There seems to be a problem with session handling as $GLOBALS['_SESSION']['ameos_formidable']['applicationdata'] is no array. Could you please check if tx_mkforms_session_MixedSessionManager::initializeSessionArray() is invoked before the error occurs and what's the content of $GLOBALS['_SESSION']['ameos_formidable'] at the start and the end of this method? |
Hi,
Effectively $GLOBALS['_SESSION'] is null; how to invoke the initializeSessionArray, that method being private?
Many thanks for helping me out
Best regards
De : Hannes Bochmann <[email protected]>
Envoyé : lundi 20 août 2018 09:24
À : DMKEBUSINESSGMBH/typo3-mkforms <[email protected]>
Cc : Anton Mezger <[email protected]>; Author <[email protected]>
Objet : Re: [DMKEBUSINESSGMBH/typo3-mkforms] SearchForm does not work (example below with cut and paste) (#87)
There seems to be a problem with session handling as $GLOBALS['_SESSION']['ameos_formidable']['applicationdata'] is no array. Could you please check if tx_mkforms_session_MixedSessionManager::initializeSessionArray() is invoked before the error occurs and what's the content of $GLOBALS['_SESSION']['ameos_formidable'] at the start and the end of this method?
You could also check if the problem occurs with older versions of mkforms. After 3.0.14 there were some changes to the session handling. Maybe it works 3.0.14 which would lead us in the right direction.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub <#87 (comment)> , or mute the thread <https://github.com/notifications/unsubscribe-auth/AMZUKOIfdSf-lIwSHC8ZYAgK-_HPIlSHks5uSmQAgaJpZM4WC_-o> . <https://github.com/notifications/beacon/AMZUKHMUR2fygScl-ZGyequyf1YzMZOqks5uSmQAgaJpZM4WC_-o.gif>
|
Hi,
By the way I use version 3.0.21. I prefer not to go back to an older version, while the problem will occur than again in the future.
Best regards
Anton
De : Hannes Bochmann <[email protected]>
Envoyé : lundi 20 août 2018 09:24
À : DMKEBUSINESSGMBH/typo3-mkforms <[email protected]>
Cc : Anton Mezger <[email protected]>; Author <[email protected]>
Objet : Re: [DMKEBUSINESSGMBH/typo3-mkforms] SearchForm does not work (example below with cut and paste) (#87)
There seems to be a problem with session handling as $GLOBALS['_SESSION']['ameos_formidable']['applicationdata'] is no array. Could you please check if tx_mkforms_session_MixedSessionManager::initializeSessionArray() is invoked before the error occurs and what's the content of $GLOBALS['_SESSION']['ameos_formidable'] at the start and the end of this method?
You could also check if the problem occurs with older versions of mkforms. After 3.0.14 there were some changes to the session handling. Maybe it works 3.0.14 which would lead us in the right direction.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub <#87 (comment)> , or mute the thread <https://github.com/notifications/unsubscribe-auth/AMZUKOIfdSf-lIwSHC8ZYAgK-_HPIlSHks5uSmQAgaJpZM4WC_-o> . <https://github.com/notifications/beacon/AMZUKHMUR2fygScl-ZGyequyf1YzMZOqks5uSmQAgaJpZM4WC_-o.gif>
|
You don't need to invoke that method, mkforms should take care of that. It's done for example when tx_mkforms_session_MixedSessionManager is instantiated (check the constrcutor). |
Hi,
I replaced my version of mkforms with version 3.0.14.
Now application data appears as array and contains rdt_lister.
However, now I get another error; it tells me that my template is wrong, I guess, but it is the same as always (is there something new?). See template below:
UNCAUGHT EXCEPTION FOR VIEW: tx_mkforms_action_FormBase
CODE: 0
MESSAGE:
MKFORMS:
RENDERLET:SEARCHFORM[name=mysearch] - Template defined, but /template/subpart is missing. Please check your XML configuration.
XML: fileadmin/xml/search.xml
MKFORMS Version: v3.0.21
Total exec. time: 0.129 sec
debug trail:
1. {closure}#34
2. TYPO3\CMS\Frontend\Http\Application->run#33
3. TYPO3\CMS\Core\Core\Bootstrap->handleRequest#78
4. TYPO3\CMS\Frontend\Http\RequestHandler->handleRequest#308
5. TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController->INTincScript#232
6. TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController->recursivelyReplaceIntPlaceholdersInContent#3488
7. TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController->INTincScript_process#3522
8. TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer->cObjGetSingle#3577
9. TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer->render#859
10. TYPO3\CMS\Frontend\ContentObject\UserContentObject->render#943
11. TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer->callUserFunction#40
12. call_user_func_array#7322
13. tx_rnbase_controller->main#
14. tx_rnbase_controller->doAction#228
15. tx_rnbase_action_BaseIOC->execute#254
16. tx_mkforms_action_FormBase->handleRequest#87
17. tx_ameosformidable->render#113
18. tx_ameosformidable->_render#2179
19. tx_ameosformidable->_renderElements#2428
20. tx_ameosformidable->_renderElement#2865
21. formidable_mainrenderlet->render#2888
22. tx_mkforms_widgets_searchform_Main->_render#491
23. formidable_mainrenderlet->renderChildsCompiled#27
24. formidable_mainrenderlet->findTemplate#2806
25. formidable_mainrenderlet->mayday#2766
26. tx_ameosformidable->mayday#2801
27. tx_mkforms_util_Div::mayday#3376
28. tx_rnbase_util_Debug::getDebugTrail#261
<!-- ###mysearch### begin-->
<style type="text/css">
.pages .header {
margin-top:10px;
padding:5px 10px;;
font-weight:bold;
background-color:#FFF48B;
cursor:pointer;
border:1px solid #F18900;
}
.pages .description {
padding:10px;
border:1px solid #F18900;
border-top:none;
background-color:#FAF0C6;
}
</style>
<table border="0">
<tr>
<td><p>Filter:</p></td>
<td style="padding-left: 10px;"><span class="label">{association.label} : </span> </td><td style="padding-left: 4px;">{association.input}</td>
<td style="padding-left: 10px;"><span class="label">{berater.label} : </span> </td><td style="padding-left: 4px;">{berater.input}</td>
<td style="padding-left: 10px;"><span class="label">{patient.label} : </span> </td><td style="padding-left: 4px;">{patient.input}</td>
</tr>
<tr>
<td> </td>
<td style="padding-left: 10px;"><span class="label">{year.label} : </span> </td><td style="padding-left: 4px;">{year.input} </td>
<td style="padding-left: 10px;"><span class="label">{datefrom.label} : </span> </td><td style="padding-left: 4px;">{datefrom.input} </td>
<td style="padding-left: 10px;"><span class="label">{dateto.label} : </span> </td><td style="padding-left: 4px;">{dateto.input} </td>
</tr>
</table>
<div style="margin-left: 50px; margin-top: 10px;">
<span class="label">{btnSearch}</span>
{btnClear.input}
{print.input}
{exportexcel1.input}
{exportexcel2.input}
</div>
<!-- ###mysearch### end-->
<!-- ###pages### begin-->
<div class="pages">{pages}</div>
<!-- ###ROWS### begin-->
<!-- ###ROW### begin-->
{short} {btn-del} {btn-hide} <br />
{long}
<!-- ###ROW### end-->
<!-- ###ROWS### end-->
<!-- ###pages### end-->
De : Hannes Bochmann <[email protected]>
Envoyé : lundi 20 août 2018 09:42
À : DMKEBUSINESSGMBH/typo3-mkforms <[email protected]>
Cc : Anton Mezger <[email protected]>; Author <[email protected]>
Objet : Re: [DMKEBUSINESSGMBH/typo3-mkforms] SearchForm does not work (example below with cut and paste) (#87)
You don't need to invoke that method, mkforms should take care of that. It's done for example when tx_mkforms_session_MixedSessionManager is instantiated (check the constrcutor).
You should only go back to an older version to check at which point the functionality broke. My guess is that it will work with mkforms 3.0.14. With that in mind it would be much more easy to track down the problem.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub <#87 (comment)> , or mute the thread <https://github.com/notifications/unsubscribe-auth/AMZUKP5UIErZt9xFmCBYzZ7KVknNylcJks5uSmhDgaJpZM4WC_-o> . <https://github.com/notifications/beacon/AMZUKPOIIEO84BqhIkSqnVRzlkenVbTfks5uSmhDgaJpZM4WC_-o.gif>
|
The new error is due to an error in your xml. The configuration of your SEARCHFORM renderlet should be outside the node. |
Many thanks,
I am going away for holidays and I will try to look at it later. Many thanks, I think I will see to it later. However what means your remark “the renderlet should be outside the node”?
Best regards
Anton
De : Hannes Bochmann <[email protected]>
Envoyé : lundi 20 août 2018 10:26
À : DMKEBUSINESSGMBH/typo3-mkforms <[email protected]>
Cc : Anton Mezger <[email protected]>; Author <[email protected]>
Objet : Re: [DMKEBUSINESSGMBH/typo3-mkforms] SearchForm does not work (example below with cut and paste) (#87)
The new error is due to an error in your xml. The configuration of your SEARCHFORM renderlet should be outside the node.
As I thought the changes after version 3.0.14 introduced this bug. But I'm afraid we don't have time to investigate and fix it right now. Are you willing to dig deeper and provide a pull request?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub <#87 (comment)> , or mute the thread <https://github.com/notifications/unsubscribe-auth/AMZUKGhNR-HuWZCvhc3Ohp-_OxN03k-4ks5uSnJ7gaJpZM4WC_-o> . <https://github.com/notifications/beacon/AMZUKAbsawV4gWQ_Qnlq31E-w93tegCQks5uSnJ7gaJpZM4WC_-o.gif>
|
Sorry, I misunderstood something. Your XML structure seems to be fine. But you need to configure thwe property for the property of your searchform renderlet like this: Maybe you need to wrap the subpart with "###" like ###SEARCH_FORM_RENDERLET###. I don't know at the moment. Of course you need the supply this subpart in your template as well. |
Hi,
It works now ; It seems that before the subpart had not to be mentioned while it tool the subpart from the name of the searchform; now it has to be explicitly mentioned.
Thanks a lot.
A subsidiary question: is there a replacement for the old extension ameos_feuser_mgr, we are using now?
Best regards
Anton
De : Hannes Bochmann <[email protected]>
Envoyé : lundi 20 août 2018 10:47
À : DMKEBUSINESSGMBH/typo3-mkforms <[email protected]>
Cc : Anton Mezger <[email protected]>; Author <[email protected]>
Objet : Re: [DMKEBUSINESSGMBH/typo3-mkforms] SearchForm does not work (example below with cut and paste) (#87)
Sorry, I misunderstood something. Your XML structure seems to be fine. But you need to configure thwe property for the property of your searchform renderlet like this:
fileadmin/xml/template/form_search.html
SEARCH_FORM_RENDERLET
Maybe you need to wrap the subpart with "###" like ###SEARCH_FORM_RENDERLET###. I don't know at the moment. Of course you need the supply this subpart in your template as well.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub <#87 (comment)> , or mute the thread <https://github.com/notifications/unsubscribe-auth/AMZUKGQS4DlAd-i-cDcL-cSbeHBeBko5ks5uSneFgaJpZM4WC_-o> . <https://github.com/notifications/beacon/AMZUKA68GrT3OnhV06Cav_3WhXqoow1rks5uSneFgaJpZM4WC_-o.gif>
|
Considering ameos_feuser_mgr I can't help you with an advice. |
search form is rendered |
According to comments in #100 the problem still exists in current head. So I reopen this ticket. |
Hey @AntonMezger , So I stripped down your example and got the search form visible. This works and It would be really helpful if you could provide a (not) working xml example. |
Hi,
I patched the version 3.0.14 with your date modifications. I had also to change some protected functions back to public ones. Everything works perfectly well, so that I am currently happy.
I also tried the latest version from git and there is no way to have search forms working. Many different weird errors. I use php version 7.1
I will keep for the time being the patched version 3.0.14
Best regards
Anton
… On 14 Mar 2019, at 15:11, René Nitzsche ***@***.***> wrote:
Hey @AntonMezger <https://github.com/AntonMezger> ,
I tried to install the form xml from ticket description. This fails for some missing code behind and html templates. Also a database query to mytable isn't possible.
So I stripped down your example and got the search form visible. This works and $GLOBALS['_SESSION']['ameos_formidable']['applicationdata'] is filled. There is also no error when I click at Senden. The session data is filled as expected.
So maybe the problem is related to your custom php code.
It would be really helpful if you could provide a (not) working xml example.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub <#87 (comment)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AMZUKI4SFgOzUiT8k4tceImJedao_Tifks5vWliFgaJpZM4WC_-o>.
|
All my xml files work correctly with mkforms, however an xml file with a searchform refuses to render and tells me "Leider ist ein Fehler aufgetreten). The xml file was developed with formidable and probably something has to be changed I guess.
// en=0 de=2 fr=3 it=5
switch ($GLOBALS['TSFE']->sys_language_uid) {
case 0:
$html = "Actual user: " . $GLOBALS["TSFE"]->fe_user->user["username"];
break;
case 2:
$html = "Aktueller Benutzer: " . $GLOBALS["TSFE"]->fe_user->user["username"];
break;
case 3:
$html = "Utilisateur actuel: " . $GLOBALS["TSFE"]->fe_user->user["username"];
break;
case 5:
$html = "Utente corrente: " . $GLOBALS["TSFE"]->fe_user->user["username"];
break;
}
return $html;
]]>
</renderlet:BOX>
The text was updated successfully, but these errors were encountered: