Bug #25544
closedt3editor codecompletion: sometimes the ajax-call fails due missing file t3lib_pageselect.php (which does not exists)
0%
Description
some times the ajax call (loadTemplates) returns a warning (see attached screenshot)
when t3lib_div::makeInstance('pageSelect') is called the required file "class.t3lib_pagesselect.php" does not exists. This is becaus the class "pageSelect" is placed in "class.t3lib_page.php" (which is against naming convention to be honest)
Problem can be solved by including/requiring the file 'class.t3lib_page.php' in
typo3/sysext/t3editor/lib/ts_codecompletion/class.tx_t3editor_codecompletion.php
thanks to Stephan Petzel and Steffen Kamper for reporting
(issue imported from #M9789)
Updated by Administrator Admin about 16 years ago
attached patch should solve the problem
Updated by Steffen Kamper about 16 years ago
Hi Tobias,
indeed it solves part 1 from screenshot (the missing t3lib_pageselect)
But the other error still stays
<br />
<b>Warning</b>: domdocument::domdocument() expects parameter 2 to be long, string given in <b>C:\xampp
\htdocs\t3\home\typo3\sysext\t3editor\lib\ts_codecompletion\class.tx_t3editor_tsrefloader.php</b> on
line <b>85</b><br />
<br />
<b>Fatal error</b>: Call to undefined method domdocument::load() in <b>C:\xampp\htdocs\t3\home\typo3
\sysext\t3editor\lib\ts_codecompletion\class.tx_t3editor_tsrefloader.php</b> on line <b>86</b><br />
which leeds to an empty array for tx_t3editor::getPlugins
vg Steffen
Updated by Oliver Hader about 16 years ago
The warning/error on DomDocument happens when the native DOM handler gets overridden by DOM XML, see here:
http://de.php.net/manual/en/domdocument.construct.php#84476
Updated by Michael Stucki almost 11 years ago
- Project changed from 75 to TYPO3 Core
- Target version deleted (
0)