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/

541 Name: !WAHa.06x36 : 2009-03-18 16:55 ID:Heaven [Del]

>>540

What if you go to admin.pl?task=admin and rebuild it?

542 Name: Anonymous : 2009-03-18 17:19 ID:rD4TCTiC [Del]

>>541 admin.pl isn't in the zip file I downloaded. I can still rebuild from wakaba.pl using wakaba.pl?task=admin (or something close), but the problem persists.

Something interesting I noticed. If I use permissions 755 for folders (res, in particular), line 378 (inside print_page) goes crazy and throws errors saying a temp file can't be created. It works only if I chmod res to 777.

So with chmod 777 to res, I get wakaba.html not found.
With chmod 755 to res, I get Error: Can not write to directory.

543 Name: Anonymous : 2009-03-18 17:31 ID:rD4TCTiC [Del]

>>541 Issue resolved:
Had to mod /var/www to 777. Icky solution, but maybe my live environment will be better configured than my bevelopment environment. Thank you for your help.

544 Name: Anonymous : 2009-03-20 23:21 ID:h8ysqMSD [Del]

I'm wondering why Wakaba doesn't automatically truncate threads beyond a certain point, if it does,, there do I find this option
thanks

545 Name: Anonymous : 2009-03-21 16:54 ID:Heaven [Del]

I have a quick question, does posting (running kareha.pl) cause that script to rebuild all the pages?

546 Name: !WAHa.06x36 : 2009-03-23 03:23 ID:Qldo6KoJ [Del]

>>544

Truncate how?

>>545

Only if index.html does not exist. Also, do not run it from a command line, that will create broken pages.

547 Name: Anonymous : 2009-03-23 04:04 ID:h8ysqMSD [Del]

Hi, I love your scripts ;)
truncate as in, now I have 31 pages of threads after I was testing it..
and I want it to only show say 150 threads at any one time ;)
using Wakaba

Anyway, just wondering if you're going to release your notes.pl script, thanks!

548 Name: Anonymous : 2009-03-23 04:07 ID:h8ysqMSD [Del]

oops, I found the notes.pl script :)
I thought it was just in indefinite testing, sorry

thanks

549 Name: Anonymous : 2009-03-23 07:11 ID:hwEtxFA7 [Del]

How do you get rid of the bee? I cant seem to find it in any of the .pl files. Is there something i comment out to stop embedding of files?

550 Name: Anonymous : 2009-03-23 19:55 ID:Heaven [Del]

> How do you get rid of the bee? I cant seem to find it in any of the .pl files.

remove it from include/rules.html. it's not part of kareha.
people who have the admin password for your board keep adding it through the admin interface.

> Is there something i comment out to stop embedding of files?

yes. fix your php script so people can't inject perl code (so they can't just get the password again), and then change the admin password for your board.

551 Name: Anonymous : 2009-03-24 05:09 ID:Heaven [Del]

>>550
Hm... helpful advice. I would have just recommended getting off of the internet altogether.

552 Name: reaven : 2009-03-24 10:53 ID:0hVTDOzO [Del]

The thing is that it just shows the code on the browser, i think i have properly configured the httpd.config file, and yes i do have perl and i have a correct hashbang. Im using xampp on windows and i dont know what to do, any ideas ?

553 Name: reaven : 2009-03-24 10:56 ID:0hVTDOzO [Del]

>>552
Ops i forgot the beginning:
Apache wont execute wakaba.pl

554 Name: Anonymous : 2009-03-24 20:42 ID:Heaven [Del]

555 Name: !WAHa.06x36 : 2009-03-25 06:06 ID:Heaven [Del]

>>547

Read through config.pl to find the various options for how threads are deleted. By default it happens by number of posts, not threads.

>>552

If code does not run, you have not properly configured the httpd.config file. Beyond that, it's not like we know how your server is set up. You really need to figure out that part yourself. Also, xampp is known to cause all kinds of problems.

556 Name: reaven : 2009-03-25 06:07 ID:0hVTDOzO [Del]

>>554
It works with mod-perl activated, but with that i get this error with wakaba.pl:

[Wed Mar 25 14:06:30 2009] [error] Can't locate config.pl in @INC (@INC contains: . C:/xampp/perl/site/lib/ C:/xampp/perl/lib C:/xampp/perl/site/lib C:/xampp/apache) at C:/xampp/htdocs/wakaba/wakaba.pl line 16.\nBEGIN failed--compilation aborted at C:/xampp/htdocs/wakaba/wakaba.pl line 16.\n

Internal Server error 500

557 Name: reaven : 2009-03-25 07:17 ID:0hVTDOzO [Del]

559 Name: Anonymous : 2009-03-26 14:36 ID:stUev05v [Del]

Hi, I've got a problem with Oekaki.
I'm using Shi Painter, and everything is OK except one thing: after clicking upload in painting window it shows me a preview in a reply form, and in this preview picture has some constant name. So, my browser saves this picture to cash and next time, when I draw other picture, it shows me the previous one.
Thank you, and sorry for my english.

560 Name: !WAHa.06x36 : 2009-03-30 09:17 ID:Heaven [Del]

>>559

Configure Apache to send no-cache headers for all files in tmp/.

561 Name: Anonymous : 2009-04-01 03:46 ID:H8w5qzS0 [Del]

>>560
Hm... I tried:
header("Cache-Control: no-cache, must-revalidate");
header("Expires: Sat, 26 Jul 1997 05:00:00 GMT");
It didn't work.
What am I doing wrong?

562 Name: !WAHa.06x36 : 2009-04-01 04:23 ID:Heaven [Del]

>>561

That's PHP code.

Look at example.htaccess.

563 Name: Anonymous : 2009-04-01 08:15 ID:Bcll3BAZ [Del]

>>562
In my .htaccess:
<IfModule mod_headers.c>
<Files *.html>
Header add Expires "Mon, 26 Jul 1997 05:00:00 GMT"
Header add Pragma "no-cache"
Header add Cache-Control "max-age=0; must-revalidate; no-cache"
Header unset Vary
</Files>
</IfModule>
Still don't work.

564 Name: Anonymous : 2009-04-01 12:55 ID:Heaven [Del]

>>563
Check your page with wget -S http://blahblah/ or something such as Firebug to see if the headers are really being sent. Probably you don't have mod_headers enabled.

565 Name: Anonymous : 2009-04-01 13:05 ID:KHdhSJOI [Del]

Well, all of a sudden my wakaba install is giving me this error:

Software error:

Malformed UTF-8 character (fatal) at wakautils.pl line 447, <FILE> line 3.

Line 447 is:

    $str=~s!([^\w/._\-])!"%".sprintf("%02x",ord $1)!sge;

which is part of:
sub clean_path($)
{

    my ($str)=@_;
$str=~s!([^\w/._\-])!"%".sprintf("%02x",ord $1)!sge;
return $str;

}

We've edited parts of our script and it's been working just fine for us for quite some time... this is a quite strange error and I'm hoping someone has a clue about what could be causing it. It happens when anyone tries to post or even when I try to rebuild caches. I'm assuming it will happen with anything that calls wakautils.pl.

566 Name: !WAHa.06x36 : 2009-04-02 08:04 ID:K4vOYfq0 [Del]

>>565

Probably some kind of malformed UTF-8 in a filename or something similar.

567 Name: !WAHa.06x36 : 2009-04-02 08:05 ID:K4vOYfq0 [Del]

>>563

You are sending those headers only for html files. Note the <Files *.html>.

568 Name: Anonymous : 2009-04-06 09:56 ID:rm0Z/WaZ [Del]

Is there any option that allows Kareha threads to be numbered like that of Wakaba?

569 Name: !WAHa.06x36 : 2009-04-06 12:40 ID:Heaven [Del]

570 Name: Anonymous : 2009-04-07 05:00 ID:+Ut0XUuI [Del]

Hi. when i'm trying to run wakaba.pl i get a 403 error.
permissions are set to 775.

571 Name: Anonymous : 2009-04-09 00:41 ID:xP0VgDNN [Del]

I'd like to put google analytics in BBS system
Where should I put the code?

572 Name: 571 : 2009-04-09 00:41 ID:xP0VgDNN [Del]

Sorry the bbs is Kareha

573 Name: Anonymous : 2009-04-09 17:47 ID:Heaven [Del]

>>571-572
look in the include folder.

574 Name: Link !cCkIu6lpQI : 2009-04-12 21:59 ID:dB8JeauC [Del]

Sorry for sounding like a n00b, but how do I change the time zone settings? Currently it's five hours past my time zone.

575 Name: Anonymous : 2009-04-13 00:18 ID:Heaven [Del]

>>574
DATE_STYLE in config.pl.
http and cookie use GMT, the rest use whatever the local time zone is set to on the server.
well, there is month that uses GMT as well, but that's just the month name and year, not the whole date and time.

actually, if i set up a kareha board anytime soon, i am so going to set DATE_STYLE to month.

576 Name: Anonymous : 2009-04-13 02:19 ID:Heaven [Del]

> actually, if i set up a kareha board anytime soon, i am so going to set DATE_STYLE to month.
kinda like this, except without anyone with half a brain cell being able to root the server.

577 Name: Anonymous : 2009-04-18 03:52 ID:5JEjhUIg [Del]

When I first ran wakaba I noticed that the user has to click the checkbox when they want to upload a file. I was wondering why you did this since the script runs fine without it? Also I think it makes the user input panel look a little less cluttered and confusing by taking it out.

578 Name: Anonymous : 2009-04-18 15:33 ID:Heaven [Del]

>>577
You mean when they don't want to upload a file. That checkbox keeps people from posting a bunch of useless threads because they can't figure out how to reply.

579 Name: Anonymous : 2009-04-21 17:18 ID:stePFAF7 (Image: 266x339 gif, 34 kb) [Del]

src/1240359538896.gif: 266x339, 34 kb

I am attempting to run Kareha on free hosting server and so far i copied files and style to main directory and edited config.pl

When i try to run kareha.pl it shows me this:

Can't locate config.pl in @INC (@INC contains: . /etc/perl /usr/local/lib/perl/5.8.4

halp.

580 Name: Anonymous : 2009-04-22 11:22 ID:vokRrQsa [Del]

top - 11:19:43 up 1 day, 20:27, 1 user, load average: 4.86, 3.98, 3.98
Tasks: 21 total, 2 running, 18 sleeping, 0 stopped, 0 zombie
Cpu(s): 30.9%us, 4.3%sy, 0.0%ni, 8.0%id, 55.4%wa, 0.2%hi, 1.2%si, 0.0%st
Mem: 429056k total, 429056k used, 0k free, 0k buffers
Swap: 429056k total, 345912k used, 83144k free, 0k cached

PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
538 USERNAME 18 0 70824 54m 1828 H 15 13.0 0:14.51 kareha.pl
27783 USERNAME 15 0 27512 10m 804 R 1 2.4 8:41.59 lighttpd
1619 USERNAME 15 0 24788 9544 1744 S 0 2.2 0:00.10 kareha.pl
6192 USERNAME 15 0 24784 9544 1744 S 0 2.2 0:00.10 kareha.pl
13649 USERNAME 18 0 24916 9604 1752 S 0 2.2 0:00.10 kareha.pl
16515 USERNAME 16 0 24788 9540 1744 S 0 2.2 0:00.10 kareha.pl
17883 USERNAME 16 0 24916 9604 1752 S 0 2.2 0:00.11 kareha.pl
18518 USERNAME 18 0 24792 9476 1744 S 0 2.2 0:00.10 kareha.pl
19332 USERNAME 15 0 24784 9536 1744 S 0 2.2 0:00.10 kareha.pl
20228 USERNAME 16 0 24784 9544 1744 S 0 2.2 0:00.11 kareha.pl
22054 USERNAME 16 0 24920 9616 1752 S 0 2.2 0:00.10 kareha.pl
22678 USERNAME 18 0 24784 9536 1744 S 0 2.2 0:00.10 kareha.pl
23959 USERNAME 15 0 24920 9608 1752 S 0 2.2 0:00.13 kareha.pl
25918 USERNAME 18 0 24788 9476 1744 S 0 2.2 0:00.10 kareha.pl
25949 USERNAME 18 0 24788 9476 1744 S 0 2.2 0:00.10 kareha.pl
28000 USERNAME 16 0 24920 9612 1752 S 0 2.2 0:00.11 kareha.pl
28666 USERNAME 15 0 24788 9536 1744 S 0 2.2 0:00.10 kareha.pl
29829 USERNAME 16 0 24784 9532 1744 S 0 2.2 0:00.10 kareha.pl
32364 USERNAME 15 0 36920 1732 1160 S 0 0.4 0:00.00 sshd
32367 USERNAME 15 0 10816 2112 1308 S 0 0.5 0:00.00 bash
32387 USERNAME 15 0 10592 1232 952 R 0 0.3 0:00.01 top



What the fuck kareha. What the fuck.

581 Name: !WAHa.06x36 : 2009-04-23 07:22 ID:Heaven [Del]

>>580

Dreamhost?

582 Name: Anonymous : 2009-04-23 10:23 ID:vokRrQsa [Del]

>>581
Yeah. Dreamhost private server. Kareha never did this to me before... but lately it's been taking up a large chunk of CPU and RAM.

583 Post deleted by moderator.

584 Name: Anonymous : 2009-04-29 08:22 ID:CZ9Rusd5 [Del]

I`m getting a
Software error:
CGI open of tmpfile: Permission denied
How do I change me temp dir to /wakaba/src/ or something?

585 Post deleted by moderator.

586 Post deleted by moderator.

587 Name: !WAHa.06x36 : 2009-05-08 09:15 ID:Qldo6KoJ [Del]

>>582

Dreamhost has some kind of bug where flock() is broken and makes Kareha lock up waiting for a lock on log.txt that is never released.

588 Name: Anonymous : 2009-05-08 12:25 ID:Heaven [Del]

I'm trying desparately to understand compile_template(), but that is some deep magic you got there, WAHa. It looks alien in comparison to the rest of the code, out of place.
Any chance of getting a commented version?

589 Name: !WAHa.06x36 : 2009-05-08 19:37 ID:Heaven [Del]

>>588

Yes, it's some pretty wacky magic, if I recall correctly. It was years since I wrote it, though, so I don't necessarily remember exactly how it works myself. I think I gave up on making it readable so I made it unreadable instead. Sorry about that.

It converts the template to Perl code, and turns off strictness so it can use name references to actually change global variables in as it enters and leaves scopes. The main trick is this:

$foo="bar";
$$foo=12;
print "$bar\n";

This will print "12". By setting variables this way, the <var> code can just evaluate whatever argument it is given as Perl code.

590 Name: Anonymous : 2009-05-09 04:38 ID:Heaven (Image: 0x0 txt, 31 kb) [Del]

591 Name: Anonymous : 2009-05-10 08:04 ID:Heaven [Del]

>>589
You're talking variable variables. Perl's use of references has always been somewhat magical. I'll figure it out, thanks!

>>590
Helpful.
It was hard to write, it should be hard to understand, eh?

592 Name: Anonymous : 2009-05-13 08:55 ID:Heaven [Del]

>>591
They're not that difficult, just think of them as sort of like pointers.

593 Name: Anonymous : 2009-05-13 11:35 ID:rD4TCTiC [Del]

I'm running a board and can't seem to increase the max number of pages past 2. I've increased considerably the max thread count and the max posts count, even changed the permissions on the folder and rebuilt cache, but I can't get any more pages. Help computah? :<

594 Name: Anonymous : 2009-05-13 21:58 ID:vokRrQsa [Del]

>>587
is it possible to disable the logging altogether?

595 Name: !WAHa.06x36 : 2009-05-14 07:49 ID:K4vOYfq0 [Del]

>>594

You could put in a cron job to delete log.txt, I guess, but it would break deletion and break IP addresses on the admin page. The flock() itself is needed to avoid concurrent posts stomping on each other.

596 Name: Anonymous : 2009-05-15 19:36 ID:Heaven [Del]

>>595
You couldd fake the file locking with a symlink and avoid the flock() call. Make a symlink somewhere (it doesn't even have to point anywhere, really), spin until the link succeeds, and unlink it when the script exits.

597 Name: Anonymous : 2009-05-16 13:58 ID:Heaven [Del]

>>596
or you could find a host that doesn't break flock() like that or tell them to fix their broken shit.

598 Name: Anonymous : 2009-05-16 14:59 ID:Heaven [Del]

>>597
I did that already. I was trying not to be pompous and elitist about it, though, instead preferring to help others in the hopes that they will on their own realize that the trouble that they have to go through in order to make decent use of a broken web host isn't worth the tiny price difference.

599 Post deleted by moderator.

600 Name: Anonymous : 2009-05-18 13:02 ID:cEXHGDiF [Del]

Trying to set up kahrea on nginx + fcgiwrap. The main board seems to work, but when I try clicking on an individual thread with a URL (in the format of http://www.whatever.com/board/kareha.pl/somenumber) it gives me a 404. I'm on a resource limited VPS and Apache takes up far too many resources for my liking, or else I'd simply use that instead.

This is the part of my nginx config dealing with the board.

location ~ ^/board/.*\.pl$  {
include /etc/nginx/fastcgi_params;
fastcgi_pass 127.0.0.1:10000;
fastcgi_index index.html;
}

What am I missing?

601 Name: Anonymous : 2009-05-21 07:36 ID:vokRrQsa [Del]

>>587
Would it be possible to get any more details relevant to the problem with flock()? I only ask because I'm planning on complaining to Dreamhost and it would be good to have as much information as possible.

602 Name: !WAHa.06x36 : 2009-05-21 10:23 ID:Heaven [Del]

>>601

All I know is that suddenly flock() starts hanging on a specific file, and the only way to resolve it is to rename the file, and copy it back to the old location (so a new file is created, which can again be flocked() normally). Killing all running processes does not release that flock().

603 Name: Anonymous : 2009-05-23 15:35 ID:wmKuvHPm [Del]

dreamhost has not caused issues with kareha or wakaba since 2006 on their regular hosting. maybe there's a problem with their PS service but that's a completely different beast. you should specify "dreamhost ps" in that case.

you don't even need their vps service unless you are getting around 5000 uniques * 10 pages/unique using kareha or if you are getting around 20000 or more a day with wakaba.

604 Post deleted by user.

605 Name: !xrAoaaDf22 : 2009-05-25 16:13 ID:W0+OvvpE [Del]

I don't know whether the fact that the config.pl should not be in UTF-8 amuses me or makes me want to puke.
Maybe it's my setup;

I ticked off the encoding and the template would display correctly
I ticked it on and the posts would display correctly.

And when I converted config.pl and some other files to ANSI everything came out fine.

Any tips? Should I leave it at that?

606 Name: Anonymous : 2009-05-25 16:56 ID:VCjtwQwI [Del]

I notice that since I installed Wakaba 3.0.7 a while ago, an updated version has come out. What changes have been made? Is there a version history somewhere?

607 Name: !WAHa.06x36 : 2009-05-25 17:04 ID:Heaven [Del]

>>605

If you want it in UTF-8, you need to have use encoding 'utf-8'; at the top and no encoding; at the end.

608 Name: !WAHa.06x36 : 2009-05-25 17:04 ID:Heaven [Del]

>>606

Just bugfixes. It's been too long for me to remember what exactly all of them were, though.

609 Name: Chzl : 2009-06-13 07:31 ID:HGset4mG [Del]

Ive got perl showing the wakaba.pl page correctly, I just need to setup mysql. Anyone have exp with Mysql in Ubuntu? Or even linux for that matter?

610 Post deleted by moderator.

611 Post deleted by moderator.

612 Post deleted by moderator.

613 Name: Anonymous : 2009-06-22 18:16 ID:SYdDblSf [Del]

Damn, sorry for the quad posts ... server would not reply.

614 Name: !WAHa.06x36 : 2009-06-23 06:46 ID:K4vOYfq0 [Del]

>>613

Sorry, you said quad posts so I deleted three of them... Anyway, read http://wakaba.c3.cx/docs/docs.html.

615 Name: desu : 2009-06-23 07:46 ID:h8D85nPc (Image: 500x652 jpg, 126 kb) [Del]

src/1245768406131.jpg: 500x652, 126 kb

i just " installed " kareha..

but when I visit mah page it only downloads kareha.pl instead of browsing it?

I've installed perl, and changed permissions. so idk : (

616 Name: !WAHa.06x36 : 2009-06-24 04:17 ID:Heaven [Del]

See the previous post.

617 Name: Anonymous : 2009-06-25 11:15 ID:SYdDblSf [Del]

>>614
I followed that completely. I go to <site>/kareha/kareha.pl, says the index.html does not exist. The guide says going to that file should make it.

I CHMOD'd the directory to 777 again, it made the index file fine. But, when I upload an image, it always says "No thumbnail".

618 Name: Anonymous : 2009-06-25 11:17 ID:SYdDblSf [Del]

Oh, I also can not ban anyone either.

619 Name: Anonymous : 2009-06-25 11:31 ID:SYdDblSf [Del]

Okay, in admin.pl, it shows their IP as ::ffff:<normal IPv4 address>

It will not let me ban IP addresses??

620 Name: Anonymous : 2009-06-25 12:00 ID:SYdDblSf [Del]

Okay, I fixed the IPv6 problem, yet I still can not ban IP addresses, nor get the thumbnails to work.

use constant CONVERT_COMMAND => '/usr/local/bin/convert'; # location of the ImageMagick convert command (usually just 'convert', but sometime a full path is needed)

That is the correct path, etc, it just does not work for making the thumbnails ??

621 Name: Anonymous : 2009-06-25 12:02 ID:SYdDblSf [Del]

Oh, also, all posts are "1 GETs"
Anonymous 09/06/25(Thu)14:58 No.1
Anonymous 09/06/25(Thu)15:00 No.1

Etc.

622 Name: Anonymous : 2009-06-26 15:34 ID:p0Os74Gj [Del]

>>621
format your hard drive

623 Name: Anonymous : 2009-06-26 23:55 ID:MT7/o/la [Del]

>>622
Worst. Troll. Ever.

624 Name: Anonymous : 2009-06-28 05:05 ID:euNREJUU [Del]

Quick question: How do we enable more than 11 pages of posts? Thanks.

625 Name: !WAHa.06x36 : 2009-06-28 10:10 ID:Heaven [Del]

Change the post limits?

626 Name: Anonymous : 2009-06-28 14:01 ID:euNREJUU [Del]

Well, MAX_THREADS and MAX_POSTS are both set to zero in config.pl. Is it something else that I have to set?

627 Name: !WAHa.06x36 : 2009-06-28 15:14 ID:Heaven [Del]

MAX_AGE and MAX_MEGABYTES, I guess?

628 Name: Naj0rt : 2009-06-30 18:35 ID:khsgHu4r [Del]

The Wakaba/Kahera support wiki has a SecretFeatures tiddle that says:

>Wakaba and Kareha have a couple of hidden options and features. Can you find them?

I havn't been able to find them and it is driving me mad. Somebody please put me out of my misery.

629 Name: Anonymous : 2009-06-30 19:02 ID:ue662fIl [Del]

When trying to make or delete a post, kareha.pl usually forwards me to index.html without it being completely built. This results in a parsing error if xhtml is enabled. index.html is fine if refreshed. Any idea what's causing this?

630 Name: Anonymous : 2009-07-01 03:22 ID:Heaven [Del]

>>628
they're probably referring to things like ^H and the other date formats that aren't documented in config.pl.

631 Name: !WAHa.06x36 : 2009-07-01 10:14 ID:Heaven [Del]

>>629

Sounds like some kind of very weird or broken server. The redirect isn't done before the file is completely written to disk.

632 Name: Anonymous : 2009-07-01 16:21 ID:4ScbPjo2 [Del]

>>627

I never found MAX_AGE in config.pl (running 3.1.3). It's in there now, let's see what it does.

I basically want to be able to archive everything if possible.

633 Name: Anonymous : 2009-07-01 21:35 ID:ue662fIl [Del]

TEST

634 Name: Anonymous : 2009-07-02 01:45 ID:Heaven [Del]

>>633
  • You can test things in the test thread.

  • or you could if it wasn't broken...

    635 Name: Anonymous : 2009-07-04 04:53 ID:EvPPgqXc [Del]

    >>630
    No offence but I hope you are wrong because that is dissappointing.

    636 Name: Anonymous : 2009-07-04 22:14 ID:MT7/o/la [Del]

    >>617
    >>618
    >>619
    >>620
    >>621

    Please, help me with these problems ;_;

    637 Name: Anonymous : 2009-07-04 23:19 ID:Heaven [Del]

    >>636

    • does your web server support .htaccess?
    • what are the permissions on the thumbnail directory?
    • are there any files in the thumbnail directory?
    • all posts or just the first one in each thread? if it's the first one in each thread, it's supposed to be like that (assuming you're using kareha, not wakaba).

    638 Name: naj0rt : 2009-07-05 07:43 ID:EvPPgqXc [Del]

    I think I need a perl guru to help me with this mystifying problem. I run a wakaba image board and the admins want to have #admin after their posts, which is fair enough.I got it working by adding this at line 144 of futaba_style.pl (308):

    <if !$email><if $name eq 'NAME'><if $trip eq 'TRIP'><span class="admin">#Admin#</span></if></if></if>
    <if $email><if $name eq 'NAME'><if $trip eq 'TRIP'><span class="admin">#Admin#</span></if></if></if>

    This worked flawlessly on a test site, but when I added the code to my live site it works fine on some boards and not at all on others. Even if I copy futaba_style.pl from a board which is working it still refuses to work. Even more baffling is one particular board which inserts #Admin# for posts that already exist, but not new posts!?!

    I only have very basic programming knowledge but I don't even see how the last scenario is even possible. If the script recognises a name and trip combo and inserts #Admin# in one post, how can it not recognise the exact same name and trip combo in another post. Baffling. Obviously there is something more to this beyond my knowledge so if someone can point me in the right direction I'd be supper appreciative.

    639 Name: !WAHa.06x36 : 2009-07-05 10:56 ID:Qldo6KoJ [Del]

    >>638

    I have no idea what causes the problem, but mabe you should first just remove the outermost <if> statements and just have the code in there once. There's little point in doing it twice like that.

    Also, you can combine several tests into <if $name eq 'NAME' and $trip eq 'TRIP'> to get rid of another if statement. Making the code simpler might help in figuring out what is going wrong

    640 Name: Dquigley : 2009-07-06 08:24 ID:wGVB3GMD [Del]

    I am trying to install Wakaba on a shared hosting server. When I try and run wakaba.pl to get the html files it just trys to download the file and not run it. I asked my host about this and they said the files have to be in the cgi bin folder or something. Can someone please explain how to get this working X__X thank you.

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