Desti Posted September 24, 2022 Report Share Posted September 24, 2022 Опять мне везет или ошибки движка? Чистый инсталл, ничего дополнительно не установлено, dev-режим, в консоли ошибка Failed to load: forums/front/controllers/forums/ips.forum/topicRow.js Вызывается как обычно, <... data-controller='forums.front.forum.topicRow'>, но в dev пакете нет такого файла и в банлах сгенеренных такого тоже нет. avangcom, Orpheus, by_ix and 3 others 4 2 Quote Link to comment Share on other sites More sharing options...
by_ix Posted September 24, 2022 Report Share Posted September 24, 2022 php 8.1, отказывается работать переменная $member->isOnline(), даже в дефолтных шаблонах.. SlawkA and kotishe 1 1 Quote Link to comment Share on other sites More sharing options...
Orpheus Posted September 25, 2022 Report Share Posted September 25, 2022 On 9/24/2022 at 7:11 AM, Desti said: Am I lucky again or engine errors? Clean install, nothing else installed, dev mode, error in console Failed to load: forums/front/controllers/forums/ips.forum/topicRow.js It is called as usual, <... data-controller='forums.front.forum.topicRow'>, but there is no such file in the dev package and there is no such file in the generated bundles either. You're just lucky! Quote Link to comment Share on other sites More sharing options...
Desti Posted September 25, 2022 Author Report Share Posted September 25, 2022 Да ладно, при чем здесь удача.. файла действительно нет в dev-пакете. Quote Link to comment Share on other sites More sharing options...
by_ix Posted September 26, 2022 Report Share Posted September 26, 2022 В 25.09.2022 в 05:04, by_ix сказал: php 8.1, отказывается работать переменная $member->isOnline(), даже в дефолтных шаблонах.. видимо, проблема глобальна. https://ipbmafia.ru/topic/24618-sos-online-offline/?do=findComment&comment=183546 да и у байтов то же самое с онлайном. хотя знаю сайт, где на php 8.1.10 всё ок, но у меня на 8.1.19 тишина в ответ. всё же рано переходить на 8.1. afshin20 and SlawkA 2 Quote Link to comment Share on other sites More sharing options...
Desti Posted September 26, 2022 Author Report Share Posted September 26, 2022 Да нет там особой проблемы, у них \IPS\DateTime::create() возвращает время без добавления временной зоны, а \IPS\DateTime::ts() - с добавлением. Поэтому условие в функции isOnline() всегда false. Можно заменить расчет в этой функции на такое $diff = \IPS\DateTime::ts( $this->last_activity )->diff( \IPS\DateTime::ts( time() ) ); индикатор начнет работать, но возможно это снова где-то всплывет, т.к. проблема в коде класса. September^^, alexis and by_ix 3 Quote Link to comment Share on other sites More sharing options...
Exception Posted November 6, 2022 Report Share Posted November 6, 2022 В 26.09.2022 в 11:32, Desti сказал: Да нет там особой проблемы, у них \IPS\DateTime::create() возвращает время без добавления временной зоны, а \IPS\DateTime::ts() - с добавлением. Поэтому условие в функции isOnline() всегда false. Можно заменить расчет в этой функции на такое $diff = \IPS\DateTime::ts( $this->last_activity )->diff( \IPS\DateTime::ts( time() ) ); индикатор начнет работать, но возможно это снова где-то всплывет, т.к. проблема в коде класса. Проблема я так понял еще не решена у них Можно сделать и так: $diff = \IPS\DateTime::ts( $this->last_activity, TRUE )->diff( \IPS\DateTime::create() ); Quote Link to comment Share on other sites More sharing options...
Dusty Posted January 7 Report Share Posted January 7 В 06.11.2022 в 12:23, Exception сказал: Проблема я так понял еще не решена у них Можно сделать и так: $diff = \IPS\DateTime::ts( $this->last_activity, TRUE )->diff( \IPS\DateTime::create() ); Куда это нужно прописать? Quote Link to comment Share on other sites More sharing options...
Desti Posted January 7 Author Report Share Posted January 7 2 часа назад, Dusty сказал: \IPS\DateTime system/Member/Member.php - функция isOnline() Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.