Precisely.
Ha! LOVE your site's niche by the way. I had a podcast at AlienLove dot com back in the day with Shabby and Blue!![]()
Consciousness and the Paranormal — Part 10
This thread is a continuation of the thread "Consciousness and the Paranormal — Part 9" originally posted by Gene Steinberg. Please remember to watch this thread if you were watching the previous one.www.theparacast.com
/*
$db->query("
UPDATE xf_post
SET post_date = ?
WHERE post_id = ?
", [\XF::$time, $thread->last_post_id]);
*/
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) {
}
}
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) { } }
Changelog:
- Now depends on Standard Library by Xon (v1.8.0+)
- Refactor: standarize XF class extensions & declaration of schema properties
- Added missing filterbar sort phrase

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) { } }
@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.
We’ll look into it as soon as we can.
SELECT COUNT(*) FROMxf_threadLEFT JOIN ( SELECT thread_id, max(bump_date) as bump_date
We use essential cookies to make this site work, and optional cookies to enhance your experience.