The Wakaba and Kareha support thread, part 3 (535)

1 Name: !WAHa.06x36 : 2011-01-07 09:57 ID:eLRTX7Vk [Del]

This thread is for all your simple questions about installing and running Wakaba or Kareha, that just require quick answers. Please don't create new threads for issues like that, post them in here instead.

Before posting, check that the question has not already been answered in this thread, or in the previous two threads:

Also check the documentation:

There is also a setup guide by Anon:

Questions about "500 Internal Server Errors" go in this thread:

35 Name: Anonymous : 2011-02-05 10:48 ID:Heaven [Del]

Yes. I made a mod for that, but it depends on the Captcha::reCAPTCHA CPAN library.

36 Name: Anonymous : 2011-02-05 11:03 ID:Heaven [Del]

Can you post what you did in the patch thread?

37 Name: Anonymous : 2011-02-05 16:02 ID:Heaven [Del]


38 Name: Anonymous : 2011-02-05 18:09 ID:kgaG5Vpe [Del]

i added txt, mp3, doc, ogg, aac, rar, 7z as supported formats. how can i make wakaba rename them? cause wakaba saves their filenames

39 Name: Anonymous : 2011-02-07 09:52 ID:Heaven [Del]


Find this line in

if($filetypes{$ext}) # externally defined filetype - restore the name

and replace it with if (0). Hackish but the simplest way to do that.

I tried that on my board once, though, and people really didn't like it.

40 Name: Anonymous : 2011-02-10 15:52 ID:WYoXpIQU [Del]

i dont want kareha to prefill in the name and link fields based off cookie info, how do i fix this?

41 Name: Anonymous : 2011-02-10 15:53 ID:WYoXpIQU [Del]

i dont want kareha to prefill in the name and link fields based off cookie info, how do i fix this?

42 Name: anonymous : 2011-02-10 15:54 ID:WYoXpIQU [Del]

I dont want kareha to fill out the name and link fields with cookie info, how do i fix this?

43 Name: Anonymous : 2011-02-11 07:45 ID:Heaven [Del]

Open the .js file, and put a return; right before the var el in set_new_inputs.

Delete kareha.js.


44 Post deleted by user.

45 Name: Anonymous : 2011-02-16 12:27 ID:Lw0vossg [Del]

WAHa, I was just wondering why you use -size/-geometry in the ImageMagick command instead of -resize. The latter works much faster on my computer than the first. Just asking.

46 Name: Anonymous : 2011-03-01 10:07 ID:dpJzbpFG [Del]

How do you change what the bullet statements below "password" say on the main board?

for example if i change what file types are allowed or file sizes or just want to post the rules there?

47 Name: Anonymous : 2011-03-01 14:49 ID:Miu+Msti [Del]

Edit include/rules.html.

48 Post deleted by user.

49 Name: Anonymous : 2011-03-02 10:31 ID:dpJzbpFG [Del]


yeah i tried that but it's not updating :/

I can't find where in the code it links to rules.html

50 Name: Anonymous : 2011-03-02 17:58 ID:Heaven [Del]

Go to Manage and click Rebuild caches.

51 Name: Anonymous : 2011-03-03 00:59 ID:Ef7z+kRC [Del]

I'm trying to cobble together something similar to 4chan/tg/'s dice rolling function. If "dice XdY+Z" is in the email field when the post is submitted, the script will randomly generate numbers to simulate rolling X-number of Y-sided dice, add modifier Z, and put the result into the posted post. So "2d6+5" would result in something like

Rolled 4, 3 + 5 = 12
Rest of post derp herp blahblah etc

The perl script I've found is different in that it can process negative modifiers instead of just adding, but the basic idea is the same.

#!/usr/bin/perl -wl
use strict;
$_ = shift or die 'Invalid argument passed';
/^(\d+)[dD](\d+)([+-]\d+)?$/ or die 'Invalid argument passed';
my $sum = 0;
$sum += 1 + int rand $2 for 1..$1;
$sum += $3 if defined $3;
print $sum;

The problem is I don't know anything about perl or coding aside from some basic concepts like variables and subroutines, so I don't know how to integrate the rolling script with Kareha.
I started off looking through to see where it called (banner image randomizer), so I could modify the function for my own purposes, and have had no luck. I'm probably looking for the wrong thing, or in the wrong place, or have seen exactly what I need but didn't recognize it...

Any help at all is appreciated.

52 Name: Anonymous : 2011-03-03 08:11 ID:Heaven [Del]


> similar to 4chan

First ask yourself why you need to make a copy of something that already exists. And I can't figure out why you're bringing up banner images, either.

But disregarding that... try putting this in, right after the message text formatting. You'll probably have to work with it because I didn't test this and I never get perl to work right on the first try. Also I don't remember what the variables are called offhand. Probably they're both wrong.

# mostly your same regex, except with the word 'dice'
# (and with /x, because cramped-up regexes are unreadable)
if ($link =~ /dice \s* ( # $1 = everything after 'dice'
(\d+) # $2 = old $1
\s* d \s* # the letter 'd', literally
(\d+) # $3 = old $2
\s* # some space!
([+-]\d+)? # $4 = old $3, maybe
)/xi) {
# this is the same
my $sum = 0;
$sum += 1 + int rand $3 for 1..$2;
$sum += $4 if defined $4;
$message = '<p>Rolled ' + $1
+ ' = <strong>' + $sum + '</strong></p>'
+ $message;

And after you get it to work, maybe post the functioning code to the patch thread. (

53 Name: Anonymous : 2011-03-06 18:16 ID:VhUEcIkX [Del]

How do I stop the thread numbers from reseting to 1? Eg. "No.1"

54 Name: Anonymous : 2011-03-06 20:43 ID:Heaven [Del]

Use Wakaba instead of Kareha.

There's probably ways to patch kareha to keep a running post count, but it'd be a deep change.

55 Name: Anonymous : 2011-03-06 20:48 ID:VhUEcIkX [Del]


Thanks, but I have no idea on how to set up the sql database for Wakaba... If anyone could help me with that, I'd greatly appreciate it.

56 Name: Anonymous : 2011-03-07 13:07 ID:Heaven [Del]

You don't have to set anything up. Wakaba does that for you. All you do is fill out the server/username/password in the config, which your host should have given you.

Or you could also try uncommenting the second SQL_DBI_SOURCE line (the one that says "SQLite") instead, and leave everything else blank, if you have the perl sqlite module installed.

57 Name: Anonymous : 2011-03-07 19:05 ID:Heaven [Del]

All the transparent PNGs I upload get a white background. Where can I disable this?

58 Name: !WAHa.06x36 : 2011-03-08 09:22 ID:eLRTX7Vk [Del]


"Disable" it how? Thumbnails are JPEGs, they can't be transparent. It has to be SOME colour.

59 Name: Anonymous : 2011-03-08 20:35 ID:Heaven [Del]

Well is there a way to create the thumbnails in the original format then? I've seen transparent PNG thumbnails and even transparent, animated thumbnails on various chans.

60 Name: Anonymous : 2011-03-09 04:33 ID:Heaven [Del]

Of course it's possible, if you rewrite the thumbnail-making code.

61 Name: Anonymous : 2011-03-13 12:51 ID:lfrvtekH [Del]

use constant DISPLAY_ID => 'day'; # How to display user IDs (0 or '': don't display,

IDs don't seem to be changing daily. Am I doing something wrong here?

62 Name: Anonymous : 2011-03-15 09:58 ID:Ef7z+kRC (Image: 659x166 png, 14 kb) [Del]

src/1300208304384.png: 659x166, 14 kb

Whenever I make a post that has any space between lines, the blank line doesn't show up in the Photon theme. Does anyone know what I need to modify to get Photon to recognize the double-space?

Left is Photon, right is Burichan

63 Name: Anonymous : 2011-03-15 11:28 ID:Heaven [Del]

Seek and destroy this rule:

blockquote p {
margin: 0;
padding: 0;

64 Name: Anonymous : 2011-03-19 22:08 ID:eBCrjWFi [Del]

Bump for some help with >>61

Seriously. If I'm doing something stupid, just say so. Otherwise, I could really use some help as this seems to be broken.

65 Name: Anonymous : 2011-04-06 23:31 ID:AlFRE+X1 [Del]

So there was talk of using a sage checkbox instead of having a link box...
Did anyone ever try that? I'm using an anonymous board where that's the only use for the link box. Kinda awkward.
Also, the mailto:sage thing is silly. Only sage posts turn the name into a mailto link, and that doesn't do anything useful.

66 Post deleted by user.

67 Name: Anonymous : 2011-04-08 03:52 ID:Heaven [Del]

Any particular reason why Wakaba stores the IP of posters as an integer?

68 Name: Anonymous : 2011-04-08 05:04 ID:Heaven [Del]

>>67 That's the only portable way to compare addresses and deal with CIDR ranges.

69 Name: Anonymous : 2011-04-12 11:21 ID:6ila+4vx [Del]

Yeah, I've done this on my boards for some time now. Though, we kept the ability to also put sage into the email field, since not everyone is intelligent enough to notice the checkbox. It works well.

70 Name: Anonymous : 2011-04-12 20:18 ID:AlFRE+X1 [Del]

Did you make it so sageing doesn't add a mailto link, or just add a checkbox option? I was thinking of changing this line in

$link="mailto:$link" if $link and $link!~/^$protocol_re/;

so that there's another condition that $link not be "sage", but I'm not sure if that will break the sage function.

71 Name: Anonymous : 2011-04-18 10:18 ID:SZ+oPXmk [Del]

Hello man,

I have accidently moved a couple of threads to archive. How to return them to an imageboards from archive? Simply copying files from /src/, /res/, /thumbs/ doesnt help - e.g., in /res/ html files of threads even disappear after cache update! How to revive threads from archive?

72 Name: Anonymous : 2011-04-21 07:55 ID:Heaven [Del]

You can't.

73 Name: Anonymous : 2011-04-22 12:49 ID:Ts46dqG+ [Del]

no T_T

74 Name: Anonymous : 2011-05-06 01:53 ID:/wuv0fyN [Del]

How can I add transparency to previews of the pictures on my wakaba board?
Some of the full image has transparency, but previews never have.

75 Name: Anonymous : 2011-05-08 09:09 ID:Heaven [Del]

You need to modify the code to write previews as something other than jpg.

76 Name: Anonymous : 2011-05-08 23:55 ID:i3YI3W2a [Del]


could you help me? Or where can I find info? I want the png and gif images to keep their transparency even in previews.

77 Name: Anonymous : 2011-05-14 23:07 ID:02hGJvFs [Del]

Hello everyone,

I have a trouble - oekaki applet doesnt work. I can draw normally, uplaod the picture, but after that it says "management password incorrect". Regular posts are sent normally. Why management password incorrect? Maybe wakaba encodes management password incorrect due to encoding? I have utf-8 installed

78 Name: Anonymous : 2011-05-17 10:40 ID:BSvjNYjI [Del]

Lol, problem solved, dunno how

79 Name: Anonymous : 2011-05-30 10:55 ID:o0l+wLjO [Del]

How can I get this USER WAS BANNED FOR THIS POST message on Wakaba?

80 Name: !WAHa.06x36 : 2011-05-30 14:42 ID:Heaven [Del]


You can't. That's a feature.

81 Name: Anonymous : 2011-05-31 12:05 ID:Heaven [Del]

I've setup my board, and every thing is working. But the board look itself is odd.
The favicon does not show up, and the text font is different in most places. places is a deferent font than the install of Kareha at The Society for the Study of Imageboard Culture. Even in the input boxes. In fact as I was typing this I noticed that mine is actually like this board here. Why is text on The Society for the Study of Imageboard Culture look different from this board here and mine?

82 Name: Anonymous : 2011-06-01 08:20 ID:Heaven [Del]

Because The Society for the Study of Modern Imageboard Culture uses SHIFT_JIS encoding (which you should avoid, unless you're Japanese or a huge weeaboo).

83 Name: Anonymous : 2011-06-01 12:53 ID:Heaven [Del]

Oh I understand. You say I should avoid it though The Society for the Study of Modern Imageboard Culture does not seem to have any problems with it. What would be the disadvantages of using SHIFT_JIS?

84 Name: Anonymous : 2011-06-01 16:08 ID:Heaven [Del]

Unicode characters won't work. You should rather use a bit of CSS if you absolutely must have the Japanese fonts.

85 Name: Anonymous : 2011-06-11 14:11 ID:tk8IDOvp [Del]


10 pages worth of threads for my Kareha image board disappeared a couple of days ago, and I wanna know why. I haven't touched anything in the FTP files in months.

Could anyone explain why this happened and how to get them back/prevent it from happening?

86 Name: Anonymous : 2011-06-11 20:42 ID:Heaven [Del]

Maybe somebody guessed your admin password?

87 Name: Anonymous : 2011-06-11 20:58 ID:tk8IDOvp [Del]

No, that's not it. After conducting an experiment, it seems like the pages are only able to be at 0 and 1 from now on. It can't make a page 2 anymore for some reason.

Maybe i should just reinstall it?

88 Name: Orochi Herman!hN02YkuTxM : 2011-06-21 22:04 ID:b+acuI+h [Del]

So, where do I get this url shortening decoder for Wakaba?

89 Name: Anonymous : 2011-08-05 16:22 ID:Zx4e4MEq [Del]

I am running small Kareha board. Somehow one thread got disappeared I don't know how. Limits are disabled (manually of by default) or set to other values, so threads shouldn't be autodeleted, I think.
There were 5 pages, and that thread was on 0 page (though it was old, but most active, post limit and bump limit was not reached). OP didn't deleted it too. Where could be the problem?
Also, TRIM_METHOD is better to set to 1? Maybe because of this that thread was gone.

90 Name: That guy with the band. : 2011-08-12 17:46 ID:TCeeUWog [Del]

I keep getting this error not matter what I do. Advice?

No SQL settings defined in the configuration at line 11.
BEGIN failed--compilation aborted at line 126.
Compilation failed in require at line 17.
BEGIN failed--compilation aborted at line 17.

91 Name: Anonymous : 2011-08-13 13:43 ID:Zx4e4MEq [Del]

To continue about >>89
Could it be because of no space left on disk and that thread was bumped (posted in it)?

92 Name: Mr. Manager!!wIZhSe8U : 2011-08-14 15:49 ID:yEgF0xnz (Image: 1356x1028 png, 175 kb) [Del]

src/1313362157734.png: 1356x1028, 175 kb

I have a small question regarding the the "posts omitted" message in Wakaba. Is there any possible way to accomplish what I'm showing on the bottom half of this image?

93 Post deleted by moderator.

94 Post deleted by moderator.

95 Post deleted by moderator.

96 Name: Anonymous : 2011-08-16 17:32 ID:Heaven [Del]

Yes, you can misspell "omitted" by editing

97 Name: Mr. Manager!!wIZhSe8U : 2011-08-17 13:49 ID:yEgF0xnz [Del]

Doesn't really solve my problem, but okay.

98 Post deleted by user.

99 Name: Mr PirateBox : 2011-08-19 09:16 ID:moNZCOS6 [Del]

I'm using lighttpd and perl on a openwrt.
I'm getting the following error if I'm posting anything:

Software error:
Attempt to reload aborted.
Compilation failed in require at line 616.


The Section is creating something for a cookie. How can I fix his?

100 Name: !WAHa.06x36 : 2011-08-19 13:00 ID:eLRTX7Vk [Del]


Don't use lighttpd, probably. I don't think anyone's managed to get wakaba to work with it.

101 Name: Mr PirateBox : 2011-08-19 14:45 ID:PO8bpCCz [Del]

It's working on my debian box with lighttpd.

102 Name: Mr. Manager!!wIZhSe8U : 2011-08-20 09:06 ID:yEgF0xnz [Del]

I actually have it running perfectly on my Debian box as well.

103 Name: Anonymous : 2011-08-20 18:10 ID:Heaven [Del]

The boards use it, apparently.

104 Name: Mr PirateBox : 2011-08-20 23:31 ID:cNrGglfw [Del]


I believe this problem have something to do with the used perl version for openwrt.
I only installed the "missing" packages, but maybe I missed a few.

It isn't possible to install all perl packages at all, because there is not enough space left on the device

105 Name: That guy with the band. : 2011-08-22 14:18 ID:1PltzV+l [Del]

Help please?

106 Name: Anonymous : 2011-08-22 15:17 ID:Heaven [Del]


Well did you define any SQL settings?

107 Name: That guy with the band. : 2011-08-24 13:10 ID:1PltzV+l [Del]

Only the bare minimum ones needed to run and connect to the database.

108 Name: Anonymous : 2011-08-24 20:10 ID:Heaven [Del]


Well, better check that again, then. Remember not to comment it out, either.

109 Name: Anonymous : 2011-08-29 00:23 ID:g34np2s6 [Del]

Trying to set up a Kareha board, however, I've noticed that unless I delete, re-upload it and run it no changes take effect. Is this normal, or am I missing out on something?

110 Name: Anonymous : 2011-08-29 04:49 ID:Heaven [Del]

Rebuild the caches from the admin panel after you make changes.

111 Name: That guy with the band. : 2011-08-29 16:08 ID:1PltzV+l [Del]

112 Name: Anonymous : 2011-08-29 19:43 ID:g34np2s6 [Del]


I'm guessing it depends on the host's control panel, but just how would I do that?

113 Name: Anonymous : 2011-08-30 18:48 ID:QtWloSoo [Del]


Go to

114 Name: Anonymous : 2011-09-09 09:20 ID:4L8vcPML [Del]

wAHA, what do you think of youtube embedding in the post? Some users want it but I find it annoying when they just start posting a lot of embedded videos instead of images, or text, or at least links.

115 Name: Anonymous : 2011-09-11 15:08 ID:QtWloSoo [Del]

Would anyone mind telling me if i should be using the same cryptographic secret key across all boards?

116 Name: !WAHa.06x36 : 2011-09-11 16:20 ID:Heaven [Del]


If you want secure tripcodes to be the same across all boards, yes.

117 Name: Anonymous : 2011-09-13 11:42 ID:bjxSkLW6 [Del]

I get a 404 when I try to Preview Post using Opera (11.51). Does anyone else have this problem?

118 Post deleted by user.

119 Name: Mr. Piratebox : 2011-09-15 22:53 ID:QbGeW+Wy [Del]


Got the Page-Load Problem solved. It was missing .pm file.

CGI::Carp qw ( fatalstobrowser does not work correctly on lighttpd.

use the following lines instead:


#use CGI::Carp qw(fatalsToBrowser);

use CGI::Carp qw ( carpout);
open ( LOG, ">>/tmp/cgi.log" ) or die ("Unable to open cgi.log");
carpout (LOG);

So you'll find the perl errors in /tmp/cgi.log

Anyone an idea to solve the problem, that I only see the new posts with a "refresh" of the page .. with lighttpd ??

120 Name: Anonymous : 2011-09-25 03:44 ID:XJYzGU6D [Del]


I am using wakaba 3.0.8, apache/2.2.21 and mysql 5.1.56.
Although the site is accessible, I can't post anything. The site just loads for about a second when i use the Submitbutton. There are no errors in the Apache or mysql logs. Any help would be appreciated.

121 Name: Anonymous : 2011-09-26 00:47 ID:nLIA7St+ [Del]


>Anyone an idea to solve the problem, that I only see the new posts with a "refresh" of the page .. with lighttpd ??

I'm having this same exact problem with Wakaba (and maybe Kareha; too early to tell). Any solutions?

122 Name: Anonymous : 2011-09-26 05:04 ID:Heaven [Del]

Configure lighttpd to serve HTML files with an "Expires" header set to a date in the past.

123 Name: !WAHa.06x36 : 2011-09-26 07:03 ID:Heaven [Del]


Rebuild caches.

124 Name: Anonymous : 2011-10-13 03:52 ID:YkiTmvxq [Del]

Has anyone here ever tried to port Kareha/Wakaba into php-based framework app?
sorry for my bad english

125 Post deleted by user.

126 Name: kin : 2011-10-26 04:28 ID:uQGqbqwU [Del] Can't locate in @INC (@INC contains: . /etc/perl /usr/local/lib/perl/5.12.4 /usr/local/share/perl/5.12.4 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.12 /usr/share/perl/5.12 /usr/local/lib/site_perl) at /var/www/waka/ line 16.
[Wed Oct 26 22:18:00 2011] BEGIN failed--compilation aborted at /var/www/waka/ line 16.

how do i fix this?

127 Name: Anonymous : 2011-10-26 16:42 ID:Heaven [Del]

Hi, I'm trying use Kareha in image mode, but keeping the textboard look, basically what this board is doing. I've setup kareha in text mode and image mode before, but how I set it up in imageboard mode and make it keep the textboard mode look?
The same thing is done on this board:

128 Name: Anonymous : 2011-10-27 18:41 ID:Heaven [Del]

set it up in textboard mode, then enable image posting in

129 Name: Anonymous : 2011-10-30 14:24 ID:ZQ5CH/kV [Del]

So I setup Wakaba on my hosts server and everything was working except for thumbnail generation. In place of the thumbnail you would see a dotted borderlined square, and in it is simple the words "No thumbnail." You click in and it opens the image just fine, but there is never any thumbnail.
Now, I just setup Kareha on the server in image mode, and the very same thing is happening. A dotted boarderlined square with the words "No thumbnail" inside it. And clicking the words brings up the image just fine. But neither will create thumbnails.
Is there anything that could cause this very same problem with both Kareha and Wakaba? I've tried what I could and now I'm stumped.

Help please?

My host uses Apache 2.2.17, by the way.

130 Name: Anonymous : 2011-11-01 02:01 ID:Heaven [Del]

Get your host to install Imagemagick (the command line version).

131 Name: Anonymous : 2011-11-02 14:36 ID:HtbptTT5 [Del]

Kareha and Wakaba need an external program to work? Lame. Well it can't be helped.
But, if I am unable to get them to install it, is there a workaround?

132 Name: Anonymous : 2011-11-02 22:05 ID:gtsKSWi/ [Del]

A BIG Thanks :)

133 Name: Anonymous : 2011-11-03 10:24 ID:Heaven [Del]

get an imagemagick binary that will run on your server, put it on the server, and set the location in

134 Post deleted by user.

Name: Link:
Leave these fields empty (spam trap):
More options...