Jump to content
Дизайн и модификация IPS Community IPBSkinsBETA
Search In
  • More options...
Find results that contain...
Find results in...
Sign in to follow this  

IPB 3.4.X "Driver Error" There appears to be an error with the database.

Recommended Posts

Другая ошибка... MariaDB



Date: Mon, 23 Mar 2020 10:58:40 +0000 Error: 1064 - You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'rows FROM 313frm_sessions WHERE running_time > 1584960220' at line 1 IP Address:  - /forum/admin/index.php?adsess=752a2c3dd3422a32b5857e5d01f21832&app=core



Окрытваем \applications\core\modules_admin\mycp\dashboard.php

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

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


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

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

  • Upvote 1

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...