[TYPO3] rgsmoothgallery disiplaying code on FE
Bernd Wilke
xoonsji02 at sneakemail.com
Sun Jul 8 00:08:15 CEST 2007
On Sat, 07 Jul 2007 10:31:26 -0700, Stephen Martin wrote
with subject "[TYPO3] rgsmoothgallery disiplaying code on FE":
> Hi,
>
> I've installed rgsmoothgallery 1.0.5 and have configured it properly.
> However, on the initial load of page of any page of the site the code
> below is displayed on the front end. This happens only on the first load
> of the page and subsequent refreshes do no exhibit the problem.
>
> Here's the site where I'm testing it: vbc.devworktest.com
>
> Typo3 4.1.1
> PHP5
>
> Thanks for any help and the great extension.
>
>
> <-----------code displayed on front end--------------->
> currentRecord,':'); $id =
> substr($GLOBALS['TSFE']->currentRecord,$split+1); $where = 'uid ='.$id;
> $table = 'tt_content'; $res =
> $GLOBALS['TYPO3_DB']->exec_SELECTquery('imagewidth,imageheight',$table,$where,$groupBy='',$orderBy,$limit='');
> $row = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($res); $css .=
> ($row['imagewidth']) ? 'width:'.$row['imagewidth'].'px;' : ''; $css .=
> ($row['imageheight']) ? 'height:'.$row['imageheight'].'px;' : '';
> $GLOBALS['TSFE']->additionalCSS['rgsmoothgallery'.$id] =
> '#myGallery'.$id.' {'.$css.'}'; $path =
> t3lib_extMgm::siteRelpath('rgsmoothgallery').'res/';
> $GLOBALS['TSFE']->additionalHeaderData['rgsmoothgallery'] = ' ';
> return $content; } function user_test2($content,$conf) { #echo
> t3lib_div::view_array($conf); echo '
>
> ';
> $GLOBALS['TSFE']->currentRecord;
> echo '
>
> '; return $GLOBALS['TSFE']->currentRecord; } ?>
I have installed 1.0.1 but doesn't got this error.
Maybe it is a configuration on your webserver. I have looked into the
transmitted html-source and it seems to be the complete file user_rgsg.php.
what is different in this file?
it starts only with <? instead of <?PHP
Your webservice may think this is no php-file and transmit it like a
txt-file.
Bernd
--
http://www.pi-phi.de/t3v4/cheatsheet.html
More information about the TYPO3-english
mailing list