Project

General

Profile

Actions

Bug #15951

closed

clickmenu on pagetree icons does not work

Added by Ernst Went about 18 years ago. Updated over 13 years ago.

Status:
Closed
Priority:
Should have
Category:
-
Target version:
-
Start date:
2006-03-30
Due date:
% Done:

0%

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

Description

IE: click on pagetree icon produces following js-error:
'null' is Null or no object

Firefox: clickmenu does not show either, no error is generated.

Drag-and-drop of does not work either.

(issue imported from #M3071)


Related issues 2 (0 open2 closed)

Related to TYPO3 Core - Bug #15657: left-click in filelist is broken (IE6)ClosedBenni Mack2006-02-17

Actions
Related to TYPO3 Core - Bug #19700: gzip compression does not work in BEClosedDmitry Dulepov2008-12-15

Actions
Actions #1

Updated by Franz Holzinger about 18 years ago

Which versions of IE, Firefox and Windows/LINUX did you test?
Did you update the version in the install tool Update Wizard?
Apply the source ocde of the generated HTML of the page tree as a file.

Actions #2

Updated by Ernst Went about 18 years ago

Yes, typo3 is running in compatibility mode. IE 6.0 and FF 1.5 is used.
After further research, it turned out, that on another server there were no problems. The faulty server is running on Redhat Linux, PHP Version 4.4.1, Apache/2.0.52 (Unix) DAV/2 PHP/4.4.1 SVN/1.3.0

And Firefox does generate an error (it just wasn't shown at the top right icon):
Error: xml declaration not at start of external entity
Source File: http://alpha.zellwerk.com/ngk/pro/typo3/alt_clickmenu.php?table=pages&uid=54&listFr=0&enDisItems=&backPath=|0d8fab3aae&addParams=&bank=0&ajax=1
Line: 2, Column: 1
Source Code:
^

Apparently there is a line feed inserted before echoing the -tag (Line: 2!!). But according to the code of the function outputXMLreply (class.t3lib_ajax.php) this cannot happen. Confusing.

Actions #3

Updated by Franz Holzinger about 18 years ago

Maybe a space characted is needed here before the second question mark?

--------------------------------------------
function outputXMLreply($innerXML) {
// AJAX needs some XML data
header('Content-Type: text/xml');
$xml = '
<t3ajax>'.$innerXML.'</t3ajax>';
echo $xml;
}

Actions #4

Updated by Ernst Went about 18 years ago

Problem solved. There was a user extension, where ext_tables.php had a blank line after the php-code tag "?>".
Very sorry.
Interestingly the same extension didn't throw an error in ver 3.81.

Actions #5

Updated by Joen Weidemann almost 18 years ago

Here is what I see using winxp:
-- IE6.0.2900.2180.sp2--
No left-click or right-click menu in icons in right hand pane.
Get this javascript error: Line:143. Char:6. Errir:'null' is null or not an object. Code:0.
FF1.5.0.3
Works fine

Actions #6

Updated by philippe Fronzes almost 18 years ago

I had this problem with typo3 4.0 running on IIS6 Webserver, but not on Apache.
I resolve it by adding the charset in the header send by the function outputXMLReply (see below).
This is a workaround for my special case, but i hope it could help for others, and for a complete resolution of the problem.

function outputXMLreply($innerXML) {
// AJAX needs some XML data
header('Content-Type: text/xml; charset=iso-8859-1');
$xml = '
<t3ajax>'.$innerXML.'</t3ajax>';
echo $xml;
}

Actions #7

Updated by Rafael Freuler over 17 years ago

I had the same problem. It turns out that my problem were a couple of empty lines in localconf.php after the closing ?>

Actions #8

Updated by Oliver Hader about 17 years ago

This issue should be solved in TYPO3 4.1 on using the new AJAX pagetree.

Actions #9

Updated by Steffen Kamper about 17 years ago

wrong status ?
I don't see the problems in 4.1 RC1

Actions #10

Updated by Benni Mack about 17 years ago

Is this closed for the 4.1RC2?

Actions #11

Updated by Martin Kutschker about 17 years ago

Still an issue in 4.1 final?

Actions #12

Updated by Martin Mayrhofer about 17 years ago

The Problem are blank lines behind extensions php files. In my case the problem was in the templavoila file "class.tx_templavoila_handlestaticdatastructures.php" After cleaning this line all was working fine.

The same file works on a Linux server with no problem, on my Winows testsystem I have the problem.

The best way to find the File on a Windows System is to install the filemon program and scan for php files while klicking the button on the icon. The file which is called before \typo3\t3lib\class.t3lib_ajax.php should have the problem

Actions #13

Updated by Steffen Kamper about 17 years ago

i confirm this behavior on a windows installation, using the latest svn-version. i have no contextmenu in Pagetree. There is no JS-Error shown.
I searched for files with trailing lines, but didn't found, also filemon didn't helped here.
Is there any tool for finding php-Files with trimming lines? Is this a php-Bug? I don't understand this, cause there are also Files mixed with html and php-tags that doesn't produce errors.
still searching ...

Actions #14

Updated by daniel pugh almost 17 years ago

i have this problem as well. i am running latest version (4.1) - context menu not working on ie7 (vista) or firefox

Actions #15

Updated by Benni Mack over 16 years ago

I got a couple of more questions about this:
  • Does this issue happen only if the german translation is used in the BE or with every BE language?
  • Does this happen with every windows installation or only when IIS is used as webserver?

Couldn't reproduce it with XAMPP with a german BE translation with WIndows XP. Everything was working fine there.

Actions #16

Updated by Benjamin Bergmann over 16 years ago

I still have the problem on a typo3 4.1.2 installation on a linux server w/ apache. client is firefox 2.0.0.6 on win xp. i have tested this also on ie6/7, same problem.
all the tricks above did not work! i have checked every php-file of every extension i have installed and could not find any whitespace after ?>. modifying the outputXMLreply-method adding space-character and charset did not work either.

Actions #17

Updated by Jason Lefkowitz over 16 years ago

I am experiencing the same problem in Firefox 2.0.0.9 after upgrading TYPO3 from 4.0.6 to 4.1.3. We're running on Red Hat Enterprise Linux with MySQL 5 and PHP5.

The Firebug extension traps the following Javascript error when I click on a page icon to bring up the menu:

t3ajax has no properties
http://&lt;mysite&gt;/typo3/alt_db_navframe.php??currentSubScript=ext%2Ftemplavoila%2Fmod1%2Findex.php
Line 116

Actions #18

Updated by Jason Lefkowitz over 16 years ago

Just confirmed that it doesn't work for me in IE7 either. Here's the error:

Line: 116
Char: 6
Error: 'null' is null or not an object
Code: 0

Actions #19

Updated by Benni Mack over 16 years ago

I am about to have look at this again with the next alpha of 4.2 where major improvements to the Clickmenu were made.

Please wait until wednesday and report back if the problem still exists.

Actions #20

Updated by Jason Lefkowitz over 16 years ago

Were you able to confirm the issue Benjamin? Should I be downloading one of the 4.2 alpha copies or something? Let me know...

Actions #21

Updated by Omar Dahan over 16 years ago

Click Menu popup is not working in [typo3 4.1.4], on IE7 and on Firefox, have tried all solutions mentionned, but it was something else...

Using FireBug on Firefox to check JS log, I got this message:
Error: mismatched tag. Expected: </clickmenu>.
Source File: http://www.engineervision.com/typo3/alt_clickmenu.php?table=pages&uid=1&listFr=0&enDisItems=&backPath=|c57686978c&addParams=&amp;bank=0&ajax=1
Line: 66, Column: 3
Source Code:
</noscript>--^

I have resolve it by simply adding an opening corresponding tag, as the closing tag is not generated by code, and it works perfectly!

Add <noscript> between <clickmenu> and <htmltable> inside the "alt_clickmenu.php" line 1204 as follows:

$innerXML = '<data><clickmenu><noscript><htmltable><![CDATA['.$CMtable.']]></htmltable><cmlevel>'.$this->cmLevel.'</cmlevel></clickmenu></data>';

My websites (using TYPO) are:
http://www.dahan.ws/
http://www.engineervision.com/

welcome for any further information,
Thanks for TYPO!

Actions #22

Updated by Benni Mack about 16 years ago

Hey, can you try this with TYPO3 4.2beta1 again?

Actions #23

Updated by Christoph Koehler about 16 years ago

I have the same problem in Opera and FF, and it only happens if I set extCache=0 in the install tool.

Actions #24

Updated by Christoph Koehler about 16 years ago

It was an extension's ext_tables.php file, it had blank lines on the top before the opening php tags.
I wonder if whitespace like that can be trimmed away automatically.

Actions #25

Updated by Patrick Fitz-Simons about 16 years ago

I can confirm failure of pagetree clickmenu and filelist clickmenu
observed in both IE 6x and Firefox 2x

fresh install of TYPO3 4.2 RC 1
no extensions- added
SERVER: SERVER_SOFTW: Apache/2.2.8 (Unix) mod_ssl/2.2.8 OpenSSL/0.9.8g DAV/2 mod_auth_passthrough/2.1 mod_bwlimited/1.4
CONST: php_sapi_name: cgi-fcgi
OTHER: PHP_VERSION : 5.2.5

-------firebug report:------
top.loadTopMenu is not a function
callURL("table=pages&uid=3&listFr=0&enDisItems=&backPath=|06498ca5b4&addParams=&bank=0")clickmenu.js (line 74)
show("pages", "3", "0", "", "|06498ca5b4", "&bank=0")clickmenu.js (line 47)
showClickmenu("pages", "3", "0", "", "|06498ca5b4", "&bank=0")clickmenu.js (line 218)
onclick(click clientX=0, clientY=0)alt_db_navframe.p... (line 1)
[Break on this error] top.loadTopMenu(this.clickURL + '?' + params);

Actions #26

Updated by Patrick Fitz-Simons about 16 years ago

I reconfirm this issue- in 4.2.0 - seems to be related to setting user settings to start up in page module-
if user tools->user settings->startup-> "Start up in the following module" is set to anything other than " " (blank) the clickmenu fails to pop
--illustrated with two discreet admin user accounts
first one is set as default.. (clickmenu works)
the second set to startup in the page module (js error- reported above)
-- second observation
Once startup page options are changed - altering the startup module results in option stuck -- perpetually set to "about" module- (=js error continues)
I had to click "reset to default values" to return clickmenu function

Actions #27

Updated by Jason Lefkowitz almost 16 years ago

Has there been any progress on this issue? It's marked "feedback" but I don't see any patches and I'm still getting this in 4.2.0, using both IE and Firefox...

Actions #28

Updated by Steffen Kamper almost 16 years ago

why patch? This is a php-problem.

I confirm that it happens with some ftp-transfer, when i download files from linux server. The files are written with "double lines", so there are some extra lines before or after php-tag.

This cause error in TYPO3 as no header can be sended, this also produces errors in ajax.

I don't see any solution in TYPO3. Maybe there is an external program which can look to all php-files of a directory and remove those empty lines.

Actions #29

Updated by wazzzup almost 16 years ago

I had the same problem with my Typo3 installation.

I could solve the problem by uninstalling an extension. The extension overwrites the right-click menu.

greets wazzzup

Actions #30

Updated by Benni Mack almost 16 years ago

Hey wazzzup. What extension was it?

Actions #31

Updated by wazzzup almost 16 years ago

It was a selfmade extension created with kickstarter.
I didn't want to overwrite the right-click-menu but it automaticaly does.

After i have removed the content-menu code from the extension it worked.

So i guess that some people could have problems also because of an extension.

greets wazzzup

Actions #32

Updated by marianne topping over 15 years ago

Same problem - solved with removing 2 empty lines after ?> in realurl_conf.php

Actions #33

Updated by Andrew Henson over 15 years ago

I just wanted to confirm Marianne's note on solving the problem. I had the same issue with the clickmenu not appearing on a site which uses realurl and the realurl_conf.php file had some blank lines after the closing php tag. Removing those made the menu's work again.

This definitely applies to TYPO3 4.2.2 and 4.2.3

Actions #34

Updated by Dmitry Dulepov over 15 years ago

This issue will be automatically fixed when #19700 is fixed.

Actions #35

Updated by Steffen Kamper over 15 years ago

Dmitry - how does the gzip patch solve issue of extra lines in php-files?

Actions #36

Updated by Dmitry Dulepov over 15 years ago

See #19700

Actions

Also available in: Atom PDF