Page 1 of 1
v0.7.1 span blocker plugin captcha picture not displaying
Posted: Sat Jan 15, 2005 3:22 pm
by Guest
line 479 - has the following:
mt_rand($max_char, $min_char)
this should be
mt_rand($min_char,$max_char)
or the mt_rand function errors and the picture is not displayed.
oops that was supposed to be spam blocker not span blocker
Posted: Sat Jan 15, 2005 3:25 pm
by Guest
oops that was supposed to be spam blocker not span blocker
Re: v0.7.1 span blocker plugin captcha picture not displayin
Posted: Sat Jan 15, 2005 3:36 pm
by garvinhicking
Thanks for the tip, but it works flawlessly on about 15 installations I know of - which error does your mt_rand report? As far as I know the max/min numbers are interchangable...
Regards,
Garvin
Apache error log for mt_rand - maybe my kit is a bit old
Posted: Sun Jan 16, 2005 1:26 am
by Guest
Well maybe my kit is a bit old ...... finding the time to upgrade sigh
[error] PHP Warning: mt_rand(): Invalid range: 5..3 in /plugins/serendipity_event_spamblock/serendipity_event_spamblock.php on line 479
[error] File does not exist: /plugin/captcha_c45ac1f91206d61be8819a4490dc44e5
With the above error no picture appeared.
I swapped the arguements and both errors diappeared and the picture appeared
running:
NetBSD 1.5.2 (has a lot of "pathces" on it)
PHP Version 4.1.2
Re: Apache error log for mt_rand - maybe my kit is a bit old
Posted: Mon Jan 17, 2005 9:19 am
by garvinhicking
Yes, I think 4.1.2 is quite outdated. Because of several seroius other PHP bugs you are urged to upgrade to PHP 4.3.10 ASAP...
Regards,
Garvin
Posted: Wed Jan 19, 2005 12:50 pm
by Thomas
Hi garvin,
I have PHP 4.3.10 and s9y 0.7 on my system and actually get the same effect.
Opening the image in a browser windows results in " ... cannot be displayed because it contains errors".
Regards, Thomas
EDIT: JPG support is enabled
Posted: Wed Jan 19, 2005 2:31 pm
by garvinhicking
Thomas, the problem you're having is a different one. You have an extra linebreak inside your graphics, so somewhere inside your layout or somewhere else ( a plugin maybe) contains an extra CR/LF character at its beginning, causing the graphic to not render properly.
Regards
,Garvin
Posted: Wed Jan 19, 2005 2:36 pm
by Thomas
garvinhicking wrote:Thomas, the problem you're having is a different one. You have an extra linebreak inside your graphics, so somewhere inside your layout or somewhere else ( a plugin maybe) contains an extra CR/LF character at its beginning, causing the graphic to not render properly.
How do you come across this? Actually it is an image and so it shouldn't run through a plugin while being rendered. Where do you thing I can start searching for?
Regards, Thomas
Posted: Wed Jan 19, 2005 5:40 pm
by Guest
Hi,
as I already wrote to garvin himself I figured out that if the Gravatar plugin is installed and enabled there will be an additional line at the very first beginning of any document. This one line causes a lot of problems.
They are:
- Comments are not working (spamblocker captchas are not displayed)
- RSS feeds are not displayed (Firefox mentiones an error in the entities)
As soon as it is disabled and removed from the plugin list it works as expected.
I tried to find the line which causes problems myself but didn't find any (even my editor is a quite good one with syntax highlight).
I was able to reproduce this on two different systems (alive and testsystem).
This case speaks only for me right now, don't know if someone might have the same thing. So it applies only for me at the moment.
Regards, Thomas[/list]