[Typo3-dev] Click menus in current CVS don't work with PHP4?
Michael Stucki
michael at typo3.org
Mon Feb 7 09:02:14 CET 2005
Hi Robert,
> I'm not sure if it's a problem in my local installation or some general
> thing: After updating to the current CVS version of TYPO3core, my click
> menus don't work anymore. Eg. when I click on a page icon in the page
> tree, nothing happens and finally the topbar reports a PHP error message
> with a script time out in one of the classes using the clickmenu.
>
> The weird thing is that if I switch to PHP5, everything is fine.
>
> Someone else observed that problem?
Ummm, can't reproduce that. But I made a little change in the isCMlayers()
function three days ago. However I can't find anything wrong inside, plus it
works fine on my Sarge installation (PHP 4.3.10):
--- cut ---
--- typo3/template.php.old 2005-02-07 08:54:36.000000000 +0100
+++ typo3/template.php 2005-02-07 08:54:40.000000000 +0100
@@ -346,7 +346,7 @@
* @return boolean
*/
function isCMlayers() {
- return !$GLOBALS['BE_USER']->uc['disableCMlayers'] && $GLOBALS['CLIENT']['FORMSTYLE'] && $GLOBALS['CLIENT']['SYSTEM']!='mac';
+ return !$GLOBALS['BE_USER']->uc['disableCMlayers'] && $GLOBALS['CLIENT']['FORMSTYLE'] && !($GLOBALS['CLIENT']['SYSTEM']=='mac' && $GLOBALS['CLIENT']['BROWSER']=='Opera');
}
/**
--- cut ---
(Return true unless you're sitting in front of a Mac and run Opera - since
we still can't assure that the clickmenu works fine there!)
Can you please check if the file can be parsed directly by executing this:
php4 -q typo3/template.php
There should be no parse errors but a regular message that the file cannot
be included or so...
Kind regards
- michael
--
Want support? Please read the list rules first: http://typo3.org/1438.0.html
More information about the TYPO3-dev
mailing list