Invision Community 4: SEO, prepare for v5 and dormant account notifications By Matt Monday at 02:04 PM
GoAncestry Posted May 29, 2016 Posted May 29, 2016 I am now getting this error since the 4.1.12.1 upgrade. [[Template core/front/global/widgetContainer is throwing an error. This theme may be out of date. Run the support tool in the AdminCP to restore the default theme.]] Ran the IPS Support tool, reverted to a new default, still get same error in all themes.
Brian K. Posted May 30, 2016 Posted May 30, 2016 I've got the same problem on every theme including default.
Ioannis D Posted May 30, 2016 Posted May 30, 2016 Same here with that message viewable only on guests.
Adlago Posted May 30, 2016 Posted May 30, 2016 On 29.05.2016 г. at 2:07 PM, GoAncestry said: [[Template core/front/global/widgetContainer is throwing an error. This theme may be out of date. Run the support tool in the AdminCP to restore the default theme.]] Compare this template -"core/front/global/widgetContainer" . With me so and has no problem. {{if ( isset( \IPS\Output::i()->sidebar['widgets'][ $id ] ) && count( \IPS\Output::i()->sidebar['widgets'][ $id ] ) ) || ( \IPS\Dispatcher::i()->application instanceof \IPS\Application AND \IPS\Dispatcher::i()->application->canManageWidgets() )}} <div class='cWidgetContainer {{if !isset( \IPS\Output::i()->sidebar['widgets'][ $id ] ) or !count( \IPS\Output::i()->sidebar['widgets'][ $id ] )}}ipsHide{{endif}}' {{if \IPS\Dispatcher::i()->application->canManageWidgets()}}data-controller='core.front.widgets.area'{{endif}} data-role='widgetReceiver' data-orientation='{$orientation}' data-widgetArea='{$id}'> <ul class='ipsList_reset'> {{if isset( \IPS\Output::i()->sidebar['widgets'][ $id ] )}} {{foreach \IPS\Output::i()->sidebar['widgets'][ $id ] as $widget}} <li class='ipsWidget ipsWidget_{$orientation} ipsBox{{if trim( (string) $widget ) === ''}} ipsWidgetHide ipsHide{{endif}}' data-blockID='{{if isset($widget->app) AND !empty($widget->app)}}app_{$widget->app}_{{else}}plugin_{$widget->plugin}_{{endif}}{$widget->key}_{$widget->uniqueKey}'{{if $widget->hasConfiguration()}} data-blockConfig="true"{{endif}} data-blockTitle="{lang="block_{$widget->key}"}" data-controller='core.front.widgets.block'>{$widget|raw}</li> {{endforeach}} {{endif}} </ul> </div> {{endif}}
BomAle Posted May 30, 2016 Posted May 30, 2016 try to edit constants.php and add: define('DEBUG_LOG', true); go into page that show you error and after on admincp > support > system logs ... see more logs and share.
NovaRO Posted May 30, 2016 Posted May 30, 2016 Method IPS\cms\widgets\Database::__toString() must return a string value ErrorException: DOMDocument::load(): php_network_getaddresses: getaddrinfo failed: Temporary failure in name resolution (2) #0 [internal function]: IPS\IPS::errorHandler(2, 'DOMDocument::lo...', '/var/www/html/f...', 78, Array) #1 /var/www/html/forum/rsslib.php(78): DOMDocument->load('https://novarag...') #2 /var/www/html/forum/rsslib.php(146): RSS_Retrieve(Array) #3 /var/www/html/forum/applications/cms/sources/Blocks/Block.php(196) : eval()'d code(3): RSS_Display(Array, 1) #4 /var/www/html/forum/applications/cms/sources/Blocks/Block.php(196): eval() #5 /var/www/html/forum/applications/cms/widgets/Blocks.php(138): IPS\cms\Blocks\_Block::display('rss', 'vertical') #6 /var/www/html/forum/system/Widget/Widget.php(724): IPS\cms\widgets\_Blocks->render() #7 /var/www/html/forum/system/Theme/Theme.php(718) : eval()'d code(12079): IPS\_Widget->__toString() #8 [internal function]: IPS\Theme\class_core_front_global->widgetContainer('sidebar', 'vertical') #9 /var/www/html/forum/system/Theme/SandboxedTemplate.php(57): call_user_func_array(Array, Array) #10 /var/www/html/forum/system/Theme/Theme.php(718) : eval()'d code(9990): IPS\Theme\_SandboxedTemplate->__call('widgetContainer', Array) #11 /var/www/html/forum/system/Theme/Theme.php(718) : eval()'d code(9990): IPS\Theme\SandboxedTemplate->widgetContainer('sidebar', 'vertical') #12 [internal function]: IPS\Theme\class_core_front_global->sidebar('right') #13 /var/www/html/forum/system/Theme/SandboxedTemplate.php(57): call_user_func_array(Array, Array) #14 /var/www/html/forum/system/Theme/Theme.php(718) : eval()'d code(4919): IPS\Theme\_SandboxedTemplate->__call('sidebar', Array) #15 /var/www/html/forum/system/Theme/Theme.php(718) : eval()'d code(4919): IPS\Theme\SandboxedTemplate->sidebar('right') #16 [internal function]: IPS\Theme\class_core_front_global->globalTemplate('Forums - NovaRO', '\n\n\n<div class='...', Array) #17 /var/www/html/forum/system/Theme/SandboxedTemplate.php(57): call_user_func_array(Array, Array) #18 /var/www/html/forum/system/Dispatcher/Dispatcher.php(149): IPS\Theme\_SandboxedTemplate->__call('globalTemplate', Array) #19 /var/www/html/forum/system/Dispatcher/Dispatcher.php(149): IPS\Theme\SandboxedTemplate->globalTemplate('Forums - NovaRO', '\n\n\n<div class='...', Array) #20 /var/www/html/forum/system/Dispatcher/Standard.php(101): IPS\_Dispatcher->finish() #21 /var/www/html/forum/system/Dispatcher/Front.php(499): IPS\Dispatcher\_Standard->finish() #22 /var/www/html/forum/system/Dispatcher/Dispatcher.php(131): IPS\Dispatcher\_Front->finish() #23 /var/www/html/forum/index.php(13): IPS\_Dispatcher->run() #24 {main} #0 /var/www/html/forum/init.php(498): IPS\_Log::log('ErrorException:...', 'uncaught_except...') #1 /var/www/html/forum/system/Widget/Widget.php(803): IPS\IPS::exceptionHandler(Object(ErrorException)) #2 /var/www/html/forum/system/Theme/Theme.php(718) : eval()'d code(12079): IPS\_Widget->__toString() #3 [internal function]: IPS\Theme\class_core_front_global->widgetContainer('sidebar', 'vertical') #4 /var/www/html/forum/system/Theme/SandboxedTemplate.php(57): call_user_func_array(Array, Array) #5 /var/www/html/forum/system/Theme/Theme.php(718) : eval()'d code(9990): IPS\Theme\_SandboxedTemplate->__call('widgetContainer', Array) #6 /var/www/html/forum/system/Theme/Theme.php(718) : eval()'d code(9990): IPS\Theme\SandboxedTemplate->widgetContainer('sidebar', 'vertical') #7 [internal function]: IPS\Theme\class_core_front_global->sidebar('right') #8 /var/www/html/forum/system/Theme/SandboxedTemplate.php(57): call_user_func_array(Array, Array) #9 /var/www/html/forum/system/Theme/Theme.php(718) : eval()'d code(4919): IPS\Theme\_SandboxedTemplate->__call('sidebar', Array) #10 /var/www/html/forum/system/Theme/Theme.php(718) : eval()'d code(4919): IPS\Theme\SandboxedTemplate->sidebar('right') #11 [internal function]: IPS\Theme\class_core_front_global->globalTemplate('Forums - NovaRO', '\n\n\n<div class='...', Array) #12 /var/www/html/forum/system/Theme/SandboxedTemplate.php(57): call_user_func_array(Array, Array) #13 /var/www/html/forum/system/Dispatcher/Dispatcher.php(149): IPS\Theme\_SandboxedTemplate->__call('globalTemplate', Array) #14 /var/www/html/forum/system/Dispatcher/Dispatcher.php(149): IPS\Theme\SandboxedTemplate->globalTemplate('Forums - NovaRO', '\n\n\n<div class='...', Array) #15 /var/www/html/forum/system/Dispatcher/Standard.php(101): IPS\_Dispatcher->finish() #16 /var/www/html/forum/system/Dispatcher/Front.php(499): IPS\Dispatcher\_Standard->finish() #17 /var/www/html/forum/system/Dispatcher/Dispatcher.php(131): IPS\Dispatcher\_Front->finish() #18 /var/www/html/forum/index.php(13): IPS\_Dispatcher->run() #19 {main} is the error being thrown up.
DesignzShop Posted May 30, 2016 Posted May 30, 2016 If you've modified the template @Adlago referred too do a comparison with the default template. Check other templates also to make sure they are up to date. If you didn't create the theme contact the author.
NovaRO Posted May 30, 2016 Posted May 30, 2016 Already compared it. It's exactly the same in that file.
Adlago Posted May 30, 2016 Posted May 30, 2016 2 minutes ago, NovaRO said: Already compared it. It's exactly the same in that file. This template is a message @GoAncestry Check your messages right - there are specified template error.
NovaRO Posted May 30, 2016 Posted May 30, 2016 Also, it's the default IPS theme with minor adjustments here and there.
Adlago Posted May 30, 2016 Posted May 30, 2016 Perhaps you had a momentary interruption of internet connection in updates or server problem. It is better for you to check every basic templates.
BomAle Posted May 31, 2016 Posted May 31, 2016 you must remove widget on cms that call: RSS_Display rsslib.php... and make a recache of widgets on support tool
Duken Posted May 31, 2016 Posted May 31, 2016 8 hours ago, BomAle said: you must remove widget on cms that call: RSS_Display rsslib.php... and make a recache of widgets on support tool I dont have this in widgetcontainer. Quote {{if ( isset( \IPS\Output::i()->sidebar['widgets'][ $id ] ) && count( \IPS\Output::i()->sidebar['widgets'][ $id ] ) ) || ( \IPS\Dispatcher::i()->application instanceof \IPS\Application AND \IPS\Dispatcher::i()->application->canManageWidgets() )}} <div class='cWidgetContainer {{if !isset( \IPS\Output::i()->sidebar['widgets'][ $id ] ) or !count( \IPS\Output::i()->sidebar['widgets'][ $id ] )}}ipsHide{{endif}}' {{if \IPS\Dispatcher::i()->application->canManageWidgets()}}data-controller='core.front.widgets.area'{{endif}} data-role='widgetReceiver' data-orientation='{$orientation}' data-widgetArea='{$id}'> <ul class='ipsList_reset'> {{if isset( \IPS\Output::i()->sidebar['widgets'][ $id ] )}} {{foreach \IPS\Output::i()->sidebar['widgets'][ $id ] as $widget}} <li class='ipsWidget ipsWidget_{$orientation} ipsBox{{if trim( (string) $widget ) === ''}} ipsWidgetHide ipsHide{{endif}}' data-blockID='{{if isset($widget->app) AND !empty($widget->app)}}app_{$widget->app}_{{else}}plugin_{$widget->plugin}_{{endif}}{$widget->key}_{$widget->uniqueKey}'{{if $widget->hasConfiguration()}} data-blockConfig="true"{{endif}} data-blockTitle="{lang="block_{$widget->key}"}" data-controller='core.front.widgets.block'>{$widget|raw}</li> {{endforeach}} {{endif}} </ul> </div> {{endif}} How can i solve this error?
GoAncestry Posted May 31, 2016 Author Posted May 31, 2016 I created a new DB for my pages application. The only place it throws the error is when I add a new DB entry
DesignzShop Posted May 31, 2016 Posted May 31, 2016 If you're not using a custom theme with the new install and this happens in the default theme, submit a ticket with the error information.
Dennis_87 Posted May 31, 2016 Posted May 31, 2016 I have same error on my site after latest upgrade. Only happens with pages/database entry
BomAle Posted June 1, 2016 Posted June 1, 2016 go into adminCP > support > sql toolbox > select table "cms_page_widget_areas" and run: DELETE FROM cms_page_widget_areas
ep0ch Posted June 1, 2016 Posted June 1, 2016 I'm getting a Theme error too with some detail here: Not sure if it's related
Joey_M Posted June 1, 2016 Posted June 1, 2016 16 hours ago, BomAle said: go into adminCP > support > sql toolbox > select table "cms_page_widget_areas" and run: DELETE FROM cms_page_widget_areas ^ Does this delete the widgets from the page(s)? I have the same error, however only after upgrading to the latest version (as mentioned above).
BomAle Posted June 1, 2016 Posted June 1, 2016 2 minutes ago, Joey_M said: ^ Does this delete the widgets from the page(s)? I have the same error, however only after upgrading to the latest version (as mentioned above). Yes, also I had similar issue few days ago... solved cleaning that table on my case the bottom breadcrumb show double..
Joey_M Posted June 1, 2016 Posted June 1, 2016 I'm only noticing the error on the '?do=form' page when I submit an article to my site. I haven't noticed the error or any others elsewhere, I'm a little anxious not to have to re-do all my pages/layout in terms of the widget. I'll hold off, as I hope there may be a fix without the hassle of having to re-edit every single page but thank you for sharing. No breadcrumb issues either, very strange.
Dennis_87 Posted June 1, 2016 Posted June 1, 2016 On my site the problem was the database/articles was placed in the header widget location and not body. But issue did only happen after latest update.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.