[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [php-weathermap] Editor won't display nodes



check.php and check-gdbug.php both run fine from the command-line.
check.php runs in the browser, too - it reports that the only feature
I'm missing from GD is an optional one:

         imagefilter    NO Non-Critical.   This is required for colorizing
                           icons. It is a special function of the
                           PHP-supplied GD library ONLY (not the external GD
                           library that you are using).

check-gdbug.php runs on the command line and all seems to be in order
there. When run in the browser, I get a white page with no HTML.

For the record, I compiled this GD, gd-2.0.35, by hand so that we had
the necessary version and features.

On Tue, Sep 16, 2008 at 2:12 PM, Howard Jones <howie@xxxxxxxxxx> wrote:
> Joshua Keroes wrote:
>>
>> The editor won't render that node. When I delete the node definition
>> by hand, the editor runs again. I've tested this a few times, both
>> with the 95b and 96t1 versions editor.php.
>>
>> How do I troubleshoot this? I'm not familiar with php enough to know
>> where to start.
>>
>
> Did you run check.php from a browser? (and particularly check-gdbug.php?)
>
> The two things I know to cause this are memory_limit (unlikely on the first
> node, but it depends how big your background image is, and how big your
> memory_limit is), and particular GD versions (usually in Debian/Ubuntu). On
> Debianish systems, it's particularly awkward because the command-line PHP
> isn't necessarily the same as the Apache-driven one, which can hide this
> issue until you use the editor.
>
> The second one (my guess for this case) is in the FAQ: "... I get a blank
> screen in the editor when I add a node"
> http://www.network-weathermap.com/manual/latest/pages/faq.html#gdbug
>
> Basically, drawing nodes uses alpha channels. Alpha channels are broken in
> some GD versions. Normally, you'd see this when using hand-made configs too
> though, so that's a little stranger, although those are potentially
> different PHP setups (web vs CLI).
>
> Howie
>

Copyright 1994-2005, by Howard Jones. howie@thingy.com