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/

751 Name: Anonymous : 2010-01-13 02:57 ID:YGK7wmZV [Del]

i want to use kareha image mode, but every time i try to upload an image (example: 800x600px 37KB image) there are no thumbnail at main page and it said 'No thumbnail'

i only change file config.pl in 'ADMIN_PASS' and 'SECRET' the rest of config variable are still default.

help please

752 Name: Anonymous : 2010-01-14 14:57 ID:MbJQhzfJ [Del]

Software error:

"use" not allowed in expression at config.pl line 1, at end of line
syntax error at config.pl line 1, near "to use shift"
"use" not allowed in expression at config.pl line 12, at end of line
BEGIN not safe after errors--compilation aborted at config.pl line 13.
Compilation failed in require at wakaba.pl line 16.
BEGIN failed--compilation aborted at wakaba.pl line 16.

753 Name: !WAHa.06x36 : 2010-01-14 15:52 ID:Heaven [Del]

>>751

Imagemagick is not correctly installed.

>>752

You messed something up in config.pl

754 Name: Anonymous : 2010-01-14 23:06 ID:E1kHSg1H [Del]

>>750
Вакаба работает с русской кодировкой. Переименуй файл wakaba3.js в wakaba.js.

//Wakaba work with russian charset. Rename wakaba3.js in wakaba.js.

755 Name: anon : 2010-01-17 17:55 ID:xxS2mcmc [Del]

Отписался в платиновом треде

756 Name: samwise : 2010-01-22 03:37 ID:20REOGm5 [Del]

How do I access wakaba.pl via my webbrowser? it only wants to save/open it but I can't really figure out how it should create an .html.

757 Name: Anonymous : 2010-01-22 12:52 ID:O3yuxb2C [Del]

>>756

You're going to need to play around with it on the server side. That happened to me and I had to play around with apache.

758 Name: Anonymous : 2010-01-22 12:55 ID:O3yuxb2C [Del]

I installed wakaba and all. It created the html pages and everything seemed to be working until I tried to upload a picture.

It spat out this error:
"Software error:

CGI.pm: Server closed socket during multipart read (client aborted?)."

I haven't worked with apache2 a lot or most web host stuff before. Any ideas what's going on?

759 Name: !WAHa.06x36 : 2010-01-22 15:13 ID:Heaven [Del]

>>758

Maybe Apache is configured to block large uploads or something?

760 Name: Anonymous : 2010-01-22 16:24 ID:O3yuxb2C [Del]

>>759

Can't find anything but that doesn't mean there is. -

761 Name: Anonymous : 2010-01-25 11:51 ID:IVdAPTo8 [Del]

Woops, I intended to make my post here but for some reason made a new thread. That was a new and interesting brain fart. Anyways, my oekaki board was working perfectly fine for a while it seemed, but now every so often it's giving this:
Software error:
Can't read uploaded file at finish.pl line 85.For help, please send mail to the webmaster,
giving this error message and the time and date of the error.

Any ideas? Thanks!

762 Name: Anonymous : 2010-01-28 10:48 ID:VKYbR1Uv [Del]

I don't know how the data base of kareha is designed. Maybe it is impossible to do this: Is it possible to limit the file size of the files that a kareha message board creates to a specific value? (What is the smallest possible size?) Would this imply some restrictions to, for example, the length of threads? Thank you for your help.

763 Name: Spycker : 2010-01-28 11:48 ID:0livikiu [Del]

the admin and pass were defined in config.pl yet i cant install wakaba, any ideas?

764 Name: Zowayixx : 2010-01-28 14:35 ID:085N3y5+ [Del]

Hello, I'm having a rather annoying problem. Whenever I edit some things in my wakaba.html or index.html (whichever one is the HTML_SELF), all the data I added gets erased whenever I post or add a new picture. Is there any way to fix this?

765 Name: !WAHa.06x36 : 2010-01-29 06:42 ID:Heaven [Del]

>>764

Those files are autogenerated, so any changes will always be lost. To make actual changes, edit the templates or include files.

766 Name: Zowayixx : 2010-01-30 15:16 ID:085N3y5+ [Del]

>>765

Ah, thanks. I got the header, but where are the templates?

Thanks! ^^

767 Name: Anonymous : 2010-01-30 17:52 ID:yiyOAvk4 [Del]

I keep getting this:

Software error:

Can't locate config.pl in @INC (@INC contains: . C:/perl/lib C:/perl/site/lib) at E:\Domains\[url]\wwwroot\wakaba\wakaba.pl line 16.
BEGIN failed--compilation aborted at E:\Domains\[url]\wwwroot\wakaba\wakaba.pl line 16.

I don't understand what's wrong?

768 Post deleted by moderator.

769 Post deleted by moderator.

770 Post deleted by user.

771 Name: Anonymous : 2010-02-01 04:33 ID:J8i2SjIT [Del]

>>767
>>767
Change .pl scripts header, path to you compliler with .exe
#!\xampp\perl\bin\perl.exe
And add wakaba directory to mod_cg and %PATH%

772 Name: Anonymous : 2010-02-01 04:36 ID:J8i2SjIT [Del]

>>766
Edit futaba_style.pl

773 Post deleted by moderator.

774 Name: Anonymous : 2010-02-01 14:12 ID:yiyOAvk4 [Del]

>>771
uhm, where's that at? fuck I don't even know if I can edit that on this host.

775 Post deleted by user.

776 Name: Anonymous : 2010-02-02 17:06 ID:GTRuts9c [Del]

How can i create new boards and edit main page? I configured config.pl etc. and i See one, deafult board when i run /wakaba/ folder. How to make another boards /a/ /b/ /c/ etc.? In admin panel there is only few options...

777 Name: !WAHa.06x36 : 2010-02-02 17:34 ID:Heaven [Del]

>>776

That's what you get. You do any customizing like that by hand. Install multiple copies, edit templates and includes, and so on.

778 Post deleted by moderator.

779 Name: Anonymous : 2010-02-04 00:42 ID:GTRuts9c [Del]

okej, thx. What's the diffrence between kareha and wakaba. Which one is better? Why should i choose wakaba/kareha? Why shouldnt i choose serissa or kusaba?

780 Post deleted by moderator.

781 Post deleted by moderator.

782 Post deleted by moderator.

783 Post deleted by moderator.

784 Post deleted by moderator.

785 Post deleted by user.

786 Name: Anonymous : 2010-02-21 15:47 ID:Heaven [Del]

787 Name: Anonymous : 2010-02-21 15:48 ID:hgp/h576 [Del]

>>786
i meant to bump this...

788 Post deleted by moderator.

789 Name: Anonymous : 2010-03-12 05:31 ID:RMghOGCf [Del]

Recently there are lots of porn poster bots on my board, running for the site hot.gazo.us so they can hotlink images off of the server. I'd rather not disable hotlinking, and am not sure if disabling just that site from hotlinking us would stop it for now. Is there a way to block bots by password? They seem to be using the same one even across IPs.

790 Name: Anon : 2010-03-25 15:08 ID:VqC5r0op [Del]

How do I include the space used (Listed in the name page) under the main wakaba page. On the front page I want to have a stats section on number of posts and total size used?

791 Post deleted by user.

792 Name: Pedohater : 2010-03-26 05:24 ID:vaNfkHyY [Del]

How about removing the CP from guns category?!?!?!

793 Name: weetabix : 2010-03-28 08:21 ID:3dQO8A+A [Del]

Hi guys! Just wanna ask a noob's question:
What kind of SQL database and in what collation should I make for Wakaba/Kareha?

794 Name: Anonymous : 2010-03-28 13:05 ID:Heaven [Del]

>>790
I imagine you would have to code that sort of thing yourself.

>>792
You are very lost. http://iiichan.net/dis/error/

>>793
Read config.pl -- it tells you how to set up Wakaba with either MySQL or SQLite. You don't have to make any of the tables. Kareha doesn't need a database.

795 Name: Anonymous : 2010-03-31 18:17 ID:mnrbeJWf [Del]

How can I disable auto-linking in Kareha...?

796 Name: Anonymous : 2010-04-01 00:50 ID:mnrbeJWf [Del]

>>795
Actually, scratch that. I'd like to know if there is some way to have external links open in a new window when you click on them.

797 Name: Anonymous : 2010-04-01 19:41 ID:XcBctTa3 [Del]

hey

798 Name: Anonymous : 2010-04-04 05:39 ID:Heaven [Del]

>>796
Speaking as a user, if I want to have a link open in another window, I can do it myself, with right click -> open in new window. If I want it to open in the same window, I just click it. Making all pages open in a new window is just annoying, and makes me stop visiting that site.

799 Name: Anonymous : 2010-04-04 13:04 ID:mnrbeJWf [Del]

>>798
That's true, and I do that too. But the layout of my site puts the textboard inside of a frame, so... :T

800 Name: Anonymous : 2010-04-04 19:19 ID:Heaven [Del]

>>799

<a target="_top" ...>

801 Name: Anonymous : 2010-04-04 20:35 ID:mnrbeJWf [Del]

>>800
Thank you. Is there a way to apply this to all external links automatically, though? Other than asking everybody to do that when they post.

Sorry, I'm not very clear x__x;

802 Name: Anonymous : 2010-04-05 03:55 ID:Heaven [Del]

>>801
Yes, edit the source. Should be obvious enough, find where it writes links and change it.

803 Name: Codecub : 2010-04-06 13:23 ID:6xVj0PVP (Image: 942x703 png, 337 kb) [Del]

src/1270585400974.png: 942x703, 337 kb

hey im creating a imageboard so far ive done the front page but i installed wakaba properly and i cant figure out how do iadd seperate pages for each board its so confusing and i wanna add a recent images /posts thing like on 4chan
thx

804 Name: Anonymous : 2010-04-08 23:58 ID:Heaven [Del]

>>803
Can't you idiots come up with something new and interesting instead of blatantly copying 4chan and its frontpage all the damn time?

805 Name: Anonymous : 2010-04-10 19:02 ID:9NZ+PXOK [Del]

I am having trouble running kareha.pl from my web browser. It only displays the source code. All folders and files are CHMOD to 755. I verified that I can run perl scripts with this simple code the user >>141 offered before:

#!/usr/bin/perl
print "Content-Type: text/plain\n\n";
print "it works";

Please someone help me create the HTML pages!

806 Name: Anonymous : 2010-04-14 08:52 ID:cVlpsD0U [Del]

Here is my collection of errors which seem to appear randomly:
-I get a blank page and nothing happens
-I get the "BAREWORD ... not allowed while "strict subs" in use"-Error.
-"Attempt to reload config.pl aborted. Compilation failed in require at /opt/lampp/htdocs/altercon.net/cgi-bin/wakaba/wakaba.pl line 16. BEGIN failed--compilation aborted at /opt/lampp/htdocs/altercon.net/cgi-bin/wakaba/wakaba.pl line 16. "
-The "Global symbol "$parent_res" requires explicit package name"-Error

I run the script in my cgi-bin.
the mentioned perl test works.

What i tried:
First, i got these errors from a fresh install.
Used wget to obtain the zip
used unzip to unzip it
used emacs to edit the config.pl
used chmod 755 wakaba.pl captcha.pl

I also tried setting the wakaba directory to 755 and 777

Horrible

807 Name: !WAHa.06x36 : 2010-04-14 09:13 ID:Heaven [Del]

>>806

That sounds mostly like some kind of horribly broken server.

808 Post deleted by user.

809 Name: Anon : 2010-04-16 12:45 ID:8GEBsYSr [Del]

I'm getting this error:

[Fri Apr 16 20:38:32 2010] [error] [client MY IP] script '/var/www/vhosts/mysite.com/subdomains/mysite/httpdocs/url_handler.php' not found or unable to stat

810 Name: Anonymous : 2010-04-16 20:07 ID:Heaven [Del]

>>809
That has nothing to do with wakaba or kareha. Figure out what piece of software uses url_handler.php, if any. Hell, that might just be some idiot who's trying to hit a file that doesn't exist.

811 Name: Anonymous : 2010-04-17 06:27 ID:AXmtZR5h [Del]

Well, when I try and visit my site with wakaba I get a internal server error, etc... and I get this in access logs:

[Sat Apr 17 13:13:20 2010] [error] Can't locate config.pl in @INC (@INC contains: . /usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.7/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.6/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl/5.8.7 /usr/lib/perl5/site_perl/5.8.6 /usr/lib/perl5/site_perl/5.8.5 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.8/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.7/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.6/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.5/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl/5.8.7 /usr/lib/perl5/vendor_perl/5.8.6 /usr/lib/perl5/vendor_perl/5.8.5 /usr/lib/perl5/vendor_perl /usr/lib/perl5/5.8.8/i386-linux-thread-multi /usr/lib/perl5/5.8.8 /etc/httpd) at /var/www/vhosts/mysite.com/httpdocs/wakaba.pl line 16.\nBEGIN failed--compilation aorted

812 Name: : 2010-04-25 05:47 ID:Heaven [Del]

You really should catch those right to left-overrides.

813 Name: Anonymous : 2010-04-27 06:57 ID:Heaven [Del]

>>812
Awwww, why? It's entertaining.

814 Name: Anonymous : 2010-05-08 18:08 ID:5uAS5BhN [Del]

There a way to post as an admin?

It's a nub question, but if there's a way, I'd like to know.

815 Name: Anonymous : 2010-05-09 03:46 ID:Jf9eB6qB [Del]

>>814
Kareha supports capcodes out-of-the-box.

In Wakaba you have the opportunity to post with HTML. If you want capcodes, you'll have to create them yourself. It's not really that hard, even I managed it and I suck at programming.

816 Name: Anonymous : 2010-05-10 11:02 ID:3Ggr/qz0 [Del]

i dont have any thumbnails, why is that?

817 Name: Anonymous : 2010-05-11 04:05 ID:KOqayyLq [Del]

how do i delete [burichan] [futaba] etc in admin bar? when i remove it from my index.html it's ok for a while and then, after f5ing board, it comes back. whats going on?

818 Name: Anonymous : 2010-05-11 05:16 ID:Heaven [Del]

>>817
Edit your templates.pl. The html files are of course generated by wakaba.

819 Name: Anonymous : 2010-05-11 15:34 ID:2rP76EC+ [Del]

An odd question on Wakaba, but i really need to know:
How to configure a board this way: replying to any thread will never make it go up, no matter it's position or how old or new it is?
Thanks a lot.

820 Name: Anonymous : 2010-05-11 15:37 ID:2rP76EC+ [Del]

>>819
I mean, the threads must always remain in order of they're creation.

821 Name: Anonymous : 2010-05-13 07:57 ID:Heaven [Del]

>>819-820
just comment out (or remove) this section:

if($parent) # bumping
{
# check for sage, or too many replies
unless($email=~/sage/i or sage_count($parent_res)>MAX_RES)
{
$sth=$dbh->prepare("UPDATE ".SQL_TABLE." SET lasthit=$time WHERE num=? OR parent=?;") or make_error(S_SQLFAIL);
$sth->execute($parent,$parent) or make_error(S_SQLFAIL);
}
}

or change the first line there to if(!NEVER_BUMP && $parent) # bumping and put eval "use constant NEVER_BUMP => 0" unless (defined &NEVER_BUMP); in config_defaults.pl and use constant NEVER_BUMP => 1; in config.pl.

822 Name: Anonymous : 2010-05-13 11:29 ID:vNmlQBsR (Image: 705x769 jpg, 69 kb) [Del]

src/1273775394252.jpg: 705x769, 69 kb

>>821
Thanks man.

823 Name: !WAHa.06x36 : 2010-05-13 11:47 ID:Heaven [Del]

>>821-822

Why not just read the config and/or the code you commented out, and set MAX_RES to 0?

824 Name: Anonymous : 2010-05-13 12:24 ID:Heaven [Del]

>>823
why bother checking $parent and $email=~/sage/i if you're not going to bump the thread anyway?

825 Name: Anonymous : 2010-05-13 13:43 ID:vNmlQBsR [Del]

How to disable Email field?

826 Name: Anonymous : 2010-05-13 14:39 ID:Heaven [Del]

>>825
FORCED_ANONYMOUS

827 Name: Anonymous : 2010-05-13 15:28 ID:vNmlQBsR [Del]

>>826
This also removes the Name field.
I only want to remove Email.

828 Post deleted by moderator.

829 Name: Anonymous : 2010-05-24 12:23 ID:e1RtSeQL [Del]

Ok, i searched these two threads, but could not find what's the problem.

I made my own server (ubuntu is the OS), on which i set up apache2, mySql, phpmyadmin.
In phpmyadmin, i made a database testChan, for which i didn't specify any tables (when tried to manually create tables, i got myself a list of options for the table, and i didn't know what to set).

I edited config.pl to set passwords, salt, and SQL options ->
i set SQL options as default, set passwords and users, and set SQL_DBI_SOURCE as DBI:mysql:database=testChan;host=localhost

Ran perl wakaba.pl in commandline (got some problems in firefox perl.

Got the same errors as post no. 113 in the first support thread, but wakaba.html got created.
http://localhost/wakaba.html, and i see a page! But, uploading anything == nothing is done. It doesn't work.

Rerun perl wakaba.pl, got only 303 go west, and the page stays the same.

I'm pretty much beginner to the whole SQL thingy, so please, bear with me, and tell me what shall i troubleshoot first, as my knowledge is poor enough to make me not know where the problem lies.

830 Name: !WAHa.06x36 : 2010-05-24 15:20 ID:Heaven [Del]

> Ran perl wakaba.pl in commandline

Don't do that. It breaks things.

831 Name: Anonymous : 2010-05-25 13:15 ID:gby7m83e [Del]

>>830
Temporarily I don't have internet connection on my server to redownload perl to make it run under firefox (and, even if, how do I do that under Ubuntu?), but I will try it.

In the meantime, two questions. First has been asked already in my response. Second is, what's the difference between commandline and firefox in terms of perl script? Why does 'commandline' perl break things? Shouldn't it be the same thing?

832 Name: Anonymous : 2010-05-25 17:12 ID:Heaven [Del]

>>831
On the command line, none of the CGI environment is defined, and the file permissions for any of the cached HTML files will be incorrect.

Regarding Firefox and Ubuntu: that completely doesn't matter. Just access http://www.whatevercrapchan.com/yourboard/wakaba.pl with any web browser on any operating system, and if it doesn't build the files and send you to the index, you screwed something up (or you have a terrible web host).

833 Name: Anonymous : 2010-05-25 17:15 ID:Heaven [Del]

>>831
perl runs on the server. it doesn't run in firefox. running it from the command line doesn't set all the environment variables to tell it things like where the script is.

834 Name: Anonymous : 2010-05-26 14:28 ID:HYTi3n6n [Del]

>>832
I am my own webhost, and that means that I screwed up.

So, currently, i made sude libapache2-mod-perl2 is installed, and I ran http://localhost/testchan/wakaba.pl

All it did was a prompt to download wakaba.pl!

So, here's the problem. Googling tells me nothing, nothing at all.
Any help, please?

835 Name: Anonymous : 2010-05-26 14:47 ID:HYTi3n6n [Del]

Ok, found it. ALMOST, that is
Added CGI to apache2.conf

But then...
403 forbidden error. 777 or 755 to the whole of wakaba folder with -R. There are some questions about that in that thread, however, none of them are anwsered. Merely ignored.

836 Name: !WAHa.06x36 : 2010-05-26 16:27 ID:Heaven [Del]

>>834

One more time: Do not use mod_perl.

837 Name: Anonymous : 2010-05-27 00:23 ID:hnFKrfXq [Del]

>>836
What should I use, then? All tutorials that I've found on google about apache & perl relied on mod_perl to execute these scripts.
Without that and CGI added in apache2.conf all that happened when running via Firefox was a file download prompt.

Your wiki & install documentation is somewhat poor on that matter, unless I'm blind || don't know where to look for :(

838 Name: Anonymous : 2010-05-27 08:59 ID:Heaven [Del]

839 Name: Anonymous : 2010-06-15 14:28 ID:oDRdPdM6 [Del]

hi all
I'm totally noob and just installed Wakaba on my host. How can I make many boards on it, instead of a single one?
And is there a way I can add an age-rating for images? (I've seen this on few imageboards, it's like 15+, 18+ marks when uploading images)

840 Name: Anonymous : 2010-06-15 19:31 ID:Heaven [Del]

>>839

  • by installing it more than once.
  • you would have to write code for that. it is possible, and that's an easy task if you know how to program.

841 Name: Anonymous : 2010-06-29 12:42 ID:agHEGDJF [Del]

How to make user remain in thread after replying, not redirected to the main page?

842 Name: Anonymous : 2010-07-01 10:17 ID:Heaven [Del]

>>841
By adding the feature yourself.
Look for where it sends a redirect (search for 303), and change that line.

843 Name: Anonymous : 2010-07-05 06:56 ID:gpkxzm5C [Del]

>test

844 Name: Anonymous : 2010-07-06 05:34 ID:Heaven [Del]

>>841
There are several patches for it posted on this board.

845 Name: Anonymous : 2010-07-06 06:32 ID:DdfYk4Ym [Del]

>>844
where can i find it?

846 Name: Anonymous : 2010-07-06 17:19 ID:Heaven [Del]

>>845
There's one in the "Wakaba/Kareha Patches" thread. Click All Threads at the top of this page.

That should get you started. Browse around.

847 Name: Anonymous : 2010-07-07 20:27 ID:dQf5hF71 [Del]

My host is really stupid and does not allow profanity. How would I go about installing a wordfilter? Thanks :3

848 Post deleted by moderator.

849 Name: Anonymous : 2010-07-08 07:39 ID:Heaven [Del]

>>847
Get a less stupid host.

850 Name: Anonymous : 2010-07-11 00:59 ID:Heaven [Del]

>>847
make a list of everything that is profanity (without including anything that isn't profanity).
once you've completed that impossible task, turning it into a regex and adding a die 'no profanity, please.' if $comment =~ /.../; line is trivial.

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