Having error when opening a blog

6 views
Skip to first unread message

ferjon

unread,
Oct 15, 2010, 1:07:07 PM10/15/10
to xaloon
Before adding comment, I get this error.


Regards,

ferjon

unread,
Oct 15, 2010, 1:11:48 PM10/15/10
to xaloon
I can't post the image for this error I encountered.

You've done this before. How to post image here? I've tried image
shack links but google gets an error.

Please help.


Regards,

ferjon

unread,
Oct 15, 2010, 1:15:03 PM10/15/10
to xaloon
Input error: k: Format of site key was invalid


Above is the error message I get inside the comment panel.

Please help.

Thanks,

Vytautas

unread,
Oct 15, 2010, 1:43:36 PM10/15/10
to xaloon
Hey,
can you give a stack trace?

With images there is a trick in version 1.3.x - one must upload image
to some place, e.g., picasaweb.google.com and then add the link in
blog entry to the image.

ferjon

unread,
Oct 16, 2010, 12:10:56 AM10/16/10
to xaloon
Unfortunately, there is no stack trace for this bug. It just appears
there and it seems that because of this the comment does not proceed
as being posted.

It is not caused by the event of clicking the "Comment" button. Upon
load to the blog page, this already appears.

Also, looking at the CommentForm class I suspect that it is caused by
the validator for websiteField.

ferjon

unread,
Oct 16, 2010, 7:45:30 AM10/16/10
to xaloon
This is what is generated in html page:

<pre>
<div id="rc16">
<script type="text/javascript">
var RecaptchaOptions = {
theme : 'custom',
custom_theme_widget: 'recaptcha_widget'
};
</script>
<div style="display: none;" id="recaptcha_widget">
<table width="100%" class="captcha">
<tbody><tr>
<td colspan="2"><div id="recaptcha_image"></div></td>
</tr>
<tr>
<td colspan="2">
<label class="recaptcha_only_if_image captcha">Enter words above:</
label>
<label class="recaptcha_only_if_audio captcha">Enter numbers you
hear:</label>
</td>
</tr>
<tr>
<td>
<input type="text" onblur="var wcall=wicketAjaxPost('../../../?
wicket:interface=:
5:content:comment:commentContainer:commentForm:rc:recaptcha_response_field::IBehaviorListener:
0:3', wicketSerialize(Wicket.$('recaptcha_response_field')),function()
{ }.bind(this),function() { }.bind(this), function() {return Wicket.$
('recaptcha_response_field') != null;}.bind(this));" value=""
name="rc:recaptcha_response_field" id="recaptcha_response_field"
class="input">
</td>
<td>
<a href="javascript:Recaptcha.reload()"><img width="25" height="17"
alt="Get a new challenge" src="http://api.recaptcha.net/img/white/
refresh.gif" id="recaptcha_reload"></a>
<a href="javascript:Recaptcha.switch_type('audio')"
class="recaptcha_only_if_image"><img width="25" height="16"
src="http://api.recaptcha.net/img/white/audio.gif"
id="recaptcha_switch_audio" alt="Get an audio challenge"></a>
<a title="Get a visual challenge"
href="javascript:Recaptcha.switch_type('image');"
id="recaptcha_switch_img_btn" class="recaptcha_only_if_audio"><img
width="25" height="16" src="http://api.recaptcha.net/img/white/
text.gif" id="recaptcha_switch_img" alt="Get a visual challenge"></a>
<a href="javascript:Recaptcha.showhelp()"><img width="25" height="16"
alt="Help" src="http://api.recaptcha.net/img/white/help.gif"
id="recaptcha_whatsthis"></a>
</td>
</tr>
<tr>
<td colspan="2"><span id="recaptcha__response__field__fp17">

</span></td>
</tr>
</tbody></table>
</div>
<script src="http://api.recaptcha.net/challenge?k=null" type="text/
javascript" language="JavaScript"></script>Input error: k: Format of
site key was invalid

<noscript>
&lt;iframe src="http://api.recaptcha.net/noscript?k=null" height="300"
width="500" frameborder="0"&gt;&lt;/iframe&gt;&lt;br&gt;
&lt;textarea name="recaptcha_challenge_field" rows="3" cols="40"&gt;
&lt;/textarea&gt;
&lt;input type="hidden" name="recaptcha_response_field"
value="manual_challenge"&gt;
</noscript>
</div>
</pre>

ferjon

unread,
Oct 16, 2010, 7:47:12 AM10/16/10
to xaloon
Just what to point out this snippet from above posted html:

ferjon

unread,
Oct 16, 2010, 7:51:06 AM10/16/10
to xaloon
I believe the one causing the problem was the reCaptcha


I get this warning in the logs:

WARN - Enclosure - Found a form component TextField/
content:comment:commentContainer:commentForm:rc:recaptcha_response_field
inside an enclosure. Form components do not work well inside
wicket:enclosure tags, use EnclosureContainer instead

ferjon

unread,
Oct 16, 2010, 8:22:43 AM10/16/10
to xaloon
I need to get my key from reCaptcha. Now, the issue is resolved

Thanks,
Reply all
Reply to author
Forward
0 new messages