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/
So, I got wakaba up and running, except for a couple of problems:
Any ideas on why these two things are happening?
I receive "SQL connection failure" message when running wakaba.pl script. What I doing wrong?
wakaba.sql database is already created and config.pl is changed:
use constant SQL_DBI_SOURCE => 'DBI:mysql:database=wakaba.sql;host=localhost';
I'm Running Kareha on my test server at home. Now that I've gotten over the quirks of Ubuntu (I hope...), it seems to work fine, except that bans don't have any effect. They show up in .htaccess, but the matching IPs can still read and post. Am I missing something painfully obvious?
Aaaaand what the hey. Right after I posted that it started working properly. Color me confused.
I've installed Kareha but I can't see anywhere to log into with Manage as it says on the documentation.
Any help would be appreciated.
Thanks.
The docs are a bit out of date; now admin.pl is where the management takes place. There's no link to it, so just type it in.
Thanks for the response.
I tried that but it says:
Can't locate strings_en.pl in @INC (@INC contains: . /etc/perl /usr/local/lib/perl/5.8.4 /usr/local/share/perl/5.8.4 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.8 /usr/share/perl/5.8 /usr/local/lib/site_perl /usr/local/lib/perl/5.8.3 /usr/local/share/perl/5.8.3 /usr/local/lib/perl/5.8.2 /usr/local/share/perl/5.8.2 /usr/local/lib/perl/5.8.1 /usr/local/share/perl/5.8.1 /usr/local/lib/perl/5.8.0 /usr/local/share/perl/5.8.0) at captcha.pl line 13, <FILE> line 4.
BEGIN failed--compilation aborted at captcha.pl line 13, <FILE> line 4.
Compilation failed in require at kareha.pl line 15, <FILE> line 4.
BEGIN failed--compilation aborted at kareha.pl line 15, <FILE> line 4.
Compilation failed in require at /home/www/admin.pl line 13, <FILE> line 4.
BEGIN failed--compilation aborted at /home/www/admin.pl line 13, <FILE> line 4.
Everything else seems to work fine.
This has probably been answered already, but I'm not sure what to search for, and reading the whole ~1200 posts in the support threads is a bit daunting.
How do you add a board description? Either below the title (http://orochi.iiichan.net/senti/ is the first example I found) or in the rule list below the message box.
I know Wakaba is designed to handle it, but is there a way to get Kareha to do flood detection and control?
How do I use the german strings instead of the english ones? I want a German board.
where do i have to leave the spainter.jar file for oekaki support?
Just in the base directory along with the rest of the files.
I'm using Yahoo! Small Business webhosting and what I keep getting after hours of trial and error is:
>Software error:
syntax error at config.pl line 173, near "1"
Compilation failed in require at /ichi/kareha.pl line 12.
BEGIN failed--compilation aborted at /ichi/kareha.pl line 12.<
Here is the line of config.pl and surrounding lines,
> 170 #);
171
172
173 1; <
And here is the line of kareha.pl, and surrounding lines,
>11 use lib '.';
12 BEGIN { require 'config.pl'; }
13 BEGIN { require 'config_defaults.pl'; } <
Please help me out.
Thanks,
Mr. Anon
I have been looking over questions and answers and I still have not found out how to make Threads. How might I accomplish this?
>>393
You won't find it because it's a terrible question.
Click "New Thread" under the thread list at the top of the page, fill in a Subject and a Comment, and press the button.
I'm sorry. I just realized that I'm confusing threads with Boards. How would I make a board that I can directly link from my main page that won't get overwritten when I post?
>>398 what? Just copy the entire directly of one board to another and change the config.p information (MySQL most importantly; just change the table names).
Hmm. Okay. I'll try that. Thank you.
I'm trying to post using "Manager Mode" and keep getting this...
Anti-spam filters triggered.
If you are not a spammer, you are probably accidentially trying to use an URL that is listed in the spam file. Try editing your post to remove it. Sorry for any inconvenience.
Known bug, sorry. Check earlier in the thread for workarounds.
I've just setup my first Wakaba and Kareha boards. I was wondering if there was a better way of citing/quoting in Kareha (like in Wakaba, where the cited link highlights that post rather than taking you to a new page).
http://wakaba.c3.cx/soc/kareha.pl/1098886772/
XML Parsing Error: mismatched tag. Expected: </p>.
Location: http://wakaba.c3.cx/soc/kareha.pl/1098886772/
Line Number 76, Column 404:
im using firefox2
Yes, old bug I for some reason haven't fixed on this site. Fixed it, but the pages need some cleaning which I'll try to get around to later. Nag me if I forget.
Software Error
"use" not allowed in expression at config.pl line 4, at end of line
syntax error at config.pl line 4, near "System config
use constant "
BEGIN not safe after errors--compilation aborted at config.pl line 5.
Compilation failed in require at kareha.pl line 12.
BEGIN failed--compilation aborted at kareha.pl line 12.
Heres an example
System config
use constant ADMIN_PASS => 'XXXXXXXXXXXXXXX';
use constant SECRET => 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX';
use constant CAPPED_TRIPS => 'XXXXXXXXXXXX =>' 'XXXXXX'=>' <em>cap</em>');
also are there any characters on the standard windows keyboard I should not be using in CAPPED_TRIPS?... because I think I used them all.
That CAPPED_TRIPS line is completely wrong. Look at the example again.
>>409
I changed it to the default setting, just to see if it worked. Now its giving me
"use" not allowed in expression at config.pl line 2, at end of line
syntax error at config.pl line 2, near "System config
use constant "
BEGIN not safe after errors--compilation aborted at config.pl line 3.
Compilation failed in require at kareha.pl line 12.
BEGIN failed--compilation aborted at kareha.pl line 12.
>>410
it looks like you removed the #
from the # System config
comment line...
yeah thanks, I forgot that pseudo-code does need to be commented.
Is there any way to add moderators without giving them the admin password? Talking about kareha here.
That's like asking if there's a way to add moderators without adding moderators.
Hi.
How can I modify wakaba to make it load index.html of the install's directory instead of reloading the page itself (wakaba.html)?
I need this because my server is slow and permissions are not set propely after a post before the page is requested (error, etc), so I made index.html which redirects to wakaba.html after a second in each wakaba directory.
>>415
In config.pl, change:
#use constant HTML_SELF => 'wakaba.html';
to:
use constant HTML_SELF => 'index.html';
Hi!
I got an attack, where the "hacker" posted "Obvius Troll is Obvius" serveral times on my boards.
What can I do?
How do I prevent same IP from posting several times in a short period of time?
Every time I try to post a manager's post, I get hit with the anti-spam, even if I don't have a url in my comment. What's going on, and can I fix it?
Thanks.
Known bug, see earlier in this thread for workarounds.
SQL connection failure
D:
Just set up my new chan. How to fix?
>>424
http://command-q.org/wakaba/wakaba.pl is my imageboard.
I just installed Wakaba in my hosting, and it works OK. Question: When I reply to a thread, posts after the 1st do not have a Reply link; what should I do to enable it?
http://resourceroom.org/SSN/wakaba.pl
What happened there?
<<447
Never mind, that was a dumb question.
In case anyone asks the same thing, just click the post number ¬¬
I'm using Kareha.
I want to reload captcha image on click. My idea is to delete the captchakey cookie and to rerequest captcha.pl. So, I can delete to cookie using javascript
var cookie_date = new Date ( ); // current date & time
cookie_date.setTime ( cookie_date.getTime() - 1 );
document.cookie = "captchakey=; expires=" + cookie_date.toGMTString();
Now, given, that kareha captchakey generation mechanism is based on the REMOTE_ADDR and time() in minutes (string 61 in captcha.pl), if I rerequest the captcha within one minute, I'll get the same image.
However, when a user successfully post a message, the captcha is generated randomly (string 430 in kareha.pl).
So, I could follow this way, but before doing this I want to understand, what was your reasons for such design?
how does a script for rotating title images look like? just a short example please...
Don't post if you have nothing to say. Your question is not so important that it absolutely has to be at the top of the board at all times.
>>432
Chrissake, this is something you could have answered yourself in 30 seconds if you did some google searching.
<?php
$a = glob("*.{gif,jpg,png}", GLOB_BRACE);
header("Location:".$a[array_rand($a)]);
I got my imageboard up, but it only allowed me to post the first post with picture only. Every time I try to attach a picture to another post or reply, I get that page that reads, "Duplicate file entry detected" even though it's a completely different picture.
Anybody know why this is; what causes this problem and/or how I can fix it?
Thanks
How the hell do I post with an admin tripcode? Can't seem to find this anywhere.
>>437
In Kareha, you can set up capcodes with specified tripcodes in the config. In Wakaba you can't.
After I went to a page (aaa.pl, I believe) I keep getting 403's just about everywhere... Could you... erm... fix this please? I can't access anything but /sup/ and /soc/.
Not unless I have your IP address.
Hey there
I noticed the preview post function is working perfectly here, so I guess I'm doing something wrong. I've set up kareha message board and everything works perfect... except for the preview post button which gives me some error
I'm uploading an image to let you see.
>>442
Alright, I just realized something, Kareha throws out an error for preview post when you are making a NEW thread, as opposed to previewing a reply post.
The same seems to be the case here. Some sort of bug?
It seems to work fine for me in Safari, even for new threads. What browser?
I am having trouble making wakaba go to a new page. No matter how many images and new threads I create, it will not create a page 2. I messed with the settings in config.pl but they don't seem to do anything:
use constant IMAGES_PER_PAGE => 5; # Images per page
use constant REPLIES_PER_THREAD => 5; # Replies shown
Also, would anyone know how to make a new board in wakaba?
Thanks
>>447 Sounds, once again, like a folder permissions problem.
To make a new board, create a new subfolder and install another copy of wakaba.
Also remember that you have to rebuild caches after any change to the settings, if they "don't seem to do anything".
No ADMIN_PASS or NUKE_PASS defined in the configuration at config_defaults.pl line 8.
BEGIN failed--compilation aborted at config_defaults.pl line 126.
Compilation failed in require at wakaba.pl line 17.
BEGIN failed--compilation aborted at wakaba.pl line 17.
I am getting that page when I attempt to install Wakaba. Can someone help me out?
The config_defaults.pl file says when the message No ADMIN_PASS or NUKE_PASS defined in the configuration appears, it means the config.pl file is incomplete. I checked over the config.pl file and everything was completed.
Wakaba installs are completely independent, and handle one single board each. Anything beyond that is up to you to arrange however you want it.
>>453
Thanks a lot, it worked.
Does anyone know how to get rid of the captcha? I tried editing something and it gave me some error lol.
>>456
Yes, you set ENABLE_CAPTCHA to 0. It really isn't that hard to figure out if you actually read the file and use your head. Seriously, are we supposed to handhold you through your entire installation and configuration?
I've been trying to figure it out, but I do believe this is beyond my skills.
As you can see, the top is Firefox and below is Opera. The "choose" or "browse" button does not look the way it's supposed as per CSS. Is this a matter that can be remedied or is that just a browser issue that I cannot help?
I've got a problem with Kareha. I cannot use the delete file function. It just does not work. I want to delete an image without deleting a person's post but nothing happens, the picture is still there. I've tried all the browsers, that doesn't seem to be the problem. It doesn't even give me any errors, I click on 'delete file' and it does something and then it reloads the admin page but the image I wanted to delete is still there...
>>460
Oh, also I am using kareha MESSAGE board with image uploads enabled.
>>459
For the most part, you cannot edit file input via css.
Am I a dumbass or is there no way to sticky or lock threads under Wakaba? I don't see any such option in the management panel.
>>464
Was going to make a rules sticky, because most people are dumb and don't actually read the rules.
I have a problem with encoding in Wakaba. My .htacess file is configured for using utf-8, the same about global encoding settings of Wakaba and DB encodings. I only use cp1251 in my strings file with "use encoding 'cp1251'" and "no encoding" uncommented.
That all works fine, but anything added into database turns into crappy junk. I'm lame so I have no clue of where the error could be.
P.S. sorry for my bad English.
>>467
Thanks, Anon. I've converted strings file into utf-8 and now it seems to work perfectly.
Also, happy New Year everyone!
>>465
you really think people who don't read the rules are going to read them if you move the rules section down the page a little bit?
>>469
Good point.
This is a suggestion regarding security. I assume this is the correct place to post it; otherwise, I can start a new topic.
Please implement proper file content filtering in Wakaba/Kareha. As of right now, Wakaba filters out forbidden file types through an array of forbidden extensions, but this is not necessarily sufficient. For example, a PHP file may be uploaded with extension ".php.7z." If a board allows the 7z extension and if the file is not renamed (as is default in the case of Wakaba), an Apache server may in fact still execute it, resulting in the execution of malicious code. This has actually caused a significant disturbance in a site with which I help out. A simple two-line patch that relies on the UNIX file() utility has been written to address this for the moment.