Does running the following in phpMyAdmin fix this for you?
UPDATE xf_thread SET discussion_type = '' WHERE discussion_type = 'blogPost'
Where else besides on icon rebuilding is this happening for you? The first post seems to indicate the what's new page but I'm not getting any errors in either of those places after uninstalling the addon myself on my prod server.No it doesnt fix it
If it's only happening there then I'm not sure it has to do with a cron job. No cron job deals with the thread type handler, could you past the stack trace from the error that you get on the rebuild icons job as to see where that leads.It says this too. There are manual rebuild jobs awaiting completion. Continue running them
It doesn't happen anywhere else. I think it's a cron job.
Bug fixes
- member_list_macros template modification: Removed usage of canViewResources and replaced with canViewBlogs
- member_macros template modification: Removed usage of canViewResources and replaced with canViewBlogs
InvalidArgumentException: Macro public:custom_fields_macros :: custom_fields_values() error: Container key 'customFields.resourceReviews' was not found src/XF/Container.php:48
Generated by:xxxxxx Sep 24, 2024 at 1:49 PM
Stack trace
#0 src/XF/App.php(2365): XF\Container->offsetGet('customFields.re...')
#1 src/XF/Template/Templater.php(1283): XF\App->getCustomFields('resourceReviews', 'below_review', NULL, Array)
#2 internal_data/code_cache/templates/l1/s133/public/custom_fields_macros.php(85): XF\Template\Templater->method(Object(XF\Pub\App), 'getCustomFields', Array)
#3 src/XF/Template/Templater.php(922): XF\Template\Templater->{closure}(Object(XF\Template\Templater), Array, NULL)
#4 internal_data/code_cache/templates/l1/s133/public/custom_fields_macros.php(25): XF\Template\Templater->callMacro('custom_fields_m...', 'custom_fields_v...', Array, Array)
#5 src/XF/Template/Templater.php(922): XF\Template\Templater->{closure}(Object(XF\Template\Templater), Array, NULL)
#6 internal_data/code_cache/templates/l1/s133/public/taylorj_blogs_blog_post_view.php(401): XF\Template\Templater->callMacro('custom_fields_m...', 'custom_fields_v...', Array, Array)
#7 src/XF/Template/Templater.php(1792): XF\Template\Templater->{closure}(Object(XF\Template\Templater), Array, Object(XF\Template\ExtensionSet))
#8 src/XF/Template/Template.php(24): XF\Template\Templater->renderTemplate('taylorj_blogs_b...', Array)
#9 src/XF/Mvc/Renderer/Html.php(50): XF\Template\Template->render()
#10 src/XF/Mvc/Dispatcher.php(471): XF\Mvc\Renderer\Html->renderView('TaylorJ\\Blogs:B...', 'public:taylorj_...', Array)
#11 src/XF/Mvc/Dispatcher.php(453): XF\Mvc\Dispatcher->renderView(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#12 src/XF/Mvc/Dispatcher.php(412): XF\Mvc\Dispatcher->renderReply(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#13 src/XF/Mvc/Dispatcher.php(66): XF\Mvc\Dispatcher->render(Object(XF\Mvc\Reply\View), 'html')
#14 src/XF/App.php(2826): XF\Mvc\Dispatcher->run()
#15 src/XF.php(806): XF\App->run()
#16 index.php(23): XF::runApp('XF\\Pub\\App')
#17 {main}
Request state
array(4) {
["url"] => string(29) "/blogs/post/new-blog-posts.1/"
["referrer"] => string(54) "https://xxxxxx/blogs/blog/petes-blog.1/"
["_GET"] => array(0) {
}
["_POST"] => array(0) {
}
}
Bug Fixes:
- Blog posts that are scheduled with a date in the past now throw an error saying to choose a date in the future
- Removed instances of Resource reviews in blog_post_view
For this specifically I am now just throwing an error with a stack trace that also says to choose a date in the future. I thought of just having any blog post with a date selected in the past to just be forcefully saved as a visible post instead but thought that may be too anti user, especially if they really did want the blog post to be scheduled rather than visible.I noticed if you start the post at 1:03 am and it says 1:03 am where you schedule later it errors but if you start the post at 1:04 am and schedule it to 1:10 it works fine.
It needs to say this "Please schedule at a later time" instead of the error below in my opinion.
TypeError: XF\Repository\PostRepository::findPostsForThreadView(): Argument #1 ($thread) must be of type XF\Entity\Thread, null given, called in /public_html/src/addons/TaylorJ/Blogs/Pub/Controller/BlogPost.php on line 36 in src/XF/Repository/PostRepository.php at line 12
- XF\Repository\PostRepository->findPostsForThreadView() in src/addons/TaylorJ/Blogs/Pub/Controller/BlogPost.php at line 36
- TaylorJ\Blogs\Pub\Controller\BlogPost->actionIndex() in src/XF/Mvc/Dispatcher.php at line 362
- XF\Mvc\Dispatcher->dispatchClass() in src/XF/Mvc/Dispatcher.php at line 264
- XF\Mvc\Dispatcher->dispatchFromMatch() in src/XF/Mvc/Dispatcher.php at line 121
- XF\Mvc\Dispatcher->dispatchLoop() in src/XF/Mvc/Dispatcher.php at line 63
- XF\Mvc\Dispatcher->run() in src/XF/App.php at line 2826
- XF\App->run() in src/XF.php at line 806
- XF::runApp() in index.php at line 23
For now it's going to be as a stack trace until I figure out a better looking way for it to appear. I am already toying with using XF's auto verify system that can be used in entities but haven't had the chance to try that out yet fully.I don't mean to be a jerk or anything but I would prefer no stack trace error to show up at all. If you can't figure it out, maybe you can make a option to remove the scheduler all together. I would like that very much.
It should be able to as of nowCan this be permissions-based use? Meaning, something that you could set exclusively for premium members?
For now it's going to be as a stack trace until I figure out a better looking way for it to appear. I am already toying with using XF's auto verify system that can be used in entities but haven't had the chance to try that out yet fully.
We use essential cookies to make this site work, and optional cookies to enhance your experience.