php - Explode error in TYPO3 7.6 with compatibility6 -


i've got errors after update typo3 6.2 typo3 7.6 compatibility6 mode enabled.

in backend, when need edit page or article, content not charged in textareas , i've got warning

php warning core: error handler (be): php warning: explode() expects parameter 2 string, array given in /home/typo3/typo3_src-7.6.16/typo3/sysext/core/classes/utility/generalutility.php line 1556 

to try debug it, put test in trimexplode function of typo3 this:

if(is_array($string)){     $e = new \exception();     $error_string = $e->gettraceasstring();     $f = fopen('/var/www/html/custom.log', 'a+');     fputs($f, php_eol . "new line" . php_eol);     fputs($f, php_eol . $error_string . php_eol);     fputs($f, php_eol . print_r($string) . php_eol);     fclose($f); } 

but stacktrace not enough clear me understand what's wrong. array empty , so, think problem not array, in compatibility6. know what's problem compatibility6? here's stacktrace

new line #0 /home/typo3/typo3_src-7.6.16/typo3/sysext/backend/classes/form/formdataprovider/abstractitemprovider.php(1142): typo3\cms\core\utility\generalutility::trimexplode(',', array, true) #1 /home/typo3/typo3_src-7.6.16/typo3/sysext/backend/classes/form/formdataprovider/tcaselectitems.php(75): typo3\cms\backend\form\formdataprovider\abstractitemprovider->processdatabasefieldvalue(array, 'field_auto_head...') #2 /home/typo3/typo3_src-7.6.16/typo3/sysext/backend/classes/form/formdatagroup/flexformsegment.php(51): typo3\cms\backend\form\formdataprovider\tcaselectitems->adddata(array) #3 /home/typo3/typo3_src-7.6.16/typo3/sysext/backend/classes/form/formdatacompiler.php(99): typo3\cms\backend\form\formdatagroup\flexformsegment->compile(array) #4 /var/www/html/typo3conf/ext/compatibility6/classes/form/formdataprovider/tcaflexprocess.php(549): typo3\cms\backend\form\formdatacompiler->compile(array) #5 /var/www/html/typo3conf/ext/compatibility6/classes/form/formdataprovider/tcaflexprocess.php(54): typo3\cms\compatibility6\form\formdataprovider\tcaflexprocess->modifydatastructureanddatavaluesbyflexformsegmentgroup(array, 'tx_templavoila_...', array) #6 /home/typo3/typo3_src-7.6.16/typo3/sysext/backend/classes/form/formdatagroup/tcadatabaserecord.php(51): typo3\cms\compatibility6\form\formdataprovider\tcaflexprocess->adddata(array) #7 /home/typo3/typo3_src-7.6.16/typo3/sysext/backend/classes/form/formdatacompiler.php(99): typo3\cms\backend\form\formdatagroup\tcadatabaserecord->compile(array) #8 /home/typo3/typo3_src-7.6.16/typo3/sysext/backend/classes/controller/editdocumentcontroller.php(1118): typo3\cms\backend\form\formdatacompiler->compile(array) #9 /home/typo3/typo3_src-7.6.16/typo3/sysext/backend/classes/controller/editdocumentcontroller.php(1009): typo3\cms\backend\controller\editdocumentcontroller->makeeditform() #10 /home/typo3/typo3_src-7.6.16/typo3/sysext/backend/classes/controller/editdocumentcontroller.php(2043): typo3\cms\backend\controller\editdocumentcontroller->main() #11 [internal function]: typo3\cms\backend\controller\editdocumentcontroller->mainaction(object(typo3\cms\core\http\serverrequest), object(typo3\cms\core\http\response)) #12 /home/typo3/typo3_src-7.6.16/typo3/sysext/backend/classes/http/routedispatcher.php(54): call_user_func_array(array, array) #13 /home/typo3/typo3_src-7.6.16/typo3/sysext/backend/classes/http/requesthandler.php(168): typo3\cms\backend\http\routedispatcher->dispatch(object(typo3\cms\core\http\serverrequest), object(typo3\cms\core\http\response)) #14 /home/typo3/typo3_src-7.6.16/typo3/sysext/backend/classes/http/requesthandler.php(95): typo3\cms\backend\http\requesthandler->dispatch(object(typo3\cms\core\http\serverrequest)) #15 /home/typo3/typo3_src-7.6.16/typo3/sysext/core/classes/core/bootstrap.php(302): typo3\cms\backend\http\requesthandler->handlerequest(object(typo3\cms\core\http\serverrequest)) #16 /home/typo3/typo3_src-7.6.16/typo3/sysext/backend/classes/http/application.php(94): typo3\cms\core\core\bootstrap->handlerequest(object(typo3\cms\core\http\serverrequest)) #17 /home/typo3/typo3_src-7.6.16/typo3/index.php(20): typo3\cms\backend\http\application->run() #18 [internal function]: {closure}() #19 /home/typo3/typo3_src-7.6.16/typo3/index.php(21): call_user_func(object(closure)) #20 {main}  1  new line  #0 /home/typo3/typo3_src-7.6.16/typo3/sysext/backend/classes/form/formdataprovider/abstractitemprovider.php(1142): typo3\cms\core\utility\generalutility::trimexplode(',', array, true) #1 /home/typo3/typo3_src-7.6.16/typo3/sysext/backend/classes/form/formdataprovider/tcaselectitems.php(75): typo3\cms\backend\form\formdataprovider\abstractitemprovider->processdatabasefieldvalue(array, 'field_feature_b...') #2 /home/typo3/typo3_src-7.6.16/typo3/sysext/backend/classes/form/formdatagroup/flexformsegment.php(51): typo3\cms\backend\form\formdataprovider\tcaselectitems->adddata(array) #3 /home/typo3/typo3_src-7.6.16/typo3/sysext/backend/classes/form/formdatacompiler.php(99): typo3\cms\backend\form\formdatagroup\flexformsegment->compile(array) #4 /var/www/html/typo3conf/ext/compatibility6/classes/form/formdataprovider/tcaflexprocess.php(549): typo3\cms\backend\form\formdatacompiler->compile(array) #5 /var/www/html/typo3conf/ext/compatibility6/classes/form/formdataprovider/tcaflexprocess.php(54): typo3\cms\compatibility6\form\formdataprovider\tcaflexprocess->modifydatastructureanddatavaluesbyflexformsegmentgroup(array, 'tx_templavoila_...', array) #6 /home/typo3/typo3_src-7.6.16/typo3/sysext/backend/classes/form/formdatagroup/tcadatabaserecord.php(51): typo3\cms\compatibility6\form\formdataprovider\tcaflexprocess->adddata(array) #7 /home/typo3/typo3_src-7.6.16/typo3/sysext/backend/classes/form/formdatacompiler.php(99): typo3\cms\backend\form\formdatagroup\tcadatabaserecord->compile(array) #8 /home/typo3/typo3_src-7.6.16/typo3/sysext/backend/classes/controller/editdocumentcontroller.php(1118): typo3\cms\backend\form\formdatacompiler->compile(array) #9 /home/typo3/typo3_src-7.6.16/typo3/sysext/backend/classes/controller/editdocumentcontroller.php(1009): typo3\cms\backend\controller\editdocumentcontroller->makeeditform() #10 /home/typo3/typo3_src-7.6.16/typo3/sysext/backend/classes/controller/editdocumentcontroller.php(2043): typo3\cms\backend\controller\editdocumentcontroller->main() #11 [internal function]: typo3\cms\backend\controller\editdocumentcontroller->mainaction(object(typo3\cms\core\http\serverrequest), object(typo3\cms\core\http\response)) #12 /home/typo3/typo3_src-7.6.16/typo3/sysext/backend/classes/http/routedispatcher.php(54): call_user_func_array(array, array) #13 /home/typo3/typo3_src-7.6.16/typo3/sysext/backend/classes/http/requesthandler.php(168): typo3\cms\backend\http\routedispatcher->dispatch(object(typo3\cms\core\http\serverrequest), object(typo3\cms\core\http\response)) #14 /home/typo3/typo3_src-7.6.16/typo3/sysext/backend/classes/http/requesthandler.php(95): typo3\cms\backend\http\requesthandler->dispatch(object(typo3\cms\core\http\serverrequest)) #15 /home/typo3/typo3_src-7.6.16/typo3/sysext/core/classes/core/bootstrap.php(302): typo3\cms\backend\http\requesthandler->handlerequest(object(typo3\cms\core\http\serverrequest)) #16 /home/typo3/typo3_src-7.6.16/typo3/sysext/backend/classes/http/application.php(94): typo3\cms\core\core\bootstrap->handlerequest(object(typo3\cms\core\http\serverrequest)) #17 /home/typo3/typo3_src-7.6.16/typo3/index.php(20): typo3\cms\backend\http\application->run() #18 [internal function]: {closure}() #19 /home/typo3/typo3_src-7.6.16/typo3/index.php(21): call_user_func(object(closure)) #20 {main}  1  new line  #0 /home/typo3/typo3_src-7.6.16/typo3/sysext/backend/classes/form/formdataprovider/abstractitemprovider.php(1142): typo3\cms\core\utility\generalutility::trimexplode(',', array, true) #1 /home/typo3/typo3_src-7.6.16/typo3/sysext/backend/classes/form/formdataprovider/tcaselectitems.php(75): typo3\cms\backend\form\formdataprovider\abstractitemprovider->processdatabasefieldvalue(array, 'recursive') #2 /home/typo3/typo3_src-7.6.16/typo3/sysext/backend/classes/form/formdatagroup/flexformsegment.php(51): typo3\cms\backend\form\formdataprovider\tcaselectitems->adddata(array) #3 /home/typo3/typo3_src-7.6.16/typo3/sysext/backend/classes/form/formdatacompiler.php(99): typo3\cms\backend\form\formdatagroup\flexformsegment->compile(array) #4 /var/www/html/typo3conf/ext/compatibility6/classes/form/formdataprovider/tcaflexprocess.php(549): typo3\cms\backend\form\formdatacompiler->compile(array) #5 /var/www/html/typo3conf/ext/compatibility6/classes/form/formdataprovider/tcaflexprocess.php(54): typo3\cms\compatibility6\form\formdataprovider\tcaflexprocess->modifydatastructureanddatavaluesbyflexformsegmentgroup(array, 'pi_flexform', array) #6 /home/typo3/typo3_src-7.6.16/typo3/sysext/backend/classes/form/formdatagroup/tcadatabaserecord.php(51): typo3\cms\compatibility6\form\formdataprovider\tcaflexprocess->adddata(array) #7 /home/typo3/typo3_src-7.6.16/typo3/sysext/backend/classes/form/formdatacompiler.php(99): typo3\cms\backend\form\formdatagroup\tcadatabaserecord->compile(array) #8 /home/typo3/typo3_src-7.6.16/typo3/sysext/backend/classes/controller/editdocumentcontroller.php(1118): typo3\cms\backend\form\formdatacompiler->compile(array) #9 /home/typo3/typo3_src-7.6.16/typo3/sysext/backend/classes/controller/editdocumentcontroller.php(1009): typo3\cms\backend\controller\editdocumentcontroller->makeeditform() #10 /home/typo3/typo3_src-7.6.16/typo3/sysext/backend/classes/controller/editdocumentcontroller.php(2043): typo3\cms\backend\controller\editdocumentcontroller->main() #11 [internal function]: typo3\cms\backend\controller\editdocumentcontroller->mainaction(object(typo3\cms\core\http\serverrequest), object(typo3\cms\core\http\response)) #12 /home/typo3/typo3_src-7.6.16/typo3/sysext/backend/classes/http/routedispatcher.php(54): call_user_func_array(array, array) #13 /home/typo3/typo3_src-7.6.16/typo3/sysext/backend/classes/http/requesthandler.php(168): typo3\cms\backend\http\routedispatcher->dispatch(object(typo3\cms\core\http\serverrequest), object(typo3\cms\core\http\response)) #14 /home/typo3/typo3_src-7.6.16/typo3/sysext/backend/classes/http/requesthandler.php(95): typo3\cms\backend\http\requesthandler->dispatch(object(typo3\cms\core\http\serverrequest)) #15 /home/typo3/typo3_src-7.6.16/typo3/sysext/core/classes/core/bootstrap.php(302): typo3\cms\backend\http\requesthandler->handlerequest(object(typo3\cms\core\http\serverrequest)) #16 /home/typo3/typo3_src-7.6.16/typo3/sysext/backend/classes/http/application.php(94): typo3\cms\core\core\bootstrap->handlerequest(object(typo3\cms\core\http\serverrequest)) #17 /home/typo3/typo3_src-7.6.16/typo3/index.php(20): typo3\cms\backend\http\application->run() #18 [internal function]: {closure}() #19 /home/typo3/typo3_src-7.6.16/typo3/index.php(21): call_user_func(object(closure)) #20 {main}  1  new line  #0 /home/typo3/typo3_src-7.6.16/typo3/sysext/backend/classes/form/formdataprovider/abstractitemprovider.php(1142): typo3\cms\core\utility\generalutility::trimexplode(',', array, true) #1 /home/typo3/typo3_src-7.6.16/typo3/sysext/backend/classes/form/formdataprovider/tcaselectitems.php(75): typo3\cms\backend\form\formdataprovider\abstractitemprovider->processdatabasefieldvalue(array, 'template') #2 /home/typo3/typo3_src-7.6.16/typo3/sysext/backend/classes/form/formdatagroup/flexformsegment.php(51): typo3\cms\backend\form\formdataprovider\tcaselectitems->adddata(array) #3 /home/typo3/typo3_src-7.6.16/typo3/sysext/backend/classes/form/formdatacompiler.php(99): typo3\cms\backend\form\formdatagroup\flexformsegment->compile(array) #4 /var/www/html/typo3conf/ext/compatibility6/classes/form/formdataprovider/tcaflexprocess.php(549): typo3\cms\backend\form\formdatacompiler->compile(array) #5 /var/www/html/typo3conf/ext/compatibility6/classes/form/formdataprovider/tcaflexprocess.php(54): typo3\cms\compatibility6\form\formdataprovider\tcaflexprocess->modifydatastructureanddatavaluesbyflexformsegmentgroup(array, 'pi_flexform', array) #6 /home/typo3/typo3_src-7.6.16/typo3/sysext/backend/classes/form/formdatagroup/tcadatabaserecord.php(51): typo3\cms\compatibility6\form\formdataprovider\tcaflexprocess->adddata(array) #7 /home/typo3/typo3_src-7.6.16/typo3/sysext/backend/classes/form/formdatacompiler.php(99): typo3\cms\backend\form\formdatagroup\tcadatabaserecord->compile(array) #8 /home/typo3/typo3_src-7.6.16/typo3/sysext/backend/classes/controller/editdocumentcontroller.php(1118): typo3\cms\backend\form\formdatacompiler->compile(array) #9 /home/typo3/typo3_src-7.6.16/typo3/sysext/backend/classes/controller/editdocumentcontroller.php(1009): typo3\cms\backend\controller\editdocumentcontroller->makeeditform() #10 /home/typo3/typo3_src-7.6.16/typo3/sysext/backend/classes/controller/editdocumentcontroller.php(2043): typo3\cms\backend\controller\editdocumentcontroller->main() #11 [internal function]: typo3\cms\backend\controller\editdocumentcontroller->mainaction(object(typo3\cms\core\http\serverrequest), object(typo3\cms\core\http\response)) #12 /home/typo3/typo3_src-7.6.16/typo3/sysext/backend/classes/http/routedispatcher.php(54): call_user_func_array(array, array) #13 /home/typo3/typo3_src-7.6.16/typo3/sysext/backend/classes/http/requesthandler.php(168): typo3\cms\backend\http\routedispatcher->dispatch(object(typo3\cms\core\http\serverrequest), object(typo3\cms\core\http\response)) #14 /home/typo3/typo3_src-7.6.16/typo3/sysext/backend/classes/http/requesthandler.php(95): typo3\cms\backend\http\requesthandler->dispatch(object(typo3\cms\core\http\serverrequest)) #15 /home/typo3/typo3_src-7.6.16/typo3/sysext/core/classes/core/bootstrap.php(302): typo3\cms\backend\http\requesthandler->handlerequest(object(typo3\cms\core\http\serverrequest)) #16 /home/typo3/typo3_src-7.6.16/typo3/sysext/backend/classes/http/application.php(94): typo3\cms\core\core\bootstrap->handlerequest(object(typo3\cms\core\http\serverrequest)) #17 /home/typo3/typo3_src-7.6.16/typo3/index.php(20): typo3\cms\backend\http\application->run() #18 [internal function]: {closure}() #19 /home/typo3/typo3_src-7.6.16/typo3/index.php(21): call_user_func(object(closure)) #20 {main}  1 

thank response or help.

you have upgrade typo3 6.2 typo3 7.6.x. in typo3 7.6 major changes in typo3 defult tables , tables fileds. so, if don't follow install tools upgrade wizard steps , compare database specification. first follow steps.


Comments

Popular posts from this blog

javascript - Clear button on addentry page doesn't work -

c# - Selenium Authentication Popup preventing driver close or quit -

tensorflow when input_data MNIST_data , zlib.error: Error -3 while decompressing: invalid block type -