Banxix Well-known member Licensed customer Nov 6, 2019 #41 Nirjonadda said: See here demo: https://drive.google.com/file/d/1MI8SgOfNs3W6H9xTEjH5Gpio-bvj7wyf/view?usp=sharing Click to expand... It's better now, thank you. I will test and make a fix.
Nirjonadda said: See here demo: https://drive.google.com/file/d/1MI8SgOfNs3W6H9xTEjH5Gpio-bvj7wyf/view?usp=sharing Click to expand... It's better now, thank you. I will test and make a fix.
Banxix Well-known member Licensed customer Nov 6, 2019 #42 Banxix updated [Banxix] Auto Close Threads with a new update entry: 1.0.1 Patch 1 Fix reply count factor is always triggered. Click to expand... Read the rest of this update entry...
Banxix updated [Banxix] Auto Close Threads with a new update entry: 1.0.1 Patch 1 Fix reply count factor is always triggered. Click to expand... Read the rest of this update entry...
Wutime Well-known member Licensed customer Nov 15, 2019 #43 Banxix said: Your thread view return null on $thread which should be \XF\Entity\Thread. I'm afraid it is not my addon's fault. I implement a small fix for you. It check if the $thread is instance of Thread, but since your $thread is null, the auto close is not triggered. Click to expand... I'm getting the identical error, ONLY when this addon is enabled. Last edited: Nov 15, 2019
Banxix said: Your thread view return null on $thread which should be \XF\Entity\Thread. I'm afraid it is not my addon's fault. I implement a small fix for you. It check if the $thread is instance of Thread, but since your $thread is null, the auto close is not triggered. Click to expand... I'm getting the identical error, ONLY when this addon is enabled.
Wutime Well-known member Licensed customer Nov 15, 2019 #44 @Banxix I've been able to suppress the error by doing the following: Editing /Banxix/AutoCloseThreads/XF/Entity/Thread.php line 56 with: PHP: else { if (isset($entity->post_date)) { if ($entity->post_date + (\XF::options()->autoCloseThreadsTimeFactorMinutes * 60) < time()) { $this->threadStateClosed(); } } }
@Banxix I've been able to suppress the error by doing the following: Editing /Banxix/AutoCloseThreads/XF/Entity/Thread.php line 56 with: PHP: else { if (isset($entity->post_date)) { if ($entity->post_date + (\XF::options()->autoCloseThreadsTimeFactorMinutes * 60) < time()) { $this->threadStateClosed(); } } }
Banxix Well-known member Licensed customer Nov 15, 2019 #45 Wutime said: @Banxix I've been able to suppress the error by doing the following: Editing /Banxix/AutoCloseThreads/XF/Entity/Thread.php line 56 with: PHP: else { if (isset($entity->post_date)) { if ($entity->post_date + (\XF::options()->autoCloseThreadsTimeFactorMinutes * 60) < time()) { $this->threadStateClosed(); } } } Click to expand... Thank you, I missed the case where entity does not exist (for some reaons, because it should always exist). This fix should be enough. Last edited: Nov 15, 2019
Wutime said: @Banxix I've been able to suppress the error by doing the following: Editing /Banxix/AutoCloseThreads/XF/Entity/Thread.php line 56 with: PHP: else { if (isset($entity->post_date)) { if ($entity->post_date + (\XF::options()->autoCloseThreadsTimeFactorMinutes * 60) < time()) { $this->threadStateClosed(); } } } Click to expand... Thank you, I missed the case where entity does not exist (for some reaons, because it should always exist). This fix should be enough.
Banxix Well-known member Licensed customer Nov 15, 2019 #46 Banxix updated [Banxix] Auto Close Threads with a new update entry: 1.0.1 Patch 2 Fixed a case where entity does not exist (it should always exist) Click to expand... Read the rest of this update entry...
Banxix updated [Banxix] Auto Close Threads with a new update entry: 1.0.1 Patch 2 Fixed a case where entity does not exist (it should always exist) Click to expand... Read the rest of this update entry...
Oblivion Knight Well-known member Licensed customer Jul 29, 2021 #47 Query count shoots up with this add-on enabled.. News and announcements umbrella-online.co.uk Queries with add-on enabled: 36 Queries with add-on disabled: 19
Query count shoots up with this add-on enabled.. News and announcements umbrella-online.co.uk Queries with add-on enabled: 36 Queries with add-on disabled: 19
unproperlypropagated Active member Licensed customer May 6, 2025 #48 Oblivion Knight said: Query count shoots up with this add-on enabled.. News and announcements umbrella-online.co.uk Queries with add-on enabled: 36 Queries with add-on disabled: 19 Click to expand... Query: None Click to expand... I guess we were lied to.
Oblivion Knight said: Query count shoots up with this add-on enabled.. News and announcements umbrella-online.co.uk Queries with add-on enabled: 36 Queries with add-on disabled: 19 Click to expand... Query: None Click to expand... I guess we were lied to.