Jump to the post that solved this thread.
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Not Solved [Error Message] MyBB SQL Error when access ModCP
#17
Not Solved
This problem has been solved by Omar G.

You need to replace some lines of code in file "modcp.php"

Find :
if($unviewableforums && !is_super_admin($mybb->user['uid']))
{
    $flist .= " AND fid NOT IN ({$unviewableforums})";
    $tflist .= " AND t.fid NOT IN ({$unviewableforums})";

    $unviewableforums = str_replace("'", '', $unviewableforums);
    $unviewableforums = explode(',', $unviewableforums);
}

Replace with:
if($unviewableforums && !is_super_admin($mybb->user['uid']))
{
    if(is_array($unviewableforums))
    {
        $unviewableforums = str_replace("'", '', implode(',', $unviewableforums));
    }

    $flist .= " AND fid NOT IN ({$unviewableforums})";
    $tflist .= " AND t.fid NOT IN ({$unviewableforums})";

    $unviewableforums = str_replace("'", '', $unviewableforums);
    $unviewableforums = explode(',', $unviewableforums);
}


Once again, thanks to Omar G. for solving this error Smile
Software is like sex: it's better when it's free.
-Linus Torvalds
Jump to the post that solved this thread.


Messages In This Thread
MyBB SQL Error when access ModCP - by NNT_ - 2012-08-14, 07:30 AM
RE: MyBB SQL Error when access ModCP - by Omar G. - 2012-08-14, 07:35 AM
RE: MyBB SQL Error when access ModCP - by NNT_ - 2012-08-14, 07:52 AM
RE: MyBB SQL Error when access ModCP - by Omar G. - 2012-08-14, 07:59 AM
RE: MyBB SQL Error when access ModCP - by NNT_ - 2012-08-14, 08:06 AM
RE: MyBB SQL Error when access ModCP - by StefanT - 2012-08-14, 09:12 AM
RE: MyBB SQL Error when access ModCP - by NNT_ - 2012-08-14, 09:17 AM
RE: MyBB SQL Error when access ModCP - by melchor - 2012-08-14, 09:43 AM
RE: MyBB SQL Error when access ModCP - by NNT_ - 2012-08-14, 10:59 AM
RE: MyBB SQL Error when access ModCP - by StefanT - 2012-08-14, 11:31 AM
RE: MyBB SQL Error when access ModCP - by NNT_ - 2012-08-14, 11:32 AM
RE: MyBB SQL Error when access ModCP - by NNT_ - 2012-08-16, 07:06 AM
RE: MyBB SQL Error when access ModCP - by NNT_ - 2012-08-18, 07:13 AM
RE: MyBB SQL Error when access ModCP - by Paul H. - 2012-09-06, 03:31 PM
RE: MyBB SQL Error when access ModCP - by NNT_ - 2012-09-06, 06:33 PM
RE: MyBB SQL Error when access ModCP - by NNT_ - 2012-09-08, 10:18 AM
RE: MyBB SQL Error when access ModCP - by StefanT - 2012-09-10, 01:09 PM
RE: MyBB SQL Error when access ModCP - by NNT_ - 2012-09-11, 01:25 PM
RE: MyBB SQL Error when access ModCP - by Paul H. - 2012-09-10, 02:54 PM
RE: MyBB SQL Error when access ModCP - by StefanT - 2012-09-10, 02:55 PM
RE: MyBB SQL Error when access ModCP - by StefanT - 2012-09-11, 07:35 AM
RE: MyBB SQL Error when access ModCP - by Motto - 2012-10-30, 09:03 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)