Jump to content

Technical error after saving the theme settings.


Go to solution Solved by ArashDev,

Recommended Posts

Posted

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

  • ArashDev changed the title to Technical error after saving the theme settings.
  • Solution
Posted

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. :lol2:

 

thanks to @DawPi

  • Like 1

ArashDev.net

  • Manager
Posted

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.

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.