why i get Error 500 and have alot proplems and i want one help me in the wedge
I love Wedge forum and i want one
please any one help me
I love Wedge forum and i want one
please any one help me
When do you get the 500 error? What are you doing at the time?
Warning: mysqli_connect(): (28000/1045): Access denied for user 'Zeyad_Ahmed'@'10.2.1.20' (using password: YES) in /home/u289793038/public_html/gz/app/Class-DB.php on line 55
Access denied for user 'Zeyad_Ahmed'@'10.2.1.20' (using password: YES)
1- what it database prefix how it write
2- there is a forum work on wedge and it have same proplems but a another forum is perfect and no error happend why?
i got this ErrorCode: [Select] Warning: mysqli_connect(): (28000/1045): Access denied for user 'Zeyad_Ahmed'@'10.2.1.20' (using password: YES) in /home/u289793038/public_html/gz/app/Class-DB.php on line 55
Access denied for user 'Zeyad_Ahmed'@'10.2.1.20' (using password: YES)
Fatal error: Call to undefined function createCategory() in /home/u289793038/public_html/gz/app/ManageBoards.php on line 472
createCategory($catOptions);
function EditCategory()
{
global $txt, $context, $cat_tree, $boardList, $boards;
loadTemplate('ManageBoards');
loadSource('Subs-Boards');
getBoardTree();
$_REQUEST['cat'] = isset($_REQUEST['cat']) ? (int) $_REQUEST['cat'] : 0;
$context['category_order'] = array(
array(
'id' => 0,
'name' => $txt['mboards_order_first'],
'selected' => !empty($_REQUEST['cat']) ? $cat_tree[$_REQUEST['cat']]['is_first'] : false,
'true_name' => ''
)
);
if ($_REQUEST['sa'] == 'newcat')
{
$context['category'] = array(
'id' => 0,
'name' => $txt['mboards_new_cat_name'],
'editable_name' => htmlspecialchars($txt['mboards_new_cat_name']),
'can_collapse' => true,
'is_new' => true,
'is_empty' => true
);
}
elseif (!isset($cat_tree[$_REQUEST['cat']]))
redirectexit('action=admin;area=manageboards');
else
{
$context['category'] = array(
'id' => $_REQUEST['cat'],
'name' => $cat_tree[$_REQUEST['cat']]['node']['name'],
'editable_name' => htmlspecialchars($cat_tree[$_REQUEST['cat']]['node']['name']),
'can_collapse' => !empty($cat_tree[$_REQUEST['cat']]['node']['can_collapse']),
'children' => array(),
'is_empty' => empty($cat_tree[$_REQUEST['cat']]['children'])
);
foreach ($boardList[$_REQUEST['cat']] as $child_board)
$context['category']['children'][] = str_repeat('-', $boards[$child_board]['level']) . ' ' . $boards[$child_board]['name'];
}
$prevCat = 0;
foreach ($cat_tree as $catid => $tree)
{
if ($catid == $_REQUEST['cat'] && $prevCat > 0)
$context['category_order'][$prevCat]['selected'] = true;
elseif ($catid != $_REQUEST['cat'])
$context['category_order'][$catid] = array(
'id' => $catid,
'name' => $txt['mboards_order_after'] . $tree['node']['name'],
'selected' => false,
'true_name' => $tree['node']['name']
);
$prevCat = $catid;
}
if (!isset($_REQUEST['delete']))
{
wetem::load('modify_category');
$context['page_title'] = $_REQUEST['sa'] == 'newcat' ? $txt['mboards_new_cat_name'] : $txt['catEdit'];
}
else
{
wetem::load('confirm_category_delete');
$context['page_title'] = $txt['mboards_delete_cat'];
}
}
function EditCategory2()
{
checkSession();
loadSource('Subs-Categories');
$_POST['cat'] = (int) $_POST['cat'];
if (isset($_POST['edit']) || isset($_POST['add']))
{
$catOptions = array();
if (isset($_POST['cat_order']))
$catOptions['move_after'] = (int) $_POST['cat_order'];
$catOptions['cat_name'] = preg_replace('~[&]([^;]{8}|[^;]{0,8}$)~', '&$1', $_POST['cat_name']);
$catOptions['is_collapsible'] = isset($_POST['collapse']);
if (isset($_POST['add']))
createCategory($catOptions);
else
modifyCategory($_POST['cat'], $catOptions);
}
elseif (isset($_POST['delete']) && !isset($_POST['confirmation']) && !isset($_POST['empty']))
{
EditCategory();
return;
}
elseif (isset($_POST['delete']))
{
if (isset($_POST['delete_action']) && $_POST['delete_action'] == 1)
{
if (empty($_POST['cat_to']))
fatal_lang_error('mboards_delete_error');
deleteCategories(array($_POST['cat']), (int) $_POST['cat_to']);
}
else
deleteCategories(array($_POST['cat']));
}
redirectexit('action=admin;area=manageboards');
}