ArashDev Posted August 31, 2023 Posted August 31, 2023 hi I have designed a the theme on local host, and everything is working fine. but, after uploading it to the hosting server, when I click on save and reload button in theme settings, instead of staying on the setting page, after save I am redirected to the themes page and In the frontend section, with refreshing, my theme break and I receive the following error (Before refreshing everything works good). TypeError: Unsupported operand types: string / int (0) #0 /home/*****/*****/system/Theme/Theme.php(4828): IPS\Output\Plugin\_Fontsize::runPlugin('2x_large', Array, 'css_core_front_...', 'IPS\\Theme') #1 [internal function]: IPS\_Theme::IPS\{closure}(Array) #2 /home/*****/*****/system/Theme/Theme.php(4785): preg_replace_callback('/\\{([a-z]+?=(['...', Object(Closure), '\tfunction css_c...') #3 /home/*****/*****/system/Theme/Theme.php(4599): IPS\_Theme::compileTemplate('/* Core app, no...', 'css_core_front_...', '', false, true) #4 /home/*****/*****/system/Theme/Theme.php(5488): IPS\_Theme::makeProcessFunction('/* Core app, no...', 'css_core_front_...', '', false, true) #5 /home/*****/*****/system/Theme/Theme.php(2634): IPS\_Theme::writeCss(Array) #6 /home/*****/*****/system/Theme/Theme.php(646): IPS\_Theme->compileCss('core', 'front', '.', 'core.css') #7 /home/*****/*****/system/Dispatcher/Front.php(766): IPS\_Theme->css('core.css', 'core', 'front') #8 /home/*****/*****/system/Dispatcher/Front.php(76): IPS\Dispatcher\_Front::baseCss() #9 /home/*****/*****/system/Dispatcher/Dispatcher.php(110): IPS\Dispatcher\_Front->init() #10 /home/*****/*****/index.php(13): IPS\_Dispatcher::i() #11 {main} I have installed the template on the newly set up forum. I haven't used any programs or plugins. thanks! ArashDev.net
Manager DawPi Posted August 31, 2023 Manager Posted August 31, 2023 Attach this theme file here please for further reviewing by us. intermedia - profesjonalne rozwiązania Invision Power Board --- Chcesz uzyskać szybko i sprawnie pomoc? Uzupełnij wersję i adres w profilu.
ArashDev Posted August 31, 2023 Author Posted August 31, 2023 this theme is a business theme and I can't share it here directly. But because I trust you I can send you in private message. 1 ArashDev.net
Solution ArashDev Posted September 2, 2023 Author Solution Posted September 2, 2023 I feel that due to the large number of tabs, when I click on the 'save and reload' button, instead of staying on the settings page, it redirects to the themes page. In the first method I reduced the number of tabs by moving the options inside them to other tabs to confirm that the issue is indeed caused by having too many tabs, but it didn't resolve the problem. In the second method, I removed the 'widgets' 'verification' 'user-menu' and 'tour' tabs, and upon clicking the 'save and reload' button, I observed that the settings were saved, and I remained on the settings page. I changed the "max_input_vars" value from 1000 to 3000 in my hosting, and everything worked fine. thanks to @DawPi 1 ArashDev.net
Manager DawPi Posted September 2, 2023 Manager Posted September 2, 2023 Problem ROZWIĄZANY. Jeśli są jakiekolwiek wątpliwości, pytania proszę o założenie nowego tematu. Wszelkie uzasadnione reklamacje/pretensje/sugestie/rady przyjmuje ekipa forum. intermedia - profesjonalne rozwiązania Invision Power Board --- Chcesz uzyskać szybko i sprawnie pomoc? Uzupełnij wersję i adres w profilu.
Recommended Posts