Jump to content

Recommended Posts

Posted

This error was on my site: 

[[Template gallery/front/view/comments is throwing an error. This theme may be out of date. Run the support tool in the AdminCP to restore the default theme.]]

I could fix it by duplicating of my custom style and setting this as a new default style.

When giving it into the google search it throws out some other sites having this or similar template errors. 

And by the way, often my style fu*** up by itself without any reason. For example it gives a 500 error on profile pages or other pages and can only got fixed by doing the step I described above (duplicating of the current style). Sometimes I have this once in two weeks, sometimes after several months. This makes no sense at all.

Posted

Is anything being logged in your system log or the servers error log?

I've seen this happening with 3rd party theme hooks wich receive randomly broken data.

Posted
5 minutes ago, Daniel F said:

Is anything being logged in your system log or the servers error log?

Indeed, there's a lot in the system log. For example:

 

ParseError: syntax error, unexpected ''UTF' (T_ENCAPSED_AND_WHITESPACE), expecting ')' in /home/www/doc/mysite/www/uploads/template_15_067dfd137d32ec801d5055061008a300_global.php:572
Stack trace:
#0 /home/www/doc/mysite/www/system/Theme/Theme.php(741): IPS\Theme\Cache\_Template->exists()
#1 /home/www/doc/mysite/www/system/Theme/Theme.php(824) : eval()'d code(56): IPS\_Theme->getTemplate('global', 'gallery')
#2 /home/www/doc/mysite/www/system/Theme/SandboxedTemplate.php(58): IPS\Theme\class_gallery_front_view->comments(Object(IPS\gallery\Image), NULL)
#3 /home/www/doc/mysite/www/applications/gallery/sources/Image/Image.php(578): IPS\Theme\_SandboxedTemplate->__call('comments', Array)
#4 /home/www/doc/mysite/www/applications/gallery/modules/front/gallery/view.php(139): IPS\gallery\_Image->commentReviews('comments', NULL)
#5 /home/www/doc/mysite/www/system/Dispatcher/Controller.php(96): IPS\gallery\modules\front\gallery\_view->manage()
#6 /home/www/doc/mysite/www/system/Content/Controller.php(50): IPS\Dispatcher\_Controller->execute()
#7 /home/www/doc/mysite/www/applications/gallery/modules/front/gallery/view.php(61): IPS\Content\_Controller->execute()
#8 /home/www/doc/mysite/www/system/Dispatcher/Dispatcher.php(146): IPS\gallery\modules\front\gallery\_view->execute()
#9 /home/www/doc/mysite/www/index.php(13): IPS\_Dispatcher->run()
#10 {main}

ParseError: syntax error, unexpected ''UTF' (T_ENCAPSED_AND_WHITESPACE), expecting ')' (0)
#0 /home/www/doc/mysite/www/system/Theme/Theme.php(741): IPS\Theme\Cache\_Template->exists()
#1 /home/www/doc/mysite/www/applications/gallery/extensions/core/Profile/gallery.php(81): IPS\_Theme->getTemplate('global', 'gallery')
#2 /home/www/doc/mysite/www/applications/core/modules/front/members/profile.php(316): IPS\gallery\extensions\core\Profile\_gallery->render()
#3 [internal function]: IPS\core\modules\front\members\_profile->manage()
#4 /home/www/doc/mysite/www/init.php(460) : eval()'d code(123): call_user_func_array('parent::manage', Array)
#5 /home/www/doc/mysite/www/system/Dispatcher/Controller.php(96): IPS\core\modules\front\members\hook406->manage()
#6 /home/www/doc/mysite/www/applications/core/modules/front/members/profile.php(65): IPS\Dispatcher\_Controller->execute()
#7 /home/www/doc/mysite/www/system/Dispatcher/Dispatcher.php(146): IPS\core\modules\front\members\_profile->execute()
#8 /home/www/doc/mysite/www/index.php(13): IPS\_Dispatcher->run()
#9 {main}

The URL of page the error occurred on was https://www.mysite/discover/unread/
ParseError: syntax error, unexpected ''UTF' (T_ENCAPSED_AND_WHITESPACE), expecting ')' in /home/www/doc/mysite/www/uploads/template_15_067dfd137d32ec801d5055061008a300_global.php:572
Stack trace:
#0 /home/www/doc/mysite/www/system/Theme/Theme.php(741): IPS\Theme\Cache\_Template->exists()
#1 /home/www/doc/mysite/www/applications/gallery/sources/Image/Image.php(1616): IPS\_Theme->getTemplate('global', 'gallery', 'front')
#2 /home/www/doc/mysite/www/system/Content/Content.php(1375): IPS\gallery\_Image::searchResultSnippet(Array, Array, Array, Array, Array, NULL, 'expanded')
#3 [internal function]: IPS\_Content::searchResult(Array, Array, Array, Array, Array, NULL, false, 'expanded', true, true, NULL, Array)
#4 /home/www/doc/mysite/www/system/Content/Search/Result/Content.php(93): call_user_func(Array, Array, Array, Array, Array, Array, NULL, false, 'expanded', true, true, NULL, Array)
#5 /home/www/doc/mysite/www/system/Theme/Theme.php(824) : eval()'d code(2459): IPS\Content\Search\Result\_Content->html('expanded', true, true)
#6 /home/www/doc/mysite/www/system/Theme/SandboxedTemplate.php(58): IPS\Theme\class_core_front_streams->streamItems(Object(IPS\Content\Search\Results), true, 'last_comment', 'expanded')
#7 /home/www/doc/mysite/www/system/Theme/Theme.php(824) : eval()'d code(2342): IPS\Theme\_SandboxedTemplate->__call('streamItems', Array)
#8 /home/www/doc/mysite/www/system/Theme/SandboxedTemplate.php(58): IPS\Theme\class_core_front_streams->stream(Object(IPS\core\Stream), Object(IPS\Content\Search\Results), false, true, 'last_comment', 'expanded')
#9 /home/www/doc/mysite/www/applications/core/modules/front/discover/streams.php(442): IPS\Theme\_SandboxedTemplate->__call('stream', Array)
#10 /home/www/doc/mysite/www/system/Dispatcher/Controller.php(96): IPS\core\modules\front\discover\_streams->manage()
#11 /home/www/doc/mysite/www/applications/core/modules/front/discover/streams.php(51): IPS\Dispatcher\_Controller->execute()
#12 /home/www/doc/mysite/www/system/Dispatcher/Dispatcher.php(146): IPS\core\modules\front\discover\_streams->execute()
#13 /home/www/doc/mysite/www/index.php(13): IPS\_Dispatcher->run()
#14 {main}

Error: Class '\IPS\Theme\hook665' not found (0)
#0 /home/www/doc/mysite/www/system/Widget/Widget.php(122): IPS\_Theme->getTemplate('widgets', 'cms', 'front')
#1 /home/www/doc/mysite/www/system/Widget/Widget.php(103): IPS\_Widget->init()
#2 /home/www/doc/mysite/www/system/Widget/PermissionCache.php(42): IPS\_Widget->__construct(996971697, Array, NULL, 'vertical')
#3 /home/www/doc/mysite/www/system/Widget/Widget.php(296): IPS\Widget\_PermissionCache->__construct(996971697, Array, NULL, 'vertical')
#4 /home/www/doc/mysite/www/applications/cms/sources/Blocks/Block.php(1003): IPS\_Widget::load(Object(IPS\cms\Application), 'RecordFeed', 996971697, Array, NULL, 'vertical')
#5 /home/www/doc/mysite/www/applications/cms/widgets/Blocks.php(69): IPS\cms\Blocks\_Block->widget()
#6 /home/www/doc/mysite/www/system/Widget/Widget.php(296): IPS\cms\widgets\_Blocks->__construct('40gsyzflq', Array, NULL, 'vertical')
#7 /home/www/doc/mysite/www/system/Dispatcher/Front.php(538): IPS\_Widget::load(Object(IPS\cms\Application), 'Blocks', '40gsyzflq', Array, NULL, 'vertical')
#8 /home/www/doc/mysite/www/system/Dispatcher/Dispatcher.php(148): IPS\Dispatcher\_Front->finish()
#9 /home/www/doc/mysite/www/index.php(13): IPS\_Dispatcher->run()
#10 {main}

Error: Class '\IPS\Theme\hook525' not found in /home/www/doc/mysite/www/system/Theme/Theme.php:839
Stack trace:
#0 /home/www/doc/mysite/www/system/Helpers/Form/Form.php(139): IPS\_Theme->getTemplate('forms', 'core', 'global')
#1 [internal function]: IPS\Helpers\_Form->__construct('commentform_309...', 'topic_submit_co...')
#2 /home/www/doc/mysite/www/init.php(460) : eval()'d code(28): call_user_func_array('parent::__const...', Array)
#3 /home/www/doc/mysite/www/system/Content/Item.php(3820): IPS\Helpers\hook383->__construct('commentform_309...', 'topic_submit_co...')
#4 /home/www/doc/mysite/www/system/Theme/Theme.php(824) : eval()'d code(5517): IPS\Content\_Item->commentForm()
#5 /home/www/doc/mysite/www/system/Theme/SandboxedTemplate.php(58): IPS\Theme\class_forums_front_topics->topic(Object(IPS\forums\Topic), Array, NULL, Array, NULL, NULL, Array)
#6 /home/www/doc/mysite/www/applications/forums/modules/front/forums/topic.php(402): IPS\Theme\_SandboxedTemplate->__call('topic', Array)
#7 /home/www/doc/mysite/www/init.php(460) : eval()'d code(16): IPS\forums\modules\front\forums\_topic->manage()
#8 /home/www/doc/mysite/www/init.php(460) : eval()'d code(38): IPS\forums\modules\front\forums\forumblocks_hook_topiccontroller->manage()
#9 /home/www/doc/mysite/www/system/Dispatcher/Controller.php(96): IPS\forums\modules\front\forums\hook848->manage()
#10 /home/www/doc/mysite/www/system/Content/Controller.php(50): IPS\Dispatcher\_Controller->execute()
#11 /home/www/doc/mysite/www/applications/forums/modules/front/forums/topic.php(39): IPS\Content\_Controller->execute()
#12 /home/www/doc/mysite/www/system/Dispatcher/Dispatcher.php(146): IPS\forums\modules\front\forums\_topic->execute()
#13 /home/www/doc/mysite/www/index.php(13): IPS\_Dispatcher->run()
#14 {main}

 

Posted
6 minutes ago, Daniel F said:

Yea, that's def. caused by a hook. You can identify the broken app or plugin by checking the core_hooks table for id= 383

Thanks, but doesn't this looks like a default hook?

0fa0.thumb.jpg.ed1841bd5d9ca31f099413edaa7781e4.jpg

 

Posted

No, the only "default" hooks are for our first party applications, which would not populate the plugin column but rather the application column.

That said, the issue could also be caused by an out of date template. You may need to revert the template in question if it is modified.

Posted

Thanks all for the great support. I will disable the plugin (Preview Post Big Button) and observe if the issue is fixed now. Never thought  a minor plugin can cause such problems.

  • Management
Posted

Thanks for posting!

Unfortunately, this issue is beyond the scope of our technical support. 👩‍💻

Our technical support is happy to help you with the Invision Community platform, but we're unable to help with things like server management, theme questions and modifications.

I've moved this to our Community Support area where other Invision Community owners will see it and help where they can.

  • Recently Browsing   0 members

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