why i get Error 500 and have alot proplems

Zeyad_Ahmed

  • The Founder of MPO
  • Think Clearly
  • Posts: 28
why i get Error 500 and have alot proplems
« on June 15th, 2016, 01:27 AM »
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

Drunken Clam

  • Drool, drool, drool....!
  • Posts: 154

Zeyad_Ahmed

  • The Founder of MPO
  • Think Clearly
  • Posts: 28

emanuele

  • Posts: 125
Re: why i get Error 500 and have alot proplems
« Reply #3, on June 15th, 2016, 10:51 PM »
98% of the times, 500 errors are problems with file permissions/ownership.
Are you using a linux server? I'm not a Wedge expert, but I guess you should make sure the files are 644 and directories are 755.

Zeyad_Ahmed

  • The Founder of MPO
  • Think Clearly
  • Posts: 28
Re: why i get Error 500 and have alot proplems
« Reply #4, on June 16th, 2016, 05:18 AM »
on linux server and i uploaded to the FTP all files
i have alot of questions
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 want a full guide from Zero to  Hero cuz i love Wedge i want it on my forum

any one have team viewer to help me plz
Re: why i get Error 500 and have alot proplems
« Reply #5, on June 16th, 2016, 07:44 AM »
i got this Error
Code: [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)

emanuele

  • Posts: 125
Re: why i get Error 500 and have alot proplems
« Reply #6, on June 16th, 2016, 09:43 AM »
Quote from Zeyad_Ahmed on June 16th, 2016, 05:18 AM
1- what it database prefix how it write
The installer takes care of "writing" it, no need for you to.
Quote from Zeyad_Ahmed on June 16th, 2016, 05:18 AM
2- there is a forum work on wedge and it have same proplems but a another forum is perfect and no error happend why?
There is plenty of working forums, there is plenty of forums with problems.
Quote from Zeyad_Ahmed on June 16th, 2016, 07:44 AM
i got this Error
Code: [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)
At least one of the access data (user, password, host) for the mysql server is wrong.

Jurien

  • All i want is a couple days off
  • Posts: 132

Zeyad_Ahmed

  • The Founder of MPO
  • Think Clearly
  • Posts: 28
Re: why i get Error 500 and have alot proplems
« Reply #8, on June 16th, 2016, 11:08 PM »
It works with me (Iam very happy)
but i get this error in making category
Code: [Select]
Fatal error: Call to undefined function createCategory() in /home/u289793038/public_html/gz/app/ManageBoards.php on line 472
Re: why i get Error 500 and have alot proplems
« Reply #9, on June 16th, 2016, 11:27 PM »
line 472 in manageboards.php
Code: [Select]
createCategory($catOptions);

function editcategory1
Code: [Select]
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 editcategory 2
Code: [Select]
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');
}

Any Help Please?? :)
Re: why i get Error 500 and have alot proplems
« Reply #11, on June 17th, 2016, 05:21 AM »
It works finally i made a forum in wedge iam very :)
it was error in my sql thanks for all

But i will make this ON-Topic cuz if i get errors