Jump to content

Upgrade IPS theme error


GoAncestry

Recommended Posts

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.

Link to comment
Share on other sites

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}}

 

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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?

Link to comment
Share on other sites

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).

Link to comment
Share on other sites

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..error.png

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...