v0.7.1 span blocker plugin captcha picture not displaying

Found a bug? Tell us!!
Post Reply
Guest

v0.7.1 span blocker plugin captcha picture not displaying

Post 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.
Guest

oops that was supposed to be spam blocker not span blocker

Post by Guest »

oops that was supposed to be spam blocker not span blocker
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: v0.7.1 span blocker plugin captcha picture not displayin

Post 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
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Guest

Apache error log for mt_rand - maybe my kit is a bit old

Post 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
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Apache error log for mt_rand - maybe my kit is a bit old

Post 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
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Thomas
Regular
Posts: 130
Joined: Tue Sep 21, 2004 2:00 pm
Location: Stockerau/NÖ/A
Contact:

Post 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
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post 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
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Thomas
Regular
Posts: 130
Joined: Tue Sep 21, 2004 2:00 pm
Location: Stockerau/NÖ/A
Contact:

Post 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
Guest

Post 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]
Post Reply