The Wakaba and Kareha support thread, part 2 (1000)

1 Name: !WAHa.06x36 : 2007-10-11 06:19 ID:K4vOYfq0 [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 thread: http://wakaba.c3.cx/sup/kareha.pl/1141929669/

Questions about "500 Internal Server Errors" go in this thread: http://wakaba.c3.cx/sup/kareha.pl/1109033191/

2 Post deleted by moderator.

3 Post deleted by moderator.

4 Post deleted by moderator.

5 Post deleted by moderator.

6 Name: Anonymous : 2007-10-11 16:36 ID:5gNAws8H [Del]

990 from the old thread here,
thanks for the suggestion of an if statement, it worked just fine.

7 Post deleted by moderator.

8 Name: confused : 2007-10-14 00:38 ID:xa0eV/G6 [Del]

Hi!
I downloaded wakaba, but i cannot find documentation or any kind of instructions. Yet when I edit config.pl, it says there to read documentation first. Where i can find that?

9 Name: !WAHa.06x36 : 2007-10-14 04:27 ID:Heaven [Del]

Perhaps I should have linked http://wakaba.c3.cx/docs/docs.html from the first post...

10 Name: Anonymous : 2007-10-14 13:37 ID:Heaven [Del]

I also have a rather verbose wakaba setup guide at http://wiki.iiichan.net/index.php?title=Wakaba_and_Kareha_Setup_Guide

11 Name: Anonymous : 2007-10-15 10:32 ID:xa0eV/G6 [Del]

Thanks! That guide was helpful.

12 Name: Anonymous : 2007-10-16 16:41 ID:dl0YVBIe [Del]

Any idea why the [del] button next to a post you've made won't work from the main page (with all the other threads, like /sup/) but when you go to the thread page (/sup/kareha.pl/######/) it works?

13 Name: !WAHa.06x36 : 2007-10-17 04:16 ID:Heaven [Del]

>>12

No. Check the Javascript console for error messages.

14 Name: Anonymous : 2007-10-19 17:01 ID:+JMPDAYw [Del]

is there a changelog for wakaba?

15 Name: !WAHa.06x36 : 2007-10-19 18:10 ID:Heaven [Del]

No, sorry. The closest is that most changes are noted in the release thread: http://wakaba.c3.cx/sup/kareha.pl/1130723862/.

16 Name: Anonymous : 2007-10-19 21:56 ID:Heaven [Del]

Moving some stuff over from http://wakaba.c3.cx/soc/kareha.pl/1100499906/300-303,306 re. tripcodes being converted to SJIS internally...

Try #‾` -- it produces !gNJ5O0SenA with sjis and !IGt35Zr1c. with utf8.

(In any event, I believe vanity-tripcodes are stupid, but I'm just obsessive enough about stupid things like this that I want to get them completely right.)

17 Name: Anonymous : 2007-10-19 21:58 ID:Heaven [Del]

argh, urls don't auto link in html?
thread

18 Name: Anonymous : 2007-10-22 02:42 ID:xa0eV/G6 [Del]

How do your get google adsense work in wakaba? When I download my wakaba.html, I can see the code in there, but all lines have been stripped away. Is there anything I can do to prevent this from happening? There is no such option in config.pl.

19 Name: !WAHa.06x36 : 2007-10-22 05:32 ID:Heaven [Del]

>>18

No, there is such an option in config.pl. Search the old thread.

20 Name: Anonymous : 2007-10-22 07:09 ID:xa0eV/G6 [Del]

I did that, but didn't find answer, well, at least answer I could understand. It seems I should edit include() in wakautils.pl, but what I should change in it?

21 Name: !WAHa.06x36 : 2007-10-22 11:29 ID:Heaven [Del]

That is an ancient answer. Just look at config.pl again, there's a STRIP_NEWLINES option, or something similar.

22 Name: Anonymous : 2007-10-24 02:35 ID:xa0eV/G6 [Del]

I looked at it, but I can't still find it there, or anything like it.

23 Name: Anonymous : 2007-10-24 02:41 ID:xa0eV/G6 [Del]

I looked at it, but I can't still find it there, or anything like it.

24 Name: !WAHa.06x36 : 2007-10-24 03:38 ID:Heaven [Del]

Yeah, seems I only got around to adding it to Kareha and not to Wakaba. You can fix it yourself by adding a ,1 to the end of the compile_template call in futaba_style.pl.

use constant PAGE_TEMPLATE => compile_template(NORMAL_HEAD_INCLUDE.q{
(all the html for the frontpage goes here)
}.NORMAL_FOOT_INCLUDE,1);

25 Name: Anonymous : 2007-10-31 10:10 ID:D8IbfTld [Del]

Hi, i successfully installed wakaba but when tying to login to managment panel i always get the "Management password incorrect" despite that the password is correct for sure. This happened after i changed the encoding in config.pl file to 'windows-1251' when i change it back everything works fine. How can i fix this problem? Thank you

26 Name: !WAHa.06x36 : 2007-10-31 10:52 ID:Heaven [Del]

Does the password contain any non-ASCII characters?

27 Name: Anonymous : 2007-11-02 07:58 ID:GnKowG1e [Del]

>>26
no, it contains only numbers

28 Name: !WAHa.06x36 : 2007-11-02 20:28 ID:Heaven [Del]

Then I am completely lost.

29 Name: Anonymous : 2007-11-05 05:12 ID:61Il5qfA [Del]

Does RSS work with image-mode?

30 Name: Anonymous : 2007-11-05 08:43 ID:Heaven [Del]

>>29 with kareha, yes. Wakaba doesn't have RSS.

31 Name: Anonymous : 2007-11-05 20:46 ID:hpbA7oBB [Del]

So I set up a kareha image-mode board, and people are posting, which makes me happy. But threads keep getting deleted without human input, which makes me unhappy. I can't imagine what's causing this - looking over config.pl, all the settings seem reasonable and shouldn't be killing the threads like that. The threads aren't exceeding size limits, post limits, or time limits. The deletion seems random, but the board's never gotten past 11-12 threads before something disappears, and usually threads disappear before a second page is even created. Any ideas why?

Possibly relevant config.pl settings:

use constant THREADS_DISPLAYED => 10;
use constant THREADS_LISTED => 40;
use constant REPLIES_PER_THREAD => 1;

use constant MAX_THREADS => 0;
use constant MAX_POSTS => 500;

use constant TRIM_METHOD => 1;

use constant DELETE_FIRST => 'single';

none of these seem like they should be deleting things...

32 Name: Anonymous : 2007-11-05 21:19 ID:Heaven [Del]

MAX_POSTS => 500 does mean total posts.

33 Name: Anonymous : 2007-11-06 03:08 ID:hpbA7oBB [Del]

yeah, but there haven't been near that many total posts. (it's a very small board)

34 Name: Anonymous : 2007-11-06 10:32 ID:gFc5X+Qe [Del]

>>33

I suggest setting a MAX_THREADS then leaving MAX_POSTS to 0.

35 Name: Anonymous : 2007-11-06 10:34 ID:WGVMS5Vh [Del]

What software should I use to edit the futaba_style.pl file and actually see the changes happen? I am currently using Dreamweaver CS3 to create my site, but when I try to edit this file, I can't see what's going on, I can only see the code.

36 Name: Anonymous : 2007-11-06 11:32 ID:61Il5qfA [Del]

>>30 I am using kareha. I tried setting the RSS-file name to index.rss, but it only generates an empty file.

Look here:
http://zzub.org/forum/index.html
http://zzub.org/forum/index.rss <- completely empty

37 Name: Anonymous : 2007-11-06 13:07 ID:dXmIoBjs [Del]

>>34

Did that, posts are still being weird and disappearing.

38 Name: !WAHa.06x36 : 2007-11-06 13:50 ID:lpemlo1D [Del]

>>37

Are the image files disappearing from src/ and thumb/, too?

39 Name: Anonymous : 2007-11-06 15:43 ID:Heaven [Del]

>>35 uh, notepad?

40 Name: Anonymous : 2007-11-06 15:55 ID:dXmIoBjs [Del]

>>38

Indeed they are. And the HTML files from res/ as well.

41 Name: Anonymous : 2007-11-06 23:22 ID:WGVMS5Vh [Del]

>>39 uh, you didn't read what I said. I want to SEE the actual changes that the values I edit make, the COSMETIC changes to the site. I can see the actual code fine, I just want to see it change in realtime instead of having to upload it to the server everytime.

42 Name: !WAHa.06x36 : 2007-11-07 07:03 ID:Heaven [Del]

>>41

Install a local copy and run it. That's the only way.

43 Name: Anonymous : 2007-11-07 10:49 ID:WGVMS5Vh [Del]

>>42

How would I go about doing this? Do I have to install apache server and Imagemagic software on my PC?

I don't know how to setup a local host.

44 Name: !WAHa.06x36 : 2007-11-07 12:14 ID:Heaven [Del]

Yes, pretty much.

45 Name: Anonymous : 2007-11-07 20:12 ID:Heaven [Del]

>>43 google "wamp" for the basic package, then install perl as well.

46 Name: Anonymous : 2007-11-08 00:57 ID:WGVMS5Vh [Del]

>>45

Ok, installed them both, but I don't know what to do next. Is there a new-user friendly tutorial on this or would you folks just have to end up walking me through this?

Thanks for the software though.

47 Name: hikako : 2007-11-08 22:30 ID:reFZdUBo [Del]

Is there ## Admin and ## Mod functionality in base Wakaba?

48 Name: Anonymous : 2007-11-08 23:49 ID:Heaven [Del]

>>47
no, you need to add it yourself.

49 Name: !WAHa.06x36 : 2007-11-09 06:11 ID:Heaven [Del]

And you should really consider not doing it.

50 Name: Anonymous : 2007-11-09 10:02 ID:OP/vNh7J [Del]

>>38

So no ideas as to what's causing it? It's really getting annoying.

51 Name: !WAHa.06x36 : 2007-11-09 15:25 ID:Heaven [Del]

None. It's the first I've ever heard of a problem like that. Can you post your entire config.pl?

52 Post deleted by moderator.

53 Name: Anonymous : 2007-11-10 16:20 ID:X6sM8TB5 [Del]

okay, my config.pl, save the crypto secret and the admin pass, and a huge block of stuff I didn't touch (everything after SPAM_TRAP is still commented out and at its default), is at http://hofochan.tejat.net/configbugged.txt

I've made a few changes since I posted those lines back in >>31 but the problem hasn't stopped.

54 Name: !WAHa.06x36 : 2007-11-10 20:16 ID:Heaven [Del]

You've got MAX_MEGABYTES set to 1. That's how many megabytes the entire board is allowed to take up before threads start getting deleted.

55 Name: Anonymous : 2007-11-10 21:40 ID:X6sM8TB5 [Del]

oh wow, really? I totally misinterpreted that - I thought it was the max size for each image. Wow. Go me.

Thanks for helping!

56 Name: Anonymous : 2007-11-10 23:06 ID:Heaven [Del]

how the poop do i change the color of the captchas? currently it is #800000 (128,0,0) but when i edit the (128,0,0) places in captcha.pl it stops showing captcha images altogether.

what the butt am i doing wrong? D:

57 Name: !WAHa.06x36 : 2007-11-11 05:18 ID:Heaven [Del]

There is a hack in there that reads the colour from the CSS files, so change it in there.

58 Name: Anonymous : 2007-11-11 11:26 ID:Heaven [Del]

>>57
yeah i saw that.. i just have no idea what css to put in the file.. ie what label to use.

59 Name: Anonymous : 2007-11-11 14:22 ID:QaLPSnjP [Del]

Ok so i got mysql, apache configrued to run cgi, heidisql, and wakaba. I know i have to create a database so I did but I don't know what tables to add. And im not real sure where to put wakaba in apache folder. does it go in htdocs? Well i put it in there and told apache to use wakaba.pl as a default page so heres what i get. Go to http://75.4.51.1

60 Name: !WAHa.06x36 : 2007-11-11 16:03 ID:Heaven [Del]

>>58

Just look at the default ones.

>>59

The script creates the tables itself. And no, wakaba.pl should most definitely not be set to the default page.

61 Name: Anonymous : 2007-11-11 16:34 ID:QaLPSnjP [Del]

Ok then so im gonna put these in steps in order from what i know.
1.gain apache, mysql, perl
2.allow apache to use cgi
3.create a database for wakaba
4.download wakaba files and unzip them
5.edit config files config.pl,wakaba.pl,maybe another one
6.At this step im confused, where do i put my files to make them work? I think i have to put them in apache but i don't know if i should put them in the root directory or the cgi folder. After i do this i should be able to access the site.

Another thing is you said not to make wakaba my defualt page so what should i tell apache and if i need to be able to make wakaba.pl an html file how do i do that? As you can see i have the basic idea on how to get started but the problem is tweaking config files and placing my files in a place readable by perl and apache. All thanks to who gets my stuff to work

62 Name: Anonymous : 2007-11-12 01:58 ID:61Il5qfA [Del]

So, anyone else gotten RSS working with kareha image mode?

63 Name: !WAHa.06x36 : 2007-11-12 05:06 ID:Heaven [Del]

64 Name: Anonymous : 2007-11-12 08:57 ID:Heaven [Del]

>>61 Whatever directory you set up as the "root" directory in apache. Go look at the apache documentation, it's not our job to help you out with that.

65 Name: Anonymous : 2007-11-12 10:31 ID:3eUrhxyY [Del]

I have a problem. When trying to make a manager post without file i get "no comment entered" error. When i make a post with an image everything works fine except for that the comment i entered is not displayed along with Name and Subject. What can be the cause and how can i fix it?
Thank you.

66 Name: Anonymous : 2007-11-12 13:11 ID:Heaven [Del]

>>65
I'm pretty sure the manager post form is broke as hell.
Check the old support thread for a post on how to fix it.

67 Name: Anonymous : 2007-11-12 13:55 ID:Heaven [Del]

>>65
make sure the id for the different fields in the management panel are the same as the ones in the normal post form. somewhere along the lines some things got changed and waha didn't apply the changes on the management panel.

68 Name: Anonymous : 2007-11-15 06:46 ID:o99l2EWE [Del]

I'm trying to get Kareha to work with IIS. So far, it largely works fine... the script runs, it's possible to post/reply, thumbnail converter works, etc. However, if I try to access the page for a specific thread (ie ./kareha.pl/1192108766/l50) it gives me a 404 error. However, it is creating the thread files in the ./res/, and the front page is able to load that data...

Any ideas?

69 Name: Anonymous : 2007-11-15 09:24 ID:Heaven [Del]

it's likely trying to open a folder named /1192108766/, which obviously doesn't exist. There must be a way to re-write that url so that it sends the request to kareha.pl instead. I know you could do it using mod_rewrite in apache, but ISS is another matter entirely.

70 Post deleted by moderator.

71 Name: !WAHa.06x36 : 2007-11-15 16:12 ID:Heaven [Del]

Sounds like CGI is broken in IIS, and it doesn't support PATH_INFO properly.

The only solution I can think of other than somehow making IIS not be broken is to hack Kareha to not use PATH_INFO but some kind of normal CGI parameter instead. Not recommended unless you know your way around Perl.

72 Name: Anonymous : 2007-11-27 20:04 ID:z6B5ro8O [Del]

Is there a possibility of a MySQL powered Kareha (2ch-mode)?

73 Name: !WAHa.06x36 : 2007-11-28 07:20 ID:Heaven [Del]

No, not really.

74 Name: CyberPrime : 2007-12-04 15:03 ID:hySRI+6A [Del]

Hi, I was wondering if there is anyway to use Wakaba without using SQLite, I haven't played with just commenting it yet but thats something I will do when I have a chance. Thanks.

(Just for the curious ones)
Im getting this message while running Wakaba.pl

Software error:
install_driver(SQLite) failed: Can't locate DBD/SQLite.pm in @INC (@INC contains: . /usr/lib/perl5/5.8.8/i686-linux /usr/lib/perl5/5.8.8 /usr/lib/perl5/site_perl/5.8.8/i686-linux /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl/5.8.5 /usr/lib/perl5/site_perl/5.8.4 /usr/lib/perl5/site_perl/5.8.3 /usr/lib/perl5/site_perl/5.8.2 /usr/lib/perl5/site_perl/5.8.1 /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl) at (eval 321) line 3, <FILE> line 3.
Perhaps the DBD::SQLite perl module hasn't been fully installed,
or perhaps the capitalisation of 'SQLite' isn't right.
Available drivers: DBM, ExampleP, File, Gofer, Proxy, Sponge, mysql.
at wakaba.pl line 45

Clearly showing that I don't have SQLite installed.
Again, is there anyway around using SQLite? Thanks, Wakaba is great.

75 Name: CyberPrime : 2007-12-04 15:03 ID:hySRI+6A [Del]

Hi, I was wondering if there is anyway to use Wakaba without using SQLite, I haven't played with just commenting it yet but thats something I will do when I have a chance. Thanks.

(Just for the curious ones)
Im getting this message while running Wakaba.pl

Software error:
install_driver(SQLite) failed: Can't locate DBD/SQLite.pm in @INC (@INC contains: . /usr/lib/perl5/5.8.8/i686-linux /usr/lib/perl5/5.8.8 /usr/lib/perl5/site_perl/5.8.8/i686-linux /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl/5.8.5 /usr/lib/perl5/site_perl/5.8.4 /usr/lib/perl5/site_perl/5.8.3 /usr/lib/perl5/site_perl/5.8.2 /usr/lib/perl5/site_perl/5.8.1 /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl) at (eval 321) line 3, <FILE> line 3.
Perhaps the DBD::SQLite perl module hasn't been fully installed,
or perhaps the capitalisation of 'SQLite' isn't right.
Available drivers: DBM, ExampleP, File, Gofer, Proxy, Sponge, mysql.
at wakaba.pl line 45

Clearly showing that I don't have SQLite installed.
Again, is there anyway around using SQLite? Thanks, Wakaba is great.

76 Name: Anonymous : 2007-12-04 15:54 ID:Heaven [Del]

> Hi, I was wondering if there is anyway to use Wakaba without using SQLite,

yes, you can use mysql instead.

77 Name: CyberPrime : 2007-12-05 16:02 ID:Wj6kvqUz [Del]

Uhh, how? I set up the database and everything...

Its still given me that error.

78 Name: CyberPrime : 2007-12-05 16:09 ID:Wj6kvqUz [Del]

NVM, I seem to have gotten it, just uncommented the 2nd use constant SQL_DBI_SOURCE

79 Name: Anonymous : 2007-12-07 16:05 ID:Wj6kvqUz [Del]

How do I make new directories?

I copied the wakaba.html file over into the new directory but it shows the same thing that the wakaba.html does. also, what about the reply pages and what not? How should everything be placed and routed?

80 Name: Anonymous : 2007-12-07 18:31 ID:Heaven [Del]

>>79
You need to copy everything to the new directory.

81 Name: Anonymous : 2007-12-08 06:48 ID:Wj6kvqUz [Del]

everything like what?
The res folder? the .pl's? im pretty sure I wouldn't have to copy EVERYTHING over cause most pages have links and what not made so it will go back to itself like "/chan/whatever/"

82 Name: Anonymous : 2007-12-08 14:56 ID:Heaven [Del]

>>79 are you trying to set up two boards, like say /anime/ and /non-anime/? then you need to set everything up twice. the boards don't talk to each other.

83 Name: Anonymous : 2007-12-08 21:55 ID:Heaven [Del]

>>81
Ugh, okay, let's start from the beginning.

You download wakaba, so you now have a wakaba folder. Goto config.pl, edit the data you want to edit and save it. Upload load it to your site, and change the directory name (site.com/anime/). Change the config (from your computer) again to what you want the new board to be. And upload it to your site as a differenct directory (site.com/non-anime).

84 Name: Anonymous : 2007-12-16 19:24 ID:ijB7jYcw [Del]

How to use utf-8:

The top of your config file should look like this:

use constant ADMIN_PASS => 'change this';
use constant NUKE_PASS => 'change this';
use encoding 'utf-8';

Note that use encoding is applied AFTER the admin passwords.

Also, NUKE is an offensive term for a country that was bombed by nuclear weapons, and why do you insist on swearing in comments to the source code?

85 Name: Anonymous : 2007-12-16 20:03 ID:Heaven [Del]

>>84
I've never seen anyone consider nuke an offensive term, besides nuke is a very fitting term for what the feature does.

Waha probably uses swearing to emphasize how important it is to change the password.

And lastly in my experience, most non-native english speakers don't consider english swearing to be as offensive as a native english speaker would.

86 Name: Anonymous : 2007-12-17 01:48 ID:UB4hf8PM [Del]

>>85
Yeah, fuck all that shit.

87 Name: Anonymous : 2007-12-22 01:01 ID:0pYYKuzk [Del]

How would you go about setting the password for mods? I've tried making an admin password and giving it to the mods but that doesn't work.

88 Name: Anonymous : 2007-12-22 13:21 ID:Heaven [Del]

>>87 they can't log in using it?

89 Name: Anonymous : 2007-12-22 18:14 ID:0pYYKuzk [Del]

>>88
Nope, and after they try to use it it won't let me log in and I have to reset it.

90 Name: Jeremy : 2007-12-23 22:18 ID:GcUdrtKI [Del]

Can't find anything on this, so I'll post it hoping there is a quick solution.

I installed a fresh copy of wakaba with oekaki integration and attempt to upload a file and get this error:

CGI open of tmpfile: Permission denied

Now, I googled this and it turns out that it might have something to do with the world writeable temp directory that is supposed to be there on the host, but probably is not now because my host (ipower) has been getting worse and worse lately.

So, is there a way to make all the wakaba scripts use the tmp directory from the oekaki?

91 Name: Anonymous : 2007-12-25 23:00 ID:0pYYKuzk [Del]

Is there a way to make an image appear below the "Flood detected" screen?

92 Name: Anonymous : 2007-12-26 10:12 ID:Heaven [Del]

>>91 check out the strings files, or perhaps the template one, depending on whether you're talking about kareha or wakaba

93 Post deleted by user.

94 Post deleted by user.

95 Post deleted by user.

96 Name: Anonymous : 2007-12-26 14:21 ID:0pYYKuzk [Del]

lol sorry for all these posts, I'm a little new to this. I'm having a problem with the little icons that should appear next to the board title on the tab for each board. Instead I'm getting the default page icon on Firefox. Now, it'll work if I go directly to the board, but if I click on the board from the site it won't work.

97 Name: !WAHa.06x36 : 2007-12-27 17:07 ID:WJmZTIuz [Del]

>>90

That is not handled by Wakaba, but by CGI.pm. You'd have to hack or replace that somehow, but if you can't even get a temp directory working right on that server, chances are you're not going to have much luck with that either.

98 Name: Anonymous : 2007-12-27 19:55 ID:IPMxEGKM [Del]

>>90,97

$ perldoc CGI | tail -n +767 | head -n 13
The temporary directory is selected using the following algorithm:

1. if the current user (e.g. "nobody") has a directory named
"tmp" in its home directory, use that (Unix systems only).

2. if the environment variable TMPDIR exists, use the location
indicated.

3. Otherwise try the locations /usr/tmp, /var/tmp, C:\temp,
/tmp, /temp, ::Temporary Items, and \WWW_ROOT.

Each of these locations is checked that it is a directory and is
writable. If not, the algorithm tries the next choice.
$

so it should be as easy as making a directory that's writable by the script and then setting the TMPDIR environment variable.

99 Name: Jeremy : 2007-12-27 22:48 ID:GcUdrtKI [Del]

>>98 Where would I go about setting such a variable? In the wakaba script hopefully, because I do not have access to server settings as it is share hosting.

100 Name: Jeremy : 2007-12-27 22:52 ID:GcUdrtKI [Del]

>>97 sorry, forgot to say, the tmp directory that I set up for the oekaki works fine, which means the oekaki part of the wakaba script and the board itself function perfectly, the only thing that happens is that I can't post images directly. So to return to >>98 where would I go to set such a variable, sorry I am unfamiliar with perl to that extent.

This thread has been closed. You cannot post in this thread any longer.