Skip to content
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

Documentation #153

Open
AntonMezger opened this issue Dec 2, 2022 · 4 comments
Open

Documentation #153

AntonMezger opened this issue Dec 2, 2022 · 4 comments

Comments

@AntonMezger
Copy link

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
Copy link
Author

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
Copy link
Member

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

@AntonMezger
Copy link
Author

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
Copy link
Author

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;
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants