Jump to content

Перестало заходит в админку

Featured Replies

Posted
comment_148130

Неделю не заходил вроде нечего и не делал . 2018-05-26_234111.thumb.png.4eb31c2c21526e08c24b3e24a3314a38.png

 

Вот сам лог

 Date: Sat, 26 May 2018 18:38:28 +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 ipbsessions WHERE running_time > 1527359008' at line 1
 IP Address: 94.75.46.39 - /admin/index.php?adsess=75a22e09f8494af428bf94974a76e6de
 ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
 mySQL query error: SELECT count(*) as rows FROM ipbsessions WHERE running_time > 1527359008
 .--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------.
 | File                                                                       | Function                                                                      | Line No.          |
 |----------------------------------------------------------------------------+-------------------------------------------------------------------------------+-------------------|
 | admin/sources/base/ipsController.php                                       | [admin_core_mycp_dashboard].doExecute                                         | 306               |
 '----------------------------------------------------------------------------+-------------------------------------------------------------------------------+-------------------'

 

comment_148134
5 минут назад, zort сказал:

WOLF zort ресурс чего ?

если про базу то нет

ресурс хостинга!

https://ipbmafia.ru/topic/6744-problema-s-bazoy-dannyh/#comment-51908

  • Author
comment_148135

ресурс хостинга безлимитный , стоит на hostinger

помогло это

надо открывать xxxxxx\applications\core\modules_admin\mycp\dashboard.php

 

ряд 379:

$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'];

 

и работает с mariadb 10.2 тоже

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.


Guest
Ответить в этой теме...

Последние посетители 0

  • No registered users viewing this page.