[TYPO3-dam-devel] RFC #10016: DAM 1.1 relies on fix for bug #9511

Steffen Gebert steffen at steffen-gebert.de
Fri Dec 26 00:22:02 CET 2008


Dan Osipov wrote:
> Is this really necessary? The bug only applies to certain installs, and
> those could either wait for 4.2.4, or apply the patch? Adding another
> XCLASS into the extension isn't going to do much good...

I found this issue trying out tt_news v3 and later had the same problem with dam.

tt_news uses another way to ensure correct template is used. Maybe this could be a fix for 1.1:

                 * FIXME:
                 * on some servers $this->doc->moduleTemplate is empty (occured only on netcreators servers until now)
                 * by opening the template directly it worked.
                 * possible reasons:
                 * - paths with '../typo3/../' could make problems
                 * - php settings which influence the functionality of t3lib_div::getURL(). allow_url_fopen and the like
                 * - ...
                 */

                if (!$this->doc->moduleTemplate) {
                        t3lib_div::devLog('cannot set moduleTemplate', 'tt_news', 2, array(
                                        'backpath' => $this->doc->backPath,
                                        'filename from TBE_STYLES' => $GLOBALS['TBE_STYLES']['htmlTemplates']['mod_ttnews_admin.html'],
                                        'full path' => $this->doc->backPath.$GLOBALS['TBE_STYLES']['htmlTemplates']['mod_ttnews_admin.html']
                        ));
                        $tfile = t3lib_extMgm::siteRelPath('tt_news').'mod1/mod_ttnews_admin.html';
                        $this->doc->moduleTemplate = @file_get_contents(PATH_site.$tfile);
                }

Steffen


More information about the TYPO3-team-dam mailing list