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:

2 Name: Anonymous : 2011-01-07 10:15 ID:Heaven [Del]

The header of the board still points to the support thread part 2. Just thought I'd tell you.

3 Name: Anonymous : 2011-01-07 14:38 ID:M22ovTpD [Del]

Here's a simple one, can you add boards? Is it done through the config file or the Management Panel? Thanks.

4 Name: Anonymous : 2011-01-08 01:09 ID:Heaven [Del]

You copy your Kareha directory somewhere else. There's no option of sub-forums or anything like that. You can only have different instances of Kareha in different folders.

5 Name: Anonymous : 2011-01-08 01:24 ID:ivkZbDfv [Del]

Why are there secret options in the first place? Wouldn't it be easier to release them and be done with it instead of being secretive?

6 Name: Anonymous : 2011-01-08 09:55 ID:Heaven [Del]

What secret options are you talking about? If you're referring to the SecretFeatures page on the documentation wiki, that's just undocumented features which are included.

7 Name: Anonymous : 2011-01-08 10:45 ID:Heaven [Del]

Exactly those. Why not document them?

8 Name: !WAHa.06x36 : 2011-01-08 12:19 ID:eLRTX7Vk [Del]


Because they are jokes and not meant to be used.

9 Name: Anonymous : 2011-01-08 12:26 ID:Heaven [Del]

If we have "useless" functions like that, why not go for stupid things like stickies too?

10 Name: Anonymous : 2011-01-08 23:47 ID:Heaven [Del]

because the joke features are amusing, while stickies just turn boards into shit.

11 Name: Anonymous : 2011-01-11 09:03 ID:kgaG5Vpe [Del]

from previous thread

987 Name: Anonymous
i turned on function stops Wakaba from renaming image files, but the cyrillic characters look really weird, like укр.jpg.
Can you help me make wakaba show cyrillic names correctly?

989 Name: akane!!xU6Yb/f1
>>987 use UTF-8?

990 Name: Anonymous
i do use!
i set use encoding 'utf-8' in the beginning of Strings_en, but it does not help

991 Name: Anonymous
Check your server's configuration. The files have to be served as UTF-8, and that is outside of Wakaba's realm. Specifically, the Content-Type header needs to have a charset=utf-8.


I added line <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> to but nothing changed. Am I doing smthing wrong?

12 Name: Anonymous : 2011-01-11 21:35 ID:Heaven [Del]

use utf-8 in the file names.

13 Name: Anonymous : 2011-01-14 08:59 ID:kgaG5Vpe [Del]


what do you mean?

14 Name: Anonymous : 2011-01-14 20:33 ID:Heaven [Del]

name your files in utf-8 instead of whatever weird encoding you're using.

15 Name: Anonymous : 2011-01-17 04:07 ID:kgaG5Vpe [Del]

how can I do that, and what even more important - how can I make my users do that?
in my >>11 i've said what i've done, but that did not help.
What am I doing wrong?

16 Name: Anonymous : 2011-01-17 16:16 ID:Heaven [Del]

on most sane operating systems, utf-8 is the default for filenames, and it's easy to change the encoding.
but i'm guessing you're on windows, and i'm not sure how to do it on windows.
you could figure out what encoding your operating system is using and modify wakaba to convert from that to utf-8, but that would break it for anyone who is using any other encoding (including utf-8). you could do some hacks to try to guess the right encoding, but even then it will get some filenames wrong, at the cost of greatly increased code complexity. really, the best option is to just have it rename the files. that's why the default is the way it is.

17 Name: strat : 2011-01-18 09:50 ID:U/U9j7ez [Del]

I've got wakaba up and running and it works for every function EXCEPT uploading images

If you don't select a file everything works fine and thread save and everything

If you try to select a file and submit it hangs indefinitely (Using chrome I see in the bottom left "Uploading: 8%" and it stays there forever)

Any suggestions?

Is there something I can edit in the config file? or is it server issue?

18 Name: strat : 2011-01-18 10:52 ID:U/U9j7ez [Del]

PS: I'm using lighttpd server, not apache

19 Name: strat : 2011-01-18 12:13 ID:U/U9j7ez [Del]

PPS: Apperently there's a max size somewhere other than the config file, I can upload very very small images, but if the image is over 1kb or something it hangs.

This is probably server-side, but I'm not very familiar with that, under lighttpd does anyone know where this problem might be originating from?

20 Name: Anonymous : 2011-01-30 00:59 ID:YjP2tqq8 [Del]

#use constant MAX_LINES_SHOWN => 15; # Max lines of a comment shown on the main page (0 = no limit)

If one sets MAX_LINES_SHOWN to 0, one just gets empty posts instead of no limit. Looks like a bug to me.

21 Name: Anonymous : 2011-01-30 02:24 ID:kgaG5Vpe [Del]

I want to allow the TXT files on my Wakaba board.
I uncomment the line in
use constant FILETYPES => (

And add a line:
# # Other files

txt => 'icons/txt.png'

But it does not work, I get an error:
"no" not allowed in expression at line 177, at end of line
syntax error at line 177, near "no encoding"
Compilation failed in require at /var/www/chan/ line 16.
BEGIN failed--compilation aborted at /var/www/chan/ line 16.

What am I doing wrong?

22 Name: Anonymous : 2011-01-30 10:58 ID:Heaven [Del]

Did you uncomment the closing parentheses?

23 Name: Anonymous : 2011-02-02 18:16 ID:kgaG5Vpe [Del]


no, i didn't... THANK YOU!

24 Name: Anonymous : 2011-02-03 05:38 ID:kgaG5Vpe [Del]


25 Name: Anonymous : 2011-02-03 07:57 ID:kgaG5Vpe [Del]

how can I get this ID Heaven on my imageboard?
I set:
use constant DISPLAY_ID => 1;
use constant EMAIL_ID => 'Heaven';

write an email in message, but still I get regular ID

26 Name: Anonymous : 2011-02-03 11:50 ID:Heaven [Del]

use constant DISPLAY_ID => 'link';

I think the 0/1 is a lingering old example that doesn't work anymore.

27 Name: Anonymous : 2011-02-03 12:13 ID:kgaG5Vpe [Del]

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

28 Name: Anonymous : 2011-02-03 12:40 ID:kgaG5Vpe [Del]


use constant DATE_STYLE => 'localtime'; # Date style ('futaba', '2ch', 'localtime', 'tiny')
use constant DISPLAY_ID => 'link'; # How to display user IDs (0 or '': don't display,

					#  'day' and 'board' in any combination: make IDs change for 

each day or board,

					#  'mask': display masked IP address (similar IPs look 

similar, but are still encrypted)

					#  'sage': don't display ID when user sages, 'link': don't 

display ID when the user fills out the link field,

					#  'ip': display user's IP, 'host': display user's host)

use constant DISPLAY_ID => 1; # Display user IDs (0: never, 1: if no email, 2:always)
use constant EMAIL_ID => 'Heaven'; # ID string to use when DISPLAY_ID is 1 and the user uses an email.
#use constant TRIPKEY => '!'; # this character is displayed before tripcodes

is it rights?
then how do I get ID:Heaven?

29 Name: Anonymous : 2011-02-04 01:57 ID:C++iCm4U [Del]

is there some way to display pages other than 0 in kareha?

an automatized one i mean, like the wakaba one, since i can't find anything for that in the config and end up manually linking to every page from the header/footer.

30 Name: Anonymous : 2011-02-04 10:27 ID:aI6GNze9 [Del]

Sure, if you switch it to imageboard mode.

31 Name: Anonymous : 2011-02-04 11:12 ID:C++iCm4U [Del]

so a textboard can't have that? that kind of sucks, i don't really want to replace it with an imageboard (if i'm right, i have to delete the old one and install an imageboard version?).

makes me wonder why does it even generate more pages then, if they can't be accessed unless the users start guessing the links or the admin adds the links manually, and then edit the headers every so often to include every new page/delete nonexistant ones.

32 Name: Anonymous : 2011-02-04 12:08 ID:Heaven [Del]

You could have it, but it would take some work by hand to write a "hybrid" template supporting the features you want. Out of the box, you have one or the other.

(Generate what now?)

33 Name: Anonymous : 2011-02-04 12:17 ID:C++iCm4U [Del]

>(Generate what now?)

extra pages with older threads.

i have a generic kareha text board with "use constant PAGE_GENERATION => 'paged';" enabled, and it creates 1.html, 2.html, 3.html etc. with the threads that fell off page 0, so all it'd have to do is link to the existing ones and disable the currently viewed one.

34 Name: Anonymous : 2011-02-05 08:41 ID:Bno3a85R [Del]

can i apply reCaptcha on wakaba?

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.

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