Owdy Posted July 10, 2023 Posted July 10, 2023 (edited) If default theme is edited, how to install clean default theme? Edited July 10, 2023 by Owdy
Owdy Posted July 10, 2023 Author Posted July 10, 2023 Ok, thanks. Then theres is a bug, because that theme creates errors. The log entry was triggered by a guest (Vieras / Guest) TypeError: array_sum(): Argument #1 ($array) must be of type array, int given in /home/*******/public_html/foorumi/system/Theme/Theme.php(885) : eval()'d code:4797 Stack trace: #0 /home/***/public_html/foorumi/system/Theme/Theme.php(885) : eval()'d code(4797): array_sum(218) #1 /home/***/public_html/foorumi/system/Theme/SandboxedTemplate.php(61): IPS\Theme\class_core_global_global->poll(Object(IPS\Poll), Object(IPS\Http\Url\Friendly)) #2 /home/***/public_html/foorumi/system/Poll/Poll.php(520): IPS\Theme\_SandboxedTemplate->__call('poll', Array) #3 /home/***/public_html/foorumi/system/Theme/Theme.php(885) : eval()'d code(4709): IPS\_Poll->__toString() #4 /home/***/public_html/foorumi/system/Theme/SandboxedTemplate.php(61): IPS\Theme\class_forums_front_topics->topic(Object(IPS\forums\Topic), Array, NULL, Array, NULL, NULL, Array) #5 /home/***/public_html/foorumi/applications/forums/modules/front/forums/topic.php(611): IPS\Theme\_SandboxedTemplate->__call('topic', Array) #6 /home/***/public_html/foorumi/system/Dispatcher/Controller.php(118): IPS\forums\modules\front\forums\_topic->manage() #7 /home/***/public_html/foorumi/system/Content/Controller.php(50): IPS\Dispatcher\_Controller->execute() #8 /home/***/public_html/foorumi/applications/forums/modules/front/forums/topic.php(39): IPS\Content\_Controller->execute() #9 /home/***/public_html/foorumi/system/Dispatcher/Dispatcher.php(153): IPS\forums\modules\front\forums\_topic->execute() #10 /home/***/public_html/foorumi/index.php(13): IPS\_Dispatcher->run() #11 {main} #0 /home/***/public_html/foorumi/system/Theme/SandboxedTemplate.php(71): IPS\_Log::log(Object(TypeError), 'template_error') #1 /home/***/public_html/foorumi/system/Poll/Poll.php(520): IPS\Theme\_SandboxedTemplate->__call('poll', Array) #2 /home/***/public_html/foorumi/system/Theme/Theme.php(885) : eval()'d code(4709): IPS\_Poll->__toString() #3 /home/***/public_html/foorumi/system/Theme/SandboxedTemplate.php(61): IPS\Theme\class_forums_front_topics->topic(Object(IPS\forums\Topic), Array, NULL, Array, NULL, NULL, Array) #4 /home/***/public_html/foorumi/applications/forums/modules/front/forums/topic.php(611): IPS\Theme\_SandboxedTemplate->__call('topic', Array) #5 /home/***/public_html/foorumi/system/Dispatcher/Controller.php(118): IPS\forums\modules\front\forums\_topic->manage() #6 /home/***/public_html/foorumi/system/Content/Controller.php(50): IPS\Dispatcher\_Controller->execute() #7 /home/***/public_html/foorumi/applications/forums/modules/front/forums/topic.php(39): IPS\Content\_Controller->execute() #8 /home/***/public_html/foorumi/system/Dispatcher/Dispatcher.php(153): IPS\forums\modules\front\forums\_topic->execute() #9 /home/***/public_html/foorumi/index.php(13): IPS\_Dispatcher->run() #10 {main}
Marc Posted July 10, 2023 Posted July 10, 2023 Are you getting this when all 3rd party items are disabled also?
Owdy Posted July 10, 2023 Author Posted July 10, 2023 (edited) There are no 3th party hooks installed. One custom skin, wich i disabled from guest now. note: this isnt a forum what are linked in my personal account here. I'm co-admin one another site. Edited July 10, 2023 by Owdy
Owdy Posted July 10, 2023 Author Posted July 10, 2023 (edited) More info. I clicked topic link what are in error log. I get this as guest: [[Template core/global/global/poll is throwing an error. This theme may be out of date. Run the support tool in the AdminCP to restore the default theme.]] If i login as user, it shows poll. Edited July 10, 2023 by Owdy
Marc Posted July 10, 2023 Posted July 10, 2023 We would need to take a look at that site, so the user would need to add you as an alternative contact if you would like me to take a look
Owdy Posted July 10, 2023 Author Posted July 10, 2023 4 minutes ago, Marc Stridgen said: the user would need to add you as an alternative contact done
Jim M Posted July 10, 2023 Posted July 10, 2023 Unfortunately, I am not having any issues creating a new, unmodified theme on the community in question. In the System Log, I am seeing and able to reproduce that the poll issue is happening on old topics from 2014 and earlier. I am assuming these are from the migration which took place from SMF, is this correct? Could I confirm that all data was converted via our converter? Owdy 1
Owdy Posted July 10, 2023 Author Posted July 10, 2023 There are no issues creating new theme, but those polls cretates errors to guests. Yes, its converted from smf, with your converter 🙂
Solution Jim M Posted July 10, 2023 Solution Posted July 10, 2023 Thank you for confirming. I have transferred this to a ticket for further review, please watch your email for further correspondence. Owdy 1
Recommended Posts