Sorry, I forgot it was still in logs. Like one of these every second. Hundreds of entries.@beerForo we did not reproduce any server errors with it, could you please open a ticket and give us some examples of errors so we can troubleshoot it further. If you don't have any examples that's fine, if there is an ongoing issue I guess one of users will reproduce and report it.
Thank you!
ErrorException: Template error: [E_WARNING] Attempt to read property "is_auto_thumbnail" on null src/addons/AL/ThreadThumbnail/XF/Entity/Thread.php:261
Generated by: Unknown account Aug 13, 2021 at 4:54 PM
Stack trace
#0 src/addons/AL/ThreadThumbnail/XF/Entity/Thread.php(261): XF\Template\Templater->handleTemplateError(2, '[E_WARNING] Att...', '/home/*****/pub...', 261)
#1 src/addons/AL/ThreadThumbnail/XF/Entity/Thread.php(80): AL\ThreadThumbnail\XF\Entity\Thread->hasThumbnail()
#2 [internal function]: AL\ThreadThumbnail\XF\Entity\Thread->getMetaThumbnailUrl()
#3 src/XF/Template/Templater.php(1184): call_user_func_array(Array, Array)
#4 internal_data/code_cache/templates/l1/s2/public/thread_view.php(633): XF\Template\Templater->method(Object(TickTackk\ChangeContentOwner\XF\Entity\Thread), 'getMetaThumbnai...', Array)
#5 src/XF/Template/Templater.php(1644): XF\Template\Templater->{closure}(Object(XF\Template\Templater), Array, Object(XF\Template\ExtensionSet))
#6 src/XF/Template/Template.php(24): XF\Template\Templater->renderTemplate('thread_view', Array)
#7 src/XF/Mvc/Renderer/Html.php(48): XF\Template\Template->render()
#8 src/XF/Mvc/Dispatcher.php(458): XF\Mvc\Renderer\Html->renderView('XF:Thread\\View', 'public:thread_v...', Array)
#9 src/XF/Mvc/Dispatcher.php(440): XF\Mvc\Dispatcher->renderView(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#10 src/XF/Mvc/Dispatcher.php(400): XF\Mvc\Dispatcher->renderReply(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#11 src/XF/Mvc/Dispatcher.php(58): XF\Mvc\Dispatcher->render(Object(XF\Mvc\Reply\View), 'html')
#12 src/XF/App.php(2344): XF\Mvc\Dispatcher->run()
#13 src/XF.php(512): XF\App->run()
#14 index.php(20): XF::runApp('XF\\Pub\\App')
#15 {main}
Request state
array(4) {
["url"] => string(54) "/threads/promo.58324/"
["referrer"] => bool(false)
["_GET"] => array(0) {
}
["_POST"] => array(0) {
}
}
We also faced the same issue with the recent update. Though we have it resolved temporarily by changing line no 161 inSorry, I forgot it was still in logs. Like one of these every second. Hundreds of entries.
Code:ErrorException: Template error: [E_WARNING] Attempt to read property "is_auto_thumbnail" on null src/addons/AL/ThreadThumbnail/XF/Entity/Thread.php:261 Generated by: Unknown account Aug 13, 2021 at 4:54 PM Stack trace #0 src/addons/AL/ThreadThumbnail/XF/Entity/Thread.php(261): XF\Template\Templater->handleTemplateError(2, '[E_WARNING] Att...', '/home/*****/pub...', 261) #1 src/addons/AL/ThreadThumbnail/XF/Entity/Thread.php(80): AL\ThreadThumbnail\XF\Entity\Thread->hasThumbnail() #2 [internal function]: AL\ThreadThumbnail\XF\Entity\Thread->getMetaThumbnailUrl() #3 src/XF/Template/Templater.php(1184): call_user_func_array(Array, Array) #4 internal_data/code_cache/templates/l1/s2/public/thread_view.php(633): XF\Template\Templater->method(Object(TickTackk\ChangeContentOwner\XF\Entity\Thread), 'getMetaThumbnai...', Array) #5 src/XF/Template/Templater.php(1644): XF\Template\Templater->{closure}(Object(XF\Template\Templater), Array, Object(XF\Template\ExtensionSet)) #6 src/XF/Template/Template.php(24): XF\Template\Templater->renderTemplate('thread_view', Array) #7 src/XF/Mvc/Renderer/Html.php(48): XF\Template\Template->render() #8 src/XF/Mvc/Dispatcher.php(458): XF\Mvc\Renderer\Html->renderView('XF:Thread\\View', 'public:thread_v...', Array) #9 src/XF/Mvc/Dispatcher.php(440): XF\Mvc\Dispatcher->renderView(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View)) #10 src/XF/Mvc/Dispatcher.php(400): XF\Mvc\Dispatcher->renderReply(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View)) #11 src/XF/Mvc/Dispatcher.php(58): XF\Mvc\Dispatcher->render(Object(XF\Mvc\Reply\View), 'html') #12 src/XF/App.php(2344): XF\Mvc\Dispatcher->run() #13 src/XF.php(512): XF\App->run() #14 index.php(20): XF::runApp('XF\\Pub\\App') #15 {main} Request state array(4) { ["url"] => string(54) "/threads/promo.58324/" ["referrer"] => bool(false) ["_GET"] => array(0) { } ["_POST"] => array(0) { } }
AL\ThreadThumbnail\XF\Entity\Thread.php
to if (
isset($this->ThreadThumbnail->is_auto_thumbnail) && $this->ThreadThumbnail->is_auto_thumbnail
&& in_array($this->thread_id, array_map('intval', explode(',', \XF::options()->altt_disbaled_threads)), true)
)
This version fixes a PHP bug: ErrorException: Template error: [E_WARNING] Attempt to read property "is_auto_thumbnail" on null src/addons/AL/ThreadThumbnail/XF/Entity/Thread.php:261
The new version is available for all licensed customers at https://customers.addonslab.com/marketplace.php/my-services/
Thank you!
With this bug too please. I am using an older version because of the bugs.BUG
I upgraded from 2.6.0. The TT is showing in What's New/New Posts even though I have it set to show in forum view only. I'm about to go back to 2.6.0 had no issues.
This version fixes a bug that caused the option Enable only in forum view not to work and the thumbnails to be shown on all pages instead of forum view pages only.
The new version is available for all licensed customers at
Thank you!
This version fixes a bug where the thumbnail is not shown for Youtube video URLs containing playlist information.
The new version is available for all licensed customers at https://customers.addonslab.com/marketplace.php/my-services/
Thank you!
@AddonsLab - Can you please tell me how this works with the new Articles thread type and forums? Will it allow the member to specify which image is shown for the photo in the article list? Will it affect the way these images are displayed?
The product doesn't have such an option for now.Is there a way of only showing thumbnails in threads by a certain user group ?
.has-thumbnail div.avatar {
width: 100px;
height: 56px;
border-radius: 5px !important;
}
.has-thumbnail .threadThumbnailWrapper div.avatar img.alignThumbnail {
object-fit: cover;
min-width: 100%;
min-height: 100%;
max-width: 100px;
max-height: 56px;
}
div[data-type=thread] .has-thumbnail .structItem-cell.structItem-cell--icon:not(.structItem-cell--iconEnd):nth-child(2) {
width: 110px;
}
Okay, maybe a stupid question, but how would I edit that to get the thumbnails to display at, say, a width of 100px and height of 75px, without it changing the avatar size? I experimented with adjusting the values you gave me, but the thumbnail size never changed.I'm using this in extra.less for rectangular thumbs, adjust as needed:
Code:.has-thumbnail div.avatar { width: 100px; height: 56px; border-radius: 5px !important; } .has-thumbnail .threadThumbnailWrapper div.avatar img.alignThumbnail { object-fit: cover; min-width: 100%; min-height: 100%; max-width: 100px; max-height: 56px; } div[data-type=thread] .has-thumbnail .structItem-cell.structItem-cell--icon:not(.structItem-cell--iconEnd):nth-child(2) { width: 110px; }
Yeah, definitely more of an effort. The last thumbnail addon I used, I think all I did was literally set the width field to 100px and it looked fine in every style I have, all nine or ten of them. I'm sure it's user error, though.Try a support ticket on their site, they helped me tweak the code. It's confusing but not sure why it doesn't work. But they will help customize.
We use essential cookies to make this site work, and optional cookies to enhance your experience.