[TYPO3-english] Strange GIFBUILDER issue

View: New views
9 Messages — Rating Filter:   Alert me  

[TYPO3-english] Strange GIFBUILDER issue

by Jacob Rasmussen-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi list,

I'm working on a personal site and for some reason the first GIFBUILDER
element on page (either in the main menu or as a content header) is
randomly only 1 pixel wide.
The element is usually created correctly after a couple of clear cache
commands - but will eventually revert to 1 pixel width.

Site URL: http://lightbulb.dk/

I have tried using default fonts and disabling the main menu, but then
the first content header disappears instead. So I'm wondering if anyone
on the list have experienced the same problem, and if so what can I do
to fix the issue.

My server is running Ubuntu 9.04, PHP 5.2.6 with Suhosin 0.9.6.2,
GraphicsMagick 1.1.11, GDlib 2 enabled

The main menu is being generated through the GTMenu IProcFunc:

TS template for my main menu

temp.mainmenu = HMENU
temp.mainmenu {
        wrap = <div id="mainMenu"> | </div>
        1 = GMENU
        1 {
                IProcFunc = user_gtmenu->GTMenu
                wrap = <ul> | </ul>
                ext = png
                #noBlur = 1
                css2TempFile = 1
               
                NO {
                        allWrap = <li> | </li>
                        ATagTitle.field = nav_title//title
                        stdWrap.htmlSpecialChars = 1
                        stdWrap.case = upper
                       
                        XY = [20.w]+20,78
                                                                       
                        10 = IMAGE
                        10 {
                                file = {$template.path}images/menu-el-bg-no.png
                                offset = 0,0
                                align = |*||*| right || left
                        }
                       
                        15 = IMAGE
                        15 {
                                file = || {$template.path}images/menu-el-bg-left.png |*|
                                offset = 0,0
                        }

                        20 = TEXT
                        20 {
                                text.field = nav_title//title
                                text.case = upper
                                fontSize = 12
                                fontColor = #ffffff
                                fontFile = {$template.path}fonts/europe-b.PFB
                                niceText = 0
                                offset = 11,24
                                shadow {
                                        offset = 1,1
                                        color = #000000
                                        opacity = 68
                                        blur = 1
                                }
                        }
       
                        30 = IMAGE
                        30 {
                                file = |*||*| {$template.path}images/menu-el-bg-act.png ||
{$template.path}images/menu-el-bg-last-act.png
                                offset = 0,39
                                align = right
                        }
                       
                        35 = IMAGE
                        35 {
                                file = {$template.path}images/menu-el-bg-left.png
                                offset = 0,39
                        }

                        40 < .20
                        40.offset = 11,63
                        40.fontColor = #c2db7d
                       
               
                }
               
                ACT =< .NO
                ACT = 1
                ACT {
                        allWrap = <li class="active"> | </li>
       
                        XY = [20.w]+20,39

                        10 = IMAGE
                        10 {
                                file = |*||*| {$template.path}images/menu-el-bg-act.png ||
{$template.path}images/menu-el-bg-last-act.png
                                offset = 0,0
                                align = right
                        }
                       
                        15 = IMAGE
                        15 {
                                file = {$template.path}images/menu-el-bg-left.png
                                offset = 0,0
                        }

                        20 = TEXT
                        20 {
                                text.field = nav_title//title
                                text.case = upper
                                fontSize = 12
                                fontColor = #c2db7d
                                fontFile = {$template.path}fonts/europe-b.PFB
                                niceText = 0
                                offset = 11,24
                                shadow {
                                        offset = 1,1
                                        color = #000000
                                        opacity = 68
                                        blur = 1
                                }
                        }
                       
                }
        }
}



Thanks in advance :)

Kind regards
  - Jacob
_______________________________________________
TYPO3-english mailing list
TYPO3-english@...
http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english

Re: [TYPO3-english] Strange GIFBUILDER issue

by Jigal van Hemert-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Jacob Rasmussen schreef:
> The element is usually created correctly after a couple of clear cache
> commands - but will eventually revert to 1 pixel width.

There are a few bug reports (e.g. in general bug tracker about tt_news
and in forge about ir_faq) where it seems that sometimes the TS
constants are not inserted in the setup part.
Since each element has a TS constant {$template_path} in it, I'm
beginning to suspect that this might be the case here.

You can easily check by replacing the references to the constants with
the actual values.

Regards,

--
Jigal van Hemert.

_______________________________________________
TYPO3-english mailing list
TYPO3-english@...
http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english

Re: [TYPO3-english] Strange GIFBUILDER issue

by Jacob Rasmussen-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Jigal van Hemert skrev:
> Since each element has a TS constant {$template_path} in it, I'm
> beginning to suspect that this might be the case here.
>
> You can easily check by replacing the references to the constants with
> the actual values.
>

It sure could have been the problem - since I have experienced that kind
of problems before, but I checked the TS template record in the
cache_hash table, when the problem is showing - and the constant markers
are replaced with the correct values. To be on the safe side I tried
replacing the constants with static values and that didn't make any
difference.

The funny thing is, that it is always only the first item which is
experiencing this issue.

I'm wondering if there is something wrong in my general configuration,
as I haven't experienced this problem before on any of the sites I have
been working on. But I don't really know where to look.

Regards,
Jacob Rasmussen
_______________________________________________
TYPO3-english mailing list
TYPO3-english@...
http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english

Re: Strange GIFBUILDER issue

by Gerhard Mehsel :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello Jacob,

Jacob Rasmussen schrieb:
> Jigal van Hemert skrev:
 > [...]
> The funny thing is, that it is always only the first item which is
> experiencing this issue.

I have the same problem here, did you find a solution?

Thank you,
Gerd
_______________________________________________
TYPO3-english mailing list
TYPO3-english@...
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english

Re: Strange GIFBUILDER issue

by Gerhard Mehsel :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hey Jacob,

I think I just found a solution:
On my system (lenny, PHP 5.2.6-1lenny3) I had the php5-suhosin module
installed. After removing that module all my headers are generated
correctly. Halleluja, I hope it is working now.

Regards,
Gerd

_______________________________________________
TYPO3-english mailing list
TYPO3-english@...
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english

Re: Strange GIFBUILDER issue

by Bernhard Kraft-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Gerhard Mehsel schrieb:

> I think I just found a solution:
> On my system (lenny, PHP 5.2.6-1lenny3) I had the php5-suhosin module
> installed. After removing that module all my headers are generated
> correctly. Halleluja, I hope it is working now.

Hello !

The suhosin module adds a bit of security to your server. So removing it
wont be a clever idea in every case.

Please drop me a mail if the problem occurs again (even without suhosin
installed). I'll try to have a look if the described issue "no constants
being inserted into setup" really occurs ...


greets,
Bernhard
_______________________________________________
TYPO3-english mailing list
TYPO3-english@...
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english

Re: Strange GIFBUILDER issue

by Gerhard Mehsel :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

Bernhard Kraft schrieb:
> Gerhard Mehsel schrieb:
>
>> I think I just found a solution:
>> On my system (lenny, PHP 5.2.6-1lenny3) I had the php5-suhosin module
>> installed. After removing that module all my headers are generated
>> correctly. Halleluja, I hope it is working now.

> The suhosin module adds a bit of security to your server. So removing it
> wont be a clever idea in every case.

I just removed the -additionally- installed php5-suhosin package. After
removing this package the phpinfo(); still tells me that "This server is
protected with the Suhosin Patch 0.9.6.2"
It seems that a suhosin patch is compiled into PHP 5.2.6 by default from
the debian people.
Installing this additional php5-suhosin package will perhaps lead to a
double install of the suhosin patch and causes the trouble.

> Please drop me a mail if the problem occurs again (even without suhosin
> installed). I'll try to have a look if the described issue "no constants
> being inserted into setup" really occurs ...


At the moment it seems to work, but thank you for that offer :-)

Regards,
Gerd
_______________________________________________
TYPO3-english mailing list
TYPO3-english@...
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english

Re: Strange GIFBUILDER issue

by Xavier Perseguers :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

>>> I think I just found a solution:
>>> On my system (lenny, PHP 5.2.6-1lenny3) I had the php5-suhosin module
>>> installed. After removing that module all my headers are generated
>>> correctly. Halleluja, I hope it is working now.
>
>> The suhosin module adds a bit of security to your server. So removing it
>> wont be a clever idea in every case.
>
> I just removed the -additionally- installed php5-suhosin package. After
> removing this package the phpinfo(); still tells me that "This server is
> protected with the Suhosin Patch 0.9.6.2"
> It seems that a suhosin patch is compiled into PHP 5.2.6 by default from
> the debian people.
> Installing this additional php5-suhosin package will perhaps lead to a
> double install of the suhosin patch and causes the trouble.

No, suhosin is composed of two parts, one may be used as PHP module (the
suhosin extension), the other should be compiled with PHP (the suhosin
patch). All is explained on their webpage.

Actually the patch is more to secure PHP's internal:

http://www.hardened-php.net/suhosin/a_feature_list.html

While the extension might lead to unwanted behavior if not properly
configured.

--
Xavier Perseguers
DBAL Leader

http://forge.typo3.org/projects/show/extension-dbal
_______________________________________________
TYPO3-english mailing list
TYPO3-english@...
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english

Re: Strange GIFBUILDER issue - SOLVED

by Jacob Rasmussen-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Although I don't have the complete solution yet, Gerhard tipped me that
the problem is due to the Suhosin patch...

So it's a question of tweaking the Suhosin settings :)

Rgds
Jacob
_______________________________________________
TYPO3-english mailing list
TYPO3-english@...
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english