1 (edited by Ropli 2007-05-09 15:51)

Topic: Admin editing forums error

Well, I just recently started getting this error when I try to edit one of the forums (from admin panel) aswell as removing them, everything else works fine. Creating new forums, editing categorizes and so on.

When I try to edit one of the forums (both old and new) I get the following error:

An error was encountered
File: /home/yourspla/public_html/forte/forums/admin_forums.php
Line: 313

PunBB reported: Unable to fetch group forum permission list

Database reported: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ') WHERE g.g_id!=1 ORDER BY g.g_id' at line 1 (Errno: 1064)

And when I try to delete a forum I get the following:

Info

Bad request. The link you followed is incorrect or outdated.

The first problem is the main problem, the other one I can probably figure out myself.

Thanks smile

Re: Admin editing forums error

For the first one: did you make any change to the code?
For the second one: check this thread.

3

Re: Admin editing forums error

Yeah, Ive changed most of the forums codes.

The link you linked is for Bad HTTP_REFERER, not Bad request.

4

Re: Admin editing forums error

Fixed it myself, Had the following in header.php tongue

$forum_id = $cur_topic['forum_id'];

Replaced it with

if (in_array(basename($_SERVER['PHP_SELF']), array('viewtopic.php','viewforum.php','profile.php')))
$forum_id = $cur_topic['forum_id'];

Re: Admin editing forums error

Ropli wrote:

The link you linked is for Bad HTTP_REFERER, not Bad request.

Oops.

So you've fixed both now?

6

Re: Admin editing forums error

Yes, thanks for fast replys tho smile