Project

General

Profile

Actions

Bug #25544

closed

t3editor codecompletion: sometimes the ajax-call fails due missing file t3lib_pageselect.php (which does not exists)

Added by Administrator Admin over 15 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Should have
Assignee:
Administrator Admin
Category:
t3editor
Target version:
-
Start date:
2008-11-13
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

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)


Related issues 1 (0 open1 closed)

Has duplicate TYPO3 Core - Bug #25540: JS error: Node cannot be used in a document other than the one in which it was createdClosed2008-10-25

Actions
Actions #1

Updated by Administrator Admin over 15 years ago

attached patch should solve the problem

Actions #2

Updated by Steffen Kamper over 15 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 &lt;b&gt;85&lt;/b&gt;&lt;br /&gt;

<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

Actions #3

Updated by Oliver Hader over 15 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

Actions #4

Updated by Administrator Admin about 15 years ago

already fixed in revision 5182

Actions #5

Updated by Michael Stucki over 10 years ago

  • Project changed from 75 to TYPO3 Core
  • Target version deleted (0)
Actions #6

Updated by Michael Stucki over 10 years ago

  • Category set to t3editor
Actions #7

Updated by Benni Mack over 5 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF