DMKEBUSINESSGMBH / typo3-mkforms

https://www.dmk-ebusiness.de
3 stars 6 forks source link

Documentation #153

Open AntonMezger opened 1 year ago

AntonMezger commented 1 year ago

Hello,

I had a running version with mkforms 3.0.14. I just updated to version 10.1.3. I am using typo9 with the bootstrap_package. Nothing appears on the page, not even an error, so I am lost.

In the site typoscipt I defined the following:

config.no_cache = 1 page.config.contentObjectExceptionHandler = 1 config.tx_mkforms { loadJsFramework = 1 mayLoadScriptaculous = 1 jsframework { jscore.tx_mkforms_jsbase > jscore = jquery jscore.tx_mkforms_jsbase = EXT:mkforms/Resources/Public/JavaScript/jquery/jquery-2.2.4.min.js jscore.tx_mkforms_base = EXT:mkforms/Resources/Public/JavaScript/prototype/addons/base/Base.js jscore.basewrapper = EXT:mkforms/Resources/Public/JavaScript/wrapper.js jscore.wrapper = EXT:mkforms/Resources/Public/JavaScript/jquery/wrapper.js }
}

in the mkform content I only defined the xml file to call. (I attached that one and also the form.html used as zip file) form.zip

any idea why I get into this problem??

In advance many thanks .

Anton Mezger

AntonMezger commented 1 year ago

I found the first problem: The include on the home template were missing by some reason. However now I get:

Leider ist ein Fehler aufgetreten.

with debugging I found out that the code in Handlerequest quits after $this->form->init.

hannesbochmann commented 1 year ago

Sorry, but it's hard for us to find time at the moment to look at your issue.

AntonMezger commented 1 year ago

Perhaps this will give some idea:

I traced until the function _renderlet(&$odRdt) in class.tx_ameosformidable. There it is impossible to debug print $oRdt->render(). However when I add in the beginning of this routine the following code, the application is beginning to work.

error_reporting(E_ERROR | E_WARNING | E_PARSE | E_NOTICE);

any ideas?

AntonMezger commented 1 year ago

so the code is now:

public function _renderElement(&$oRdt) { $current_error_reporting = error_reporting(); error_reporting(E_ERROR | E_WARNING | E_PARSE | E_NOTICE); if (!$oRdt->i18n_hideBecauseNotTranslated()) { $mHtml = $this->oRenderer->processHtmlBag( $oRdt->render(), $oRdt // changed: avoid call-time pass-by-reference ); error_reporting($current_error_reporting); return $mHtml; } error_reporting($current_error_reporting); return false; }