We seem to have a problem.... (13)

1 Name: Scourgeofthegalaxy : 2009-12-22 13:35 ID:BKJPFWwe

Can anyone else post?

2 Name: Anonymous : 2009-12-22 14:59 ID:sjZebzyR

I can now. I looked through the code and it appeared to be a very stupid mistake on my part: there was an error with the calling of the close_threads() function, but I fixed it now. Can anybody here on this forum perhaps help look through the code to see that everything is good? It is very stressful to do this by myself, especially when I think I can screw everything up in an instant. I will perhaps post the code up on Google Code for everybody interested to look through.

3 Name: Frich : 2009-12-22 14:59 ID:HiDogDQv

I seemed to be having this problem earlier

4 Name: ... : 2009-12-22 15:00 ID:89R1ebsN


I'm guessing 'The Lair' broke this section of the site when it reached over 999 posts.

5 Name: Lupa Dracolis : 2009-12-22 15:52 ID:FC1MTwiI

Naughty Lair!

6 Name: Me, Myself and I : 2009-12-22 15:53 ID:GJsBvewb

>>5 Woops...

7 Name: ... : 2009-12-22 16:17 ID:89R1ebsN

>>5 Indeed. It grew furious, bloated with rage, and proceeded to rampage through the site, leaving battered multiple-posts in its wake.

Dastardly, obese Lair. Look upon what thou hast wrought and hang thy metaphorical head in shame. Fie!

8 Name: Anonymous : 2009-12-22 16:36 ID:sjZebzyR

Before uploading the code onto Google code, I will first post the code to a publicly accessible place on this website:


Could someone perhaps look through this? Even if nobody has any experience with Perl, it would still be good if I got some help with this.

9 Name: Anonymous : 2009-12-22 16:55 ID:sjZebzyR

In particular, to tell everybody what exactly was wrong, here is the error:

Inside the trim_threads() function, there used to be this:

close_thread($$thread{thread},$bbs,1) if(AUTOCLOSE_POSTS and $$thread{postcount}>=AUTOCLOSE_POSTS);

Now, it looks like this:

close_thread($$thread{thread},$bbs,1,$database_handle) if(AUTOCLOSE_POSTS and $$thread{postcount}>=AUTOCLOSE_POSTS);

It turns out that I forgot to give the close_thread() function the last argument, so that in the database function, $database_handle was undefined, which resulted in an error.

10 Name: RayRay : 2009-12-23 02:13 ID:sxpMYyvA

I don't speak computer talk - but I'm glad it's sorted xD

11 Name: Elkkun : 2010-01-02 04:25 ID:iK4wkY6v

>>9 silly mistakes can make BIG changes. :3 but I'm glad it's sorted out ;)

12 Name: JustAchild : 2010-01-02 08:11 ID:70gk14hb

>>6 Oh no......

13 Name: JustAchild : 2010-01-02 08:12 ID:70gk14hb

Sorry everyone if it broke the system thingy-ma-bob ): we didn't know, honestly.

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