| Home |
|
» Kategorien
» Seiten » Suche |
« wget untar on the fly PHP: making a file executable »
TYPO3 4.5, t3mootools and JSMinIf 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: 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”
© 2007 - 2009 Thorsten Boock
nerdcenter is proudly powered by
WordPress
Entries (RSS) and Comments (RSS). Calella | Lloret de Mar Reisen | Stalker Clear Sky | Empire Total War |
» Archiv
|
Februar 17th, 2011 at 18:47
Thx. perfect. It works in my T3 4.5
Februar 19th, 2011 at 12:16
Thx a lot – works great!!
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 [...]
März 29th, 2011 at 11:57
Danke, es läuft in T3 4.52
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 …
April 15th, 2011 at 09:18
very great, thank you
April 28th, 2011 at 09:16
That’s brill, thank you!
Juni 10th, 2011 at 10:33
That’s really great! Thank You!
September 28th, 2011 at 19:54
THX A LOT!
November 1st, 2011 at 12:50
Thx
Januar 31st, 2012 at 12:47
[...] [...]