Invision Community 4: SEO, prepare for v5 and dormant account notifications Matt November 11, 2024Nov 11
Posted April 3, 20196 yr Get a template error - not default template (can't remember the error exactly) Decide to use the default template. Then run support to clear cache. Still get the error Decide to disable all 3rd party things. (Error goes AWAY) Enable all Applications, Still ERROR FREE Enable all the plugins, Template error returns. (Assume one of the plugins must be bad) Disable plugins 1 by 1, until I have disabled them all. Error remains with all plugins disabled. WTF Run support again, still error Disable all 3rd party. This time enable all plugins first (apps are disabled) ERROR FREE.. no template error.. ok it must be an app. Enable apps Template error returns run support and disable all 3rd party apps AGAIN, ERROR FREE enable all apps, and enable all plugins. ERROR free.. suddenly everything is working. It's working now? I didn't change anything just ran in a few circles. What the heck?
April 3, 20196 yr Community Expert Nobody will be able to assist without the error message. Is there anything in the system log?
April 3, 20196 yr Author Nobody will be able to assist without the error message. Is there anything in the system log? Well good news! The error message is back. [[Template forums/front/topics/topic is throwing an error. This theme may be out of date. Run the support tool in the AdminCP to restore the default theme.]]
April 3, 20196 yr Author This error logs an entry in the System Logs. Post it. Error: Undefined constant 'IPS\HTMLENTITIES' in /MyRoot/system/Theme/Theme.php(840) : eval()'d code:2561 Stack trace: #0 /MyRoot/system/Theme/SandboxedTemplate.php(61): IPS\Theme\class_core_front_global->commentEditLine(Object(IPS\forums\Topic\Post), false) #1 /MyRoot/system/Content/Comment.php(648): IPS\Theme\_SandboxedTemplate->__call('commentEditLine', Array) #2 /MyRoot/system/Theme/Theme.php(840) : eval()'d code(448): IPS\Content\_Comment->editLine() #3 /MyRoot/system/Theme/SandboxedTemplate.php(61): IPS\Theme\class_forums_front_topics->post(Object(IPS\forums\Topic), Object(IPS\forums\Topic\Post), 'topic_comment', 'forums', 'forums', 'forums_Topic') #4 /MyRoot/system/Theme/Theme.php(840) : eval()'d code(1722): IPS\Theme\_SandboxedTemplate->__call('post', Array) #5 /MyRoot/system/Theme/SandboxedTemplate.php(61): IPS\Theme\class_forums_front_topics->postContainer(Object(IPS\forums\Topic), Object(IPS\forums\Topic\Post), Array, '') #6 /MyRoot/system/Theme/Theme.php(840) : eval()'d code(4039): IPS\Theme\_SandboxedTemplate->__call('postContainer', Array) #7 /MyRoot/system/Theme/SandboxedTemplate.php(61): IPS\Theme\class_forums_front_topics->topic(Object(IPS\forums\Topic), Array, NULL, Array, true, '\n\n\n\t\n\t<ul class...', Array) #8 /MyRoot/applications/forums/modules/front/forums/topic.php(434): IPS\Theme\_SandboxedTemplate->__call('topic', Array) #9 [internal function]: IPS\forums\modules\front\forums\_topic->manage() #10 /MyRoot/init.php(588) : eval()'d code(35): call_user_func_array('parent::manage', Array) #11 /MyRoot/system/Dispatcher/Controller.php(96): IPS\forums\modules\front\forums\hook1502->manage() #12 /MyRoot/system/Content/Controller.php(50): IPS\Dispatcher\_Controller->execute() #13 /MyRoot/applications/forums/modules/front/forums/topic.php(39): IPS\Content\_Controller->execute() #14 /MyRoot/system/Dispatcher/Dispatcher.php(152): IPS\forums\modules\front\forums\_topic->execute() #15 /MyRoot/index.php(13): IPS\_Dispatcher->run() #16 {main}
April 3, 20196 yr Community Expert You need to replace \IPS\HTMLENTITIES with ENT_DISALLOWED in that theme template. (Or any other template it might appear)
April 3, 20196 yr Community Expert Error: Undefined constant 'IPS\HTMLENTITIES' in /MyRoot/system/Theme/Theme.php(840) : eval()'d code:2561
April 3, 20196 yr Author You need to replace \IPS\HTMLENTITIES with ENT_DISALLOWED in that theme template. (Or any other template it might appear) Which is weird because I am using the default IPS template. Is this normal?
April 3, 20196 yr Community Expert Which is weird because I am using the default IPS template. Is this normal? It the theme templates are really not customized, it probably is injected by one your third-party apps/plugins. You might not see the effect instantly when turning them on and off because of caching.
Archived
This topic is now archived and is closed to further replies.