Topic: Problem with adding a new forum
Hi.
If I would add a new forum in administration-menu, I get this message: "Bad request. The link you followed is incorrect or outdated."
I hope, someone can help me?!
You are not logged in. Please login or register.
PunBB Forums → PunBB 1.2 bug reports → Problem with adding a new forum
Hi.
If I would add a new forum in administration-menu, I get this message: "Bad request. The link you followed is incorrect or outdated."
I hope, someone can help me?!
make sure that your base url is set correctly.
The base url is correct and without trailing slash. All other options and features of the script work good, only to add a new forum make problems.
Did you install any mods?
Because the code looks like this
// Add a "default" forum
if (isset($_POST['add_forum']))
{
confirm_referrer('admin_forums.php');
$add_to_cat = intval($_POST['add_to_cat']);
if ($add_to_cat < 1)
message($lang_common['Bad request']);
$db->query('INSERT INTO '.$db->prefix.'forums (cat_id) VALUES('.$add_to_cat.')') or error('Unable to create forum', __FILE__, __LINE__, $db->error());
// Regenerate the quickjump cache
require_once PUN_ROOT.'include/cache.php';
generate_quickjump_cache();
redirect('admin_forums.php', 'Forum added. Redirecting …');
}
So, unless you've messed with something in the code or in the HTTP request, I don't know how that's happening
This is a copy of the code in the admin_forums.php:
// Add a "default" forum
if (isset($_POST['add_forum']))
{
confirm_referrer('admin_forums.php');
$add_to_cat = intval($_POST['add_to_cat']);
if ($add_to_cat < 1)
message($lang_common['Bad request']);
$db->query('INSERT INTO '.$db->prefix.'forums (cat_id) VALUES('.$add_to_cat.')') or error('Unable to create forum', __FILE__, __LINE__, $db->error());
// Regenerate the quickjump cache
require_once PUN_ROOT.'include/cache.php';
generate_quickjump_cache();
redirect('admin_forums.php', 'Forum added. Redirecting …');
}
Versions:
PunBB-Forum 1.2.9
PHP 5.0.4
MySQL 4.1.10a-nt
Well, then my only guess is that you're somehow adding a forum without specifying a category
Enable DEBUG mode and try again.
PunBB Forums → PunBB 1.2 bug reports → Problem with adding a new forum
Powered by PunBB, supported by Informer Technologies, Inc.