Jump to content
WebFlake

admincp database error


Wells

Recommended Posts

 

55 minutes ago, Cookie Monster said:

Can you find out what time your server is set up to? Sorry was this a shared host or your own VPS / localhost?

Has it been working before or is this a new board ?

Europe/Bucharest 

Thu Jan 11 11:04:10 EET 2018

No, it's not my own VPS/localhost.

IPB was working perfectly 3 months ago with the same webhost provider.

But i don't understand why IPS works, shouldn't both of them not work ?

Edited by Wells
Link to comment
Share on other sites

1 hour ago, Wells said:

 

Europe/Bucharest 


Thu Jan 11 11:04:10 EET 2018

No, it's not my own VPS/localhost.

IPB was working perfectly 3 months ago with the same webhost provider.

But i don't understand why IPS works, shouldn't both of them not work ?

Register a new user, set its usergroup to admin in the SQL then try login with that will 

VAEfvMI.png

Liked what i posted remember to feed me a cookie ->
Or you can add a cookie to myCookieJar

Link to comment
Share on other sites

  • 5 months later...
  • 4 months later...

For me this error occured when i update MariaDB from 10.1.36 to 10.2.18. So MariaDB 10.2 and newer have this issue. Downgrade to 10.1 resolving this issue.

 

Edit: world rows in MariaDB 10.2 is reserved, so cant be used. It should be changed to 'rows' or anything, but how do that ?

Edited by kamil445
  • Thanks 1
Link to comment
Share on other sites

On 10/30/2018 at 10:12 AM, kamil445 said:

Edit: world rows in MariaDB 10.2 is reserved, so cant be used. It should be changed to 'rows' or anything, but how do that ?

THANK YOU for posting this! I was able to solve the issue thanks to your post. I'll post the fix here for anyone who stumbles upon this post in the future.

Find the following file admin\applications\core\modules_admin\mycp\dashboard.php

Change line 377 to 

$online	= $this->DB->buildAndFetch( array( 'select' => 'count(*) as fixme', 'from' => 'sessions', 'where' => "running_time > {$time}" ) );

Change line 379 to 

$stats['active_users']	= $online['fixme'];

Of course you don't have to use the word "fixme". You can use any word so long as you don't use "rows"!. Thanks!

  • Like 2
  • Thanks 2
Link to comment
Share on other sites

  • 2 weeks later...
  • 2 months later...
On 1/7/2018 at 6:30 AM, Jeffrey said:

I've looked into the "admin/sources/base/ipsController.php" file on line 306 and the software is trying to execute and read your class permissions. I assume this is to read and validate your permissions as an admin when logging into the admin control panel.

  1. Try to upgrade your files from the existing forum software using this download: 
  2. Go into your host's phpmyadmin, go into the admin_core table, and look for an issue related to your permissions. 
  3. If you still have access to the admin control panel and allowed to access the membergroups section, try to make a new admin group, set all the permissions your admin account has, and set your account to this new membergroup. If you already have other admin member groups on your forum already and can't access the admin control panel, you can change your membergroup via the core_members table. Edit the existing tables for your account and change the member_group_id to the same id as another admin membergroup.

Its not working the download file :(

Link to comment
Share on other sites

  • 1 year later...
On 11/3/2018 at 3:43 AM, Polit said:

THANK YOU for posting this! I was able to solve the issue thanks to your post. I'll post the fix here for anyone who stumbles upon this post in the future.

Find the following file admin\applications\core\modules_admin\mycp\dashboard.php

Change line 377 to 


$online	= $this->DB->buildAndFetch( array( 'select' => 'count(*) as fixme', 'from' => 'sessions', 'where' => "running_time > {$time}" ) );

Change line 379 to 


$stats['active_users']	= $online['fixme'];

Of course you don't have to use the word "fixme". You can use any word so long as you don't use "rows"!. Thanks!

This worked for me, no need to download further files

Link to comment
Share on other sites

×
×
  • Create New...