After upgrading to 1.4.4 today, I am getting this error every few minutes.
ErrorException: Fatal Error: syntax error, unexpected '!' -library/WidgetFramework/WidgetRenderer.php(498) : runtime-created function:1How do I resolve this?
Generated By: Unknown Account, Today at 12:47 AM
Once the index has been rebuilding a while, the errors stop. But it indicates that something is falling over when it can't get what it wants from Elastic.Server Error Log
Error Info
XenForo_Exception: Elasticsearch error: IndexMissingException[[xfavforums] missing] - library/XenES/Search/SourceHandler/ElasticSearch.php:845
Generated By: Unknown Account, Today at 10:17 AM
Stack Trace
#0 /home/sites/avforums/public_html/library/XenES/Search/SourceHandler/ElasticSearch.php(305): XenES_Search_SourceHandler_ElasticSearch->_logSearchResponseError(Object(stdClass), true)
#1 /home/sites/avforums/public_html/library/XenForo/Search/SourceHandler/Abstract.php(152): XenES_Search_SourceHandler_ElasticSearch->executeSearch('Connect |webcam...', true, Array, Array, 'thread', 5, Object(XenForo_Search_DataHandler_Post))
#2 /home/sites/avforums/public_html/library/XenForo/Search/Searcher.php(111): XenForo_Search_SourceHandler_Abstract->searchType(Object(XenForo_Search_DataHandler_Post), 'Connect |webcam...', Array, 'relevance', 1, 5)
#3 /home/sites/avforums/public_html/library/XMWidgets/Threads/Similar.php(65): XenForo_Search_Searcher->searchType(Object(XenForo_Search_DataHandler_Post), 'Connect |webcam...', Array, 'relevance', 1, 5)
#4 /home/sites/avforums/public_html/library/WidgetFramework/WidgetRenderer.php(683): XMWidgets_Threads_Similar->_render(Array, 'thread_view', Array, Object(XenForo_Template_Public))
#5 /home/sites/avforums/public_html/library/WidgetFramework/Core.php(397): WidgetFramework_WidgetRenderer->render(Array, 'thread_view', Array, Object(XenForo_Template_Public), Object(_WidgetFramework_ArrayOfString))
#6 /home/sites/avforums/public_html/library/WidgetFramework/Core.php(316): WidgetFramework_Core->_renderWidgetsFor('thread_view', Array, Object(XenForo_Template_Public), '')
#7 /home/sites/avforums/public_html/library/WidgetFramework/Listener.php(126): WidgetFramework_Core->renderWidgetsFor('thread_view', Array, Object(XenForo_Template_Public), Array)
#8 [internal function]: WidgetFramework_Listener::template_post_render('thread_view', '\n\n\t\n\t\n\n\n\n\n\n\n\n\n\n...', Array, Object(XenForo_Template_Public))
#9 /home/sites/avforums/public_html/library/XenForo/CodeEvent.php(58): call_user_func_array(Array, Array)
#10 /home/sites/avforums/public_html/library/XenForo/Template/Abstract.php(195): XenForo_CodeEvent::fire('template_post_r...', Array, 'thread_view')
#11 /home/sites/avforums/public_html/library/XenForo/Template/Public.php(110): XenForo_Template_Abstract->render()
#12 /home/sites/avforums/public_html/library/XenForo/ViewRenderer/HtmlPublic.php(123): XenForo_Template_Public->render()
#13 /home/sites/avforums/public_html/library/XenForo/FrontController.php(618): XenForo_ViewRenderer_HtmlPublic->renderContainer(Object(XenForo_Template_Public), Array)
#14 /home/sites/avforums/public_html/library/XenForo/FrontController.php(158): XenForo_FrontController->renderView(Object(XenForo_ControllerResponse_View), Object(XenForo_ViewRenderer_HtmlPublic), Array)
#15 /home/sites/avforums/public_html/index.php(13): XenForo_FrontController->run()
#16 {main}
Request State
array(3) {
["url"] => string(75) "https://www.avforums.com/threads/connect-webcam-through-hdmi-input.1788260/"
["_GET"] => array(1) {
["/threads/connect-webcam-through-hdmi-input_1788260/"] => string(0) ""
}
["_POST"] => array(0) {
}
}
<xen:if hascontent="true">
<div class="avatarList">
<ul>
<xen:contentcheck>
<xen:foreach loop="$threads" value="$thread">
<xen:if hascontent="true">
<xen:comment>[bd] Widget Framework 2.3.5+</xen:comment>
<xen:contentcheck>
<xen:include template="wf_widget_threads_thread_sidebar">
<xen:set var="$_secondRow">
{xen:phrase wf_x_posted, 'user=<a href="{xen:link 'members', {$thread}}">{$thread.username}</a>'} <xen:datetime time="{$thread.post_date}" />
</xen:set>
</xen:include>
</xen:contentcheck>
<xen:else />
<xen:comment>Older version of [bd] Widget Framework...</xen:comment>
<li>
<xen:avatar user="$thread" size="s" img="true" />
<xen:include template="wf_widget_threads_thread_title" />
<div class="userTitle">{xen:phrase wf_x_posted, 'user=<a href="{xen:link 'members', {$thread}}">{$thread.username}</a>'} <xen:datetime time="{$thread.post_date}" /></div>
</li>
</xen:if>
</xen:foreach>
</xen:contentcheck>
</ul>
</div>
</xen:if>
Use Route Filter.Is it possible to remove the "/widget-pages/" from the url of the widget page?
Maybe the widget is cached?Although I marked all forums as read the blue bullets are shown for some thread titels in recent threads widget.
What can be wrong?
Remove completely? No. But you can use route filter to change it to something else like @RoldanLT said.Is it possible to remove the "/widget-pages/" from the url of the widget page?
You will need to edit template "thread_list" for that. This is default XenForo's behavior in all thread lists.In the recent threads widget there is a link for members to the last message of a thread.
How can I get this links for guest as well?
View attachment 96992
You will need template edit or modification to do that, sorry. For example, you can add a hook at the end of thread_list_item and add a widget to that.how can I add something in thread list in New Posts or Node after X thread?
like this
You can set the cache TTL to be longer I think?The RSS feed widget has been hanging the page lately. I have had to disable them. Any idea why this would happen? The feed URL appears to be working fine.
You can edit the template "wf_widget_online_staff".How do I edit the template code of "Users Online Now (Staff)"?
You can use CSS to let the <li>s to float left and limit their width to 50%. That's the easiest way IMHO.How might I get widget Related Threads display in 2 columns?
Template: tinhte_xentag_widget_tagged_threads
Code:<xen:if hascontent="true"> <div class="avatarList"> <ul> <xen:contentcheck> <xen:foreach loop="$threads" value="$thread"> <xen:if hascontent="true"> <xen:comment>[bd] Widget Framework 2.3.5+</xen:comment> <xen:contentcheck> <xen:include template="wf_widget_threads_thread_sidebar"> <xen:set var="$_secondRow"> {xen:phrase wf_x_posted, 'user=<a href="{xen:link 'members', {$thread}}">{$thread.username}</a>'} <xen:datetime time="{$thread.post_date}" /> </xen:set> </xen:include> </xen:contentcheck> <xen:else /> <xen:comment>Older version of [bd] Widget Framework...</xen:comment> <li> <xen:avatar user="$thread" size="s" img="true" /> <xen:include template="wf_widget_threads_thread_title" /> <div class="userTitle">{xen:phrase wf_x_posted, 'user=<a href="{xen:link 'members', {$thread}}">{$thread.username}</a>'} <xen:datetime time="{$thread.post_date}" /></div> </li> </xen:if> </xen:foreach> </xen:contentcheck> </ul> </div> </xen:if>
Looks like the renderer XMWidgets_Threads_Similar try to execute a search and I assume the search engine index is missing during that time (being rebuilt) and caused the error.@xfrocks with Elastic Search, when I reindex with the delete existing index option, I get the following error dozens of times:
Once the index has been rebuilding a while, the errors stop. But it indicates that something is falling over when it can't get what it wants from Elastic.
Is this a problem with the widget framework?
We use essential cookies to make this site work, and optional cookies to enhance your experience.