[TYPO3-seminars] Error with front end editing

Alex Schallhammer a.schallhammer at gmx.at
Mon Jan 2 17:11:47 CET 2017


Hi!

I am running Seminars 1.0.2 on Typo3 7.6.14 and it works great.
Now I ran into a problem when trying to set up front end editing of events:

The following error occurs every time I hit the "edit" link.

Would be happy if someone could point me a way...

Regards, Alex
---------------------------------------------------------------------------------------------------------
Uncaught TYPO3 Exception
Serialization of 'Closure' is not allowed 

Exception thrown in file
/kunden/164780_70794/rp-hosting/5024108/6024108/typo3cms/muster/typo3conf/ext/mkforms/util/class.tx_mkforms_util_Runnable.php in line 390.

24 serialize(Tx_Seminars_FrontEnd_EventEditor)

/kunden/164780_70794/rp-hosting/5024108/6024108/typo3cms/muster/typo3conf/ext/mkforms/util/class.tx_mkforms_util_Runnable.php:
00388:   while(list($sKey, ) = each($this->aCodeBehinds["php"])) {
00389:    unset($this->aCodeBehinds["php"][$sKey]["object"]->oForm);
00390:    $this->aCodeBehinds["php"][$sKey]["object"] = serialize($this->aCodeBehinds["php"][$sKey]["object"]);
00391:    unset($this->aCB[$sKey]);
00392:   }

23 tx_mkforms_util_Runnable::cleanBeforeSession()

/kunden/164780_70794/rp-hosting/5024108/6024108/typo3cms/muster/typo3conf/ext/mkforms/api/class.tx_ameosformidable.php:
04095:   }
04096: 
04097:   $this->getRunnable()->cleanBeforeSession();
04098: 
04099:   unset($this->oSandBox->oForm);

22 tx_ameosformidable::cleanBeforeSession()

/kunden/164780_70794/rp-hosting/5024108/6024108/typo3cms/muster/typo3conf/ext/mkforms/session/class.tx_mkforms_session_MixedSessionManager.php:
00076:   }
00077:   //aufräumen vor dem cachen der form
00078:   $form->cleanBeforeSession();
00079:   $formId = $this->getForm()->getFormId();
00080: 

21 tx_mkforms_session_MixedSessionManager::persistForm()

/kunden/164780_70794/rp-hosting/5024108/6024108/typo3cms/muster/typo3conf/ext/mkforms/api/class.tx_ameosformidable.php:
02549:   if ($this->bStoreFormInSession === TRUE && !$this->isTestMode()) {
02550:    $sesMgr = tx_mkforms_session_Factory::getSessionManager();
02551:    $sesMgr->persistForm();
02552:   } else {
02553:    $this->_clearFormInSession();

20 tx_ameosformidable::_render()

/kunden/164780_70794/rp-hosting/5024108/6024108/typo3cms/muster/typo3conf/ext/mkforms/api/class.tx_ameosformidable.php:
02151:   */
02152:  function render() {    // alias for _render
02153:   return $this->_render();
02154:  }
02155: 

19 tx_ameosformidable::render()

/kunden/164780_70794/rp-hosting/5024108/6024108/typo3cms/muster/typo3conf/ext/seminars/Classes/FrontEnd/Editor.php:
00127:     public function render()
00128:     {
00129:         return $this->getFormCreator()->render();
00130:     }
00131: 

18 Tx_Seminars_FrontEnd_Editor::render()

/kunden/164780_70794/rp-hosting/5024108/6024108/typo3cms/muster/typo3conf/ext/seminars/Classes/FrontEnd/EventEditor.php:
00133:         /** @var Tx_Oelib_Template $template */
00134:         $template = GeneralUtility::makeInstance(Tx_Oelib_Template::class);
00135:         $template->processTemplate(parent::render());
00136: 
00137:         $template->hideSubpartsArray(

17 Tx_Seminars_FrontEnd_EventEditor::render()

/kunden/164780_70794/rp-hosting/5024108/6024108/typo3cms/muster/typo3conf/ext/seminars/Classes/FrontEnd/DefaultController.php:
03056: 
03057:         if (($hasAccessMessage == '')) {
03058:             $result = $eventEditor->render();
03059:         } else {
03060:             $result = $hasAccessMessage;

16 Tx_Seminars_FrontEnd_DefaultController::createEventEditorHtml()

/kunden/164780_70794/rp-hosting/5024108/6024108/typo3cms/muster/typo3conf/ext/seminars/Classes/FrontEnd/DefaultController.php:
00281:                 break;
00282:             case 'edit_event':
00283:                 $result = $this->createEventEditorHtml();
00284:                 break;
00285:             case 'seminar_registration':

15 Tx_Seminars_FrontEnd_DefaultController::main("", array)
14 call_user_func_array(array, array)

/kunden/164780_70794/rp-hosting/5024108/6024108/typo3cms/typo3_src-7.6.11/typo3/sysext/frontend/Classes/ContentObject/ContentObjectRenderer.php:
07309:                         $content,
07310:                         $conf
07311:                     ]);
07312:                 } else {
07313:                     $this->getTimeTracker()->setTSlogMessage('Method "' . $parts[1] . '" did not exist in class "' . $parts[0] . '"', 3);

13 TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer::callUserFunction("Tx_Seminars_FrontEnd_DefaultController->main", array, "")

/kunden/164780_70794/rp-hosting/5024108/6024108/typo3cms/typo3_src-7.6.11/typo3/sysext/frontend/Classes/ContentObject/UserContentObject.php:
00038:         }
00039:         $this->cObj->includeLibs($conf);
00040:         $tempContent = $this->cObj->callUserFunction($conf['userFunc'], $conf, '');
00041:         if ($this->cObj->doConvertToUserIntObject) {
00042:             $this->cObj->doConvertToUserIntObject = false;

12 TYPO3\CMS\Frontend\ContentObject\UserContentObject::render(array)

/kunden/164780_70794/rp-hosting/5024108/6024108/typo3cms/typo3_src-7.6.11/typo3/sysext/frontend/Classes/ContentObject/ContentObjectRenderer.php:
00941:         // Render content
00942:         try {
00943:             $content .= $contentObject->render($configuration);
00944:         } catch (ContentRenderingException $exception) {
00945:             // Content rendering Exceptions indicate a critical problem which should not be

11 TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer::render(TYPO3\CMS\Frontend\ContentObject\UserContentObject, array)

/kunden/164780_70794/rp-hosting/5024108/6024108/typo3cms/typo3_src-7.6.11/typo3/sysext/frontend/Classes/ContentObject/ContentObjectRenderer.php:
00857:                     $contentObject = $this->getContentObject($name);
00858:                     if ($contentObject) {
00859:                         $content .= $this->render($contentObject, $conf);
00860:                     } else {
00861:                         // Call hook functions for extra processing

10 TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer::cObjGetSingle("USER", array)

/kunden/164780_70794/rp-hosting/5024108/6024108/typo3cms/typo3_src-7.6.11/typo3/sysext/frontend/Classes/Controller/TypoScriptFrontendController.php:
03571:                             break;
03572:                         case 'FUNC':
03573:                             $incContent = $INTiS_cObj->cObjGetSingle('USER', $INTiS_config[$INTiS_key]['conf']);
03574:                             break;
03575:                         case 'POSTUSERFUNC':

9 TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::INTincScript_process(array)

/kunden/164780_70794/rp-hosting/5024108/6024108/typo3cms/typo3_src-7.6.11/typo3/sysext/frontend/Classes/Controller/TypoScriptFrontendController.php:
03516:             $INTiS_config = $this->config['INTincScript'];
03517:             $this->INTincScript_includeLibs($INTiS_config);
03518:             $this->INTincScript_process($INTiS_config);
03519:             // Check if there were new items added to INTincScript during the previous execution:
03520:             $INTiS_config = array_diff_assoc($this->config['INTincScript'], $INTiS_config);

8 TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::recursivelyReplaceIntPlaceholdersInContent()

/kunden/164780_70794/rp-hosting/5024108/6024108/typo3cms/typo3_src-7.6.11/typo3/sysext/frontend/Classes/Controller/TypoScriptFrontendController.php:
03482:         }
03483: 
03484:         $this->recursivelyReplaceIntPlaceholdersInContent();
03485:         $this->getTimeTracker()->push('Substitute header section');
03486:         $this->INTincScript_loadJSCode();

7 TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController::INTincScript()

/kunden/164780_70794/rp-hosting/5024108/6024108/typo3cms/typo3_src-7.6.11/typo3/sysext/frontend/Classes/Http/RequestHandler.php:
00230:         if ($this->controller->isINTincScript()) {
00231:             $this->timeTracker->push('Non-cached objects', '');
00232:             $this->controller->INTincScript();
00233:             $this->timeTracker->pull();
00234:         }

6 TYPO3\CMS\Frontend\Http\RequestHandler::handleRequest(TYPO3\CMS\Core\Http\ServerRequest)

/kunden/164780_70794/rp-hosting/5024108/6024108/typo3cms/typo3_src-7.6.11/typo3/sysext/core/Classes/Core/Bootstrap.php:
00300: 
00301:         // Execute the command which returns a Response object or NULL
00302:         $this->response = $requestHandler->handleRequest($request);
00303:         return $this;
00304:     }

5 TYPO3\CMS\Core\Core\Bootstrap::handleRequest(TYPO3\CMS\Core\Http\ServerRequest)

/kunden/164780_70794/rp-hosting/5024108/6024108/typo3cms/typo3_src-7.6.11/typo3/sysext/frontend/Classes/Http/Application.php:
00076:     public function run(callable $execute = null)
00077:     {
00078:         $this->bootstrap->handleRequest(\TYPO3\CMS\Core\Http\ServerRequestFactory::fromGlobals());
00079: 
00080:         if ($execute !== null) {

4 TYPO3\CMS\Frontend\Http\Application::run()

/kunden/164780_70794/rp-hosting/5024108/6024108/typo3cms/typo3_src-7.6.11/index.php:
00031: call_user_func(function () {
00032:     $classLoader = require rtrim(realpath(__DIR__ . '/typo3'), '\\/') . '/../vendor/autoload.php';
00033:     (new \TYPO3\CMS\Frontend\Http\Application($classLoader))->run();
00034: });

3 {closure}()
2 call_user_func(Closure)

/kunden/164780_70794/rp-hosting/5024108/6024108/typo3cms/typo3_src-7.6.11/index.php:
00032:     $classLoader = require rtrim(realpath(__DIR__ . '/typo3'), '\\/') . '/../vendor/autoload.php';
00033:     (new \TYPO3\CMS\Frontend\Http\Application($classLoader))->run();
00034: });

1 require("/kunden/164780_70794/rp-hosting/5024108/6024108/typo3cms/typo3_src-7.6.11/index.php")

/kunden/164780_70794/rp-hosting/5024108/6024108/typo3cms/muster/index.php:
00020: 
00021: require 'opcache_reset.php';
00022: require 'typo3_src/index.php';


More information about the TYPO3-project-seminars mailing list