Invision Community 4: SEO, prepare for v5 and dormant account notifications By Matt Monday at 02:04 PM
SJ77 Posted April 3, 2019 Posted April 3, 2019 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?
Daniel F Posted April 3, 2019 Posted April 3, 2019 Nobody will be able to assist without the error message. Is there anything in the system log?
SJ77 Posted April 3, 2019 Author Posted April 3, 2019 58 minutes ago, Daniel F said: 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.]]
Adriano Faria Posted April 3, 2019 Posted April 3, 2019 This error logs an entry in the System Logs. Post it.
SJ77 Posted April 3, 2019 Author Posted April 3, 2019 8 hours ago, Adriano Faria said: 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}
opentype Posted April 3, 2019 Posted April 3, 2019 You need to replace \IPS\HTMLENTITIES with ENT_DISALLOWED in that theme template. (Or any other template it might appear)
DawPi Posted April 3, 2019 Posted April 3, 2019 8 minutes ago, SJ77 said: Error: Undefined constant 'IPS\HTMLENTITIES' in /MyRoot/system/Theme/Theme.php(840) : eval()'d code:2561
opentype Posted April 3, 2019 Posted April 3, 2019 @DawPi I think only Contributors have access to this.
SJ77 Posted April 3, 2019 Author Posted April 3, 2019 22 minutes ago, opentype said: 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?
opentype Posted April 3, 2019 Posted April 3, 2019 1 minute ago, SJ77 said: 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.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.