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
#11
Not Solved
(2012-08-14, 11:31 AM)StefanT Wrote: I don't see any mistake in the code and I can't reproduce it under the circumstances you describe.

Do you need a test account on my forum, with access permission access to modcp ?
Software is like sex: it's better when it's free.
-Linus Torvalds
#12
Not Solved
Any updates?
Software is like sex: it's better when it's free.
-Linus Torvalds
#13
Not Solved
Here is the screenshot :

[Image: SCRSHOT_MODCP_2.PNG]

If you need a test account which have permission to access ModCP, please tell me.

Thanks in advanced.
Software is like sex: it's better when it's free.
-Linus Torvalds
#14
Not Solved
I get this as well. Pain in the lime.
#15
Not Solved
If you can get me access to an account that the error occurs for and FTP access, I'll try to narrow down the bug.
-Paul H.

Cogisne lingua latina?
#16
Not Solved
(2012-09-06, 03:31 PM)Paul H. Wrote: If you can get me access to an account that the error occurs for and FTP access, I'll try to narrow down the bug.

Sent you a PM. Please check the inbox. Hope you can fix this trouble soon Big Grin

Any updates? Paul H.
Software is like sex: it's better when it's free.
-Linus Torvalds
#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
#18
Not Solved
This does not happen without any plugins. Nevertheless it will be fixed with 1.6.9.
Fix:
Replace this in inc/functions.php:
	global $forum_cache, $permissioncache, $mybb, $unviewableforums, $unviewable, $templates, $forumpass;
with:
	global $forum_cache, $permissioncache, $mybb, $unviewable, $templates, $forumpass;
[Image: banner.png]
#19
Not Solved
This user has been denied support. This user has been denied support.
Actually I Dont Upgrade My Forum Any more Because 1.6.6 Is Great

I Dont Have Any Problems Smile

It Seems New Version Having Problems
#20
Not Solved
(2012-09-10, 02:51 PM)Marks-Mans Wrote: Actually I Dont Upgrade My Forum Any more Because 1.6.6 Is Great

I Dont Have Any Problems Smile

It Seems New Version Having Problems


That's a good way to get hacked or encounter bugs. When we release and update it's for your own good. It only takes five minutes anyways. Any problems in new versions are 99% likely to be in the old version as well.
-Paul H.

Cogisne lingua latina?
Jump to the post that solved this thread.


Forum Jump:


Users browsing this thread: 1 Guest(s)