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.
v0.7.1 span blocker plugin captcha picture not displaying
oops that was supposed to be spam blocker not span blocker
oops that was supposed to be spam blocker not span blocker
-
- 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
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
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/
# 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/
Apache error log for mt_rand - maybe my kit is a bit old
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
[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
-
- 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
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
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/
# 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/
-
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
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
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/
# 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/
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?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.
Regards, Thomas
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:
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]
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)
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]