Schnellzugriff » 
Home 
« wget untar on the fly PHP: making a file executable »

TYPO3 4.5, t3mootools and JSMin

If you are trying to open the backend module of t3mootools 1.3.0 in a TYPO3 4.5 installation you’ll probably notice that besides a PHP error (PHP Fatal error: Cannot redeclare class JSMinException in typo3_src-4.5.0/typo3/contrib/jsmin/jsmin.php on line 297) nothing is going to happen. This is happening because t3mootools includes (and uses) a copy of JSMin which is now also integrated in the TYPO3 core.

Fixing this issue is pretty easy:
1. open typo3conf/ext/t3mootools/mod1/index.php in your favorite text editor
2. look for

require_once('jsmin2.php');

3. replace it with

$coreJSMinPath = PATH_typo3 . '/contrib/jsmin/jsmin.php';
if(file_exists($coreJSMinPath)) {
        require_once($coreJSMinPath);
} else {
        require_once('jsmin2.php');
}

Of course XClassing the file would be a better solution but as we can expect a fix with the next version of t3mootools, I think this is an acceptable solution.

Freitag, Februar 11th, 2011 and is filed under Uncategorized. You can follow any responses to this entry through the RSS 2.0 feed. Both comments and pings are currently closed.

11 Responses to “TYPO3 4.5, t3mootools and JSMin”

  1. Daniel (2 comments) Says:
    Februar 17th, 2011 at 18:47

    Thx. perfect. It works in my T3 4.5 :)

  2. Mario (1 comments) Says:
    Februar 19th, 2011 at 12:16

    Thx a lot – works great!!

  3. EXtension T3Mootools unter der TYPO3-Version 4.5.2 erzeugt PHP-Fehler « EXlog Says:
    März 18th, 2011 at 14:58

    [...] Ist zwar nicht schön so im Code von EXtensions herumzuwerkeln, aber lasst uns einfach mal hoffen, dass dies bei der nächsten T3Mootools-Version behoben sein wird ;) Gefunden bei: nerdcenter.de [...]

  4. Patty (1 comments) Says:
    März 29th, 2011 at 11:57

    Danke, es läuft in T3 4.52 :D

  5. Tomcat (1 comments) Says:
    März 31st, 2011 at 00:18

    Danke, wenn man für jeden Haken im T3 so schnell auf ne praktikable Lösung treffen würde … ;-)

  6. heiko (1 comments) Says:
    April 15th, 2011 at 09:18

    very great, thank you

  7. Tosta (1 comments) Says:
    April 28th, 2011 at 09:16

    That’s brill, thank you!

  8. Carsten (1 comments) Says:
    Juni 10th, 2011 at 10:33

    That’s really great! Thank You!

  9. Felix (2 comments) Says:
    September 28th, 2011 at 19:54

    THX A LOT!

  10. Jacco (1 comments) Says:
    November 1st, 2011 at 12:50

    Thx :D

  11. Yaml rgaccordion - TYPO3 Forum & Portal Says:
    Januar 31st, 2012 at 12:47

    [...] [...]


© 2007 - 2009 Thorsten Boock