Checking in![]()
I cannot reproduce this.
There shouldn't be such queries (wrapped in subquery) in a standard environment.
As i can see from the stacktrace and "/category/forum/page-274" URL it can be caused by another add-on.
Like Aggregating Forums.
Checking in![]()
I cannot reproduce this.
There shouldn't be such queries (wrapped in subquery) in a standard environment.
As i can see from the stacktrace and "/category/forum/page-274" URL it can be caused by another add-on.
Like Aggregating Forums.
@Ozzy47
Updated to 2.1.1 yesterday and for some reason I'm still seeing these errors. Tried reinstalling with the overwrite box checked too, no luck.
Hey @Ozzy47, getting a bunch of these errors after updating to XF 2.2.6 P2. Any ideas?
Code:Server error log XF\Db\Exception: MySQL statement prepare error [1054]: Unknown column 'bump_log.bump_date' in 'order clause' src/XF/Db/AbstractStatement.php:228 Generated by: Unknown account Aug 12, 2021 at 3:09 AM Stack trace SELECT `xf_thread`.*, `xf_user_User_1`.*, `xf_user_LastPoster_2`.* FROM ( SELECT `xf_thread`.`thread_id` FROM `xf_thread` LEFT JOIN ( SELECT thread_id, max(bump_date) as bump_date FROM xf_bump_thread_log GROUP BY thread_id ) AS `bump_log` ON (`bump_log`.`thread_id` = `xf_thread`.`thread_id`) WHERE (`xf_thread`.`node_id` = 41) AND ((`xf_thread`.`discussion_state` IN ('visible'))) AND (`xf_thread`.`sticky` = 0) ORDER BY IFNULL(`bump_log`.`bump_date`, `xf_thread`.`post_date`) DESC LIMIT 40 OFFSET 10920 ) as `earlyJoinQuery_3` JOIN `xf_thread` ON (`xf_thread`.`thread_id` = `earlyJoinQuery_3`.`thread_id`) LEFT JOIN `xf_user` AS `xf_user_User_1` ON (`xf_user_User_1`.`user_id` = `xf_thread`.`user_id`) LEFT JOIN `xf_user` AS `xf_user_LastPoster_2` ON (`xf_user_LastPoster_2`.`user_id` = `xf_thread`.`last_post_user_id`) ORDER BY IFNULL(`bump_log`.`bump_date`, `xf_thread`.`post_date`) DESC LIMIT 40 ------------ #0 src/XF/Db/Mysqli/Statement.php(196): XF\Db\AbstractStatement->getException('MySQL statement...', 1054, '42S22') #1 src/XF/Db/Mysqli/Statement.php(39): XF\Db\Mysqli\Statement->getException('MySQL statement...', 1054, '42S22') #2 src/XF/Db/Mysqli/Statement.php(54): XF\Db\Mysqli\Statement->prepare() #3 src/XF/Db/AbstractAdapter.php(94): XF\Db\Mysqli\Statement->execute() #4 src/XF/Mvc/Entity/Finder.php(1379): XF\Db\AbstractAdapter->query(' SELECT `xf_...') #5 src/addons/SV/AggregatingForums/XF/Finder/Thread.php(110): XF\Mvc\Entity\Finder->fetch(NULL, NULL) #6 src/XF/Pub/Controller/Forum.php(247): SV\AggregatingForums\XF\Finder\Thread->fetch() #7 src/addons/AL/ThreadFilter/XF/Pub/Controller/Forum.php(90): XF\Pub\Controller\Forum->actionForum(Object(XF\Mvc\ParameterBag)) #8 src/addons/EWR/Atendo/Pub/Controller/Forum.php(11): AL\ThreadFilter\XF\Pub\Controller\Forum->actionForum(Object(XF\Mvc\ParameterBag)) #9 src/addons/SV/AggregatingForums/XF/Pub/Controller/Forum.php(34): EWR\Atendo\Pub\Controller\Forum->actionForum(Object(XF\Mvc\ParameterBag)) #10 src/addons/SV/OptimizedListQueries/XF/Pub/Controller/Forum.php(31): SV\AggregatingForums\XF\Pub\Controller\Forum->actionForum(Object(XF\Mvc\ParameterBag)) #11 src/addons/AddonFlare/GlobalIgnore/XF/Pub/Controller/Forum.php(21): SV\OptimizedListQueries\XF\Pub\Controller\Forum->actionForum(Object(XF\Mvc\ParameterBag)) #12 src/XF/Mvc/Dispatcher.php(350): AddonFlare\GlobalIgnore\XF\Pub\Controller\Forum->actionForum(Object(XF\Mvc\ParameterBag)) #13 src/XF/Mvc/Dispatcher.php(257): XF\Mvc\Dispatcher->dispatchClass('XF:Forum', 'Forum', Object(XF\Mvc\RouteMatch), Object(SV\RedisCache\XF\Pub\Controller\Forum), Object(XF\Mvc\Reply\Reroute)) #14 src/XF/Mvc/Dispatcher.php(113): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(SV\RedisCache\XF\Pub\Controller\Forum), Object(XF\Mvc\Reply\Reroute)) #15 src/XF/Mvc/Dispatcher.php(55): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch)) #16 src/XF/App.php(2344): XF\Mvc\Dispatcher->run() #17 src/XF.php(512): XF\App->run() #18 index.php(20): XF::runApp('XF\\Pub\\App') #19 {main} Request state array(4) { ["url"] => string(32) "/category/forum/page-274" ["referrer"] => bool(false) ["_GET"] => array(1) { ["/category/forum/page-274"] => string(0) "" } ["_POST"] => array(0) { } }
I cannot reproduce this.
There shouldn't be such queries (wrapped in subquery) in a standard environment.
As i can see from the stacktrace and "/category/forum/page-274" URL it can be caused by another add-on.
Like Aggregating Forums.
That left-join should have been prevented being pruned when being used by the order-by-clause. Will investigate sometime in the next few days
Standard Lib v1.10.2 should fix this issueAwesome, thanks!
2.1.2:
- Added bump button in thread list
- Added button in thread tools menu (can be enabled in options)
- Added ability to disallow bumping for specific threads (from moderator tools menu)
This update was sponsored by @Moshe1010
Hi @Ozzy47
Thank you for this add-on. I have a question, what does the "Default Sort Forums" option do? I don't understand it.
I also noticed that when you bump a thread, it bumps the last posters post and changes the date as if though the last poster posted at the time of the bump. I'm not keen on that. Is there a way to avoid this from happening?
Edit: I also noticed that it doesn't show the bump on the forum list.
The plugin is functioning very incorrectly.
After using the "Rebuild threads" function, a situation arises where, if a user raised their own thread using this add-on and also deleted other users' messages in their thread, they cease to be the author of the thread. The thread is transferred from them to another user whose message was deleted.
The original thread author can no longer bump their own thread.
A third-party person becomes the author of the thread, gaining the ability to even delete other threads!
I have encountered such situations, and there have been numerous complaints already!
I can duplicate this as well. When the thread has a single post of TS, the latest bump date/time only showing old timestamp in forum_view and New post widget.Edit: I also noticed that it doesn't show the bump on the forum list.
We use essential cookies to make this site work, and optional cookies to enhance your experience.