Invision Community 4: SEO, prepare for v5 and dormant account notifications By Matt Monday at 02:04 PM
annedi Posted March 1, 2023 Posted March 1, 2023 I need to reload the Default Theme on my website. Where do I get it? I don't see anything on the ACP Support Page which let's me request a file for re-installation?
Randy Calvert Posted March 1, 2023 Posted March 1, 2023 (edited) ACP > Customization > Appearance > Themes Click on the green "Create New" button. There is also a help guide for this that you can find at: Edited March 1, 2023 by Randy Calvert
annedi Posted March 1, 2023 Author Posted March 1, 2023 No, I don't want to create a new theme. I just need a copy of the default theme which is part of the software installation. I need to reload that. Because the current default theme is throwing a Division by Zero error. Weird I know.
annedi Posted March 1, 2023 Author Posted March 1, 2023 DivisionByZeroError: Division by zero in /home3/ultravio/public_html/content/system/Theme/Theme.php(885) : eval()'d code:620 Stack trace: #0 /home3/ultravio/public_html/content/system/Theme/SandboxedTemplate.php(61): IPS\Theme\class_core_global_editor->image('topic_content', '0', 0.0, '0', '0', 'none', 'https://www.ult...', 12.71, 0.08, 'post-333-0-0298...', 'cke_1') #1 /home3/ultravio/public_html/content/applications/core/modules/front/system/editor.php(91): IPS\Theme\_SandboxedTemplate->__call('image', Array) #2 /home3/ultravio/public_html/content/system/Dispatcher/Controller.php(107): IPS\core\modules\front\system\_editor->image() #3 /home3/ultravio/public_html/content/system/Dispatcher/Dispatcher.php(153): IPS\Dispatcher\_Controller->execute() #4 /home3/ultravio/public_html/content/index.php(13): IPS\_Dispatcher->run() #5 {main} #0 /home3/ultravio/public_html/content/system/Theme/SandboxedTemplate.php(71): IPS\_Log::log(Object(DivisionByZeroError), 'template_error') #1 /home3/ultravio/public_html/content/applications/core/modules/front/system/editor.php(91): IPS\Theme\_SandboxedTemplate->__call('image', Array) #2 /home3/ultravio/public_html/content/system/Dispatcher/Controller.php(107): IPS\core\modules\front\system\_editor->image() #3 /home3/ultravio/public_html/content/system/Dispatcher/Dispatcher.php(153): IPS\Dispatcher\_Controller->execute() #4 /home3/ultravio/public_html/content/index.php(13): IPS\_Dispatcher->run() #5 {main}
Solution Randy Calvert Posted March 1, 2023 Solution Posted March 1, 2023 The only way to get a copy of a clean guaranteed unmodified default theme is to create one. (Choose the manual mode one based on what you described.) Once you create it, you don’t have to assign it to users. You can look through it as you see fit.
annedi Posted March 1, 2023 Author Posted March 1, 2023 (edited) oh, ok. I did not understand that at first. Is there an expected name for the default theme? I renamed my old default themes and don't recall what the default name is for the Default Theme. "-) Maybe it is simply Default Theme? Edited March 1, 2023 by annedi
annedi Posted March 1, 2023 Author Posted March 1, 2023 So, that was easy-peasy. A couple of clicks and we now have a new default theme. Thank you, Randy. 😃 But before I click "solved", I just want to make sure about the name of the default theme - is there a "required" name for the default theme?
Randy Calvert Posted March 1, 2023 Posted March 1, 2023 Nope. Name it whatever you want. Once it’s created, you’ll choose if it’s the default theme for users. You’ll also choose if only certain groups can use that theme.
Recommended Posts