Invision Community 4: SEO, prepare for v5 and dormant account notifications Matt November 11, 2024Nov 11
Posted February 24, 20223 yr This is error after update beta 1 [[Template core/front/global/globalTemplate is throwing an error. This theme may be out of date. Run the support tool in the AdminCP to restore the default theme.] Error: Call to undefined method IPS\Request::isApp() in /home/oldlndse/public_html/system/Theme/Theme.php(880) : eval()'d code:6821 Stack trace: #0 /home/oldlndse/public_html/system/Theme/SandboxedTemplate.php(61): IPS\Theme\class_core_front_global->globalTemplate('6c775cf192e8803...', '\n\n<section id='...', Array) #1 /home/oldlndse/public_html/system/Output/Output.php(748): IPS\Theme\_SandboxedTemplate->__call('globalTemplate', Array) #2 /home/oldlndse/public_html/system/Session/Session.php(247): IPS\_Output->error('Something went ...', '2S119/1', 403, 'admin_csrf_erro...') #3 /home/oldlndse/public_html/applications/core/modules/front/system/theme.php(42): IPS\_Session->csrfCheck() #4 /home/oldlndse/public_html/system/Dispatcher/Controller.php(101): IPS\core\modules\front\system\_theme->manage() #5 /home/oldlndse/public_html/applications/core/modules/front/system/theme.php(32): IPS\Dispatcher\_Controller->execute() #6 /home/oldlndse/public_html/system/Dispatcher/Dispatcher.php(153): IPS\core\modules\front\system\_theme->execute() #7 /home/oldlndse/public_html/index.php(13): IPS\_Dispatcher->run() #8 {main} #0 /home/oldlndse/public_html/system/Theme/SandboxedTemplate.php(71): IPS\_Log::log(Object(Error), 'template_error') #1 /home/oldlndse/public_html/system/Output/Output.php(748): IPS\Theme\_SandboxedTemplate->__call('globalTemplate', Array) #2 /home/oldlndse/public_html/system/Session/Session.php(247): IPS\_Output->error('Something went ...', '2S119/1', 403, 'admin_csrf_erro...') #3 /home/oldlndse/public_html/applications/core/modules/front/system/theme.php(42): IPS\_Session->csrfCheck() #4 /home/oldlndse/public_html/system/Dispatcher/Controller.php(101): IPS\core\modules\front\system\_theme->manage() #5 /home/oldlndse/public_html/applications/core/modules/front/system/theme.php(32): IPS\Dispatcher\_Controller->execute() #6 /home/oldlndse/public_html/system/Dispatcher/Dispatcher.php(153): IPS\core\modules\front\system\_theme->execute() #7 /home/oldlndse/public_html/index.php(13): IPS\_Dispatcher->run() #8 {main} some help? can not access my site Edited February 24, 20223 yr by bosss
February 24, 20223 yr Community Expert Your theme isn‘t compatible with 4.6.11. There were instructions while the upgrade, did you ignore them? You‘ll probably have to review your globalTemplate template.
February 24, 20223 yr Author Your theme isn‘t compatible with 4.6.11. There were instructions while the upgrade, did you ignore them? You‘ll probably have to review your globalTemplate template. Please some helps ...can not use myself ...- can run - support tool in the AdminCP to restore the default theme.] @Daniel F You have my admin access and please take look https://www.oldlibar.website/ Edited February 24, 20223 yr by bosss
February 24, 20223 yr Community Expert Please some helps ...can not use myself ...- can run - support tool in the AdminCP to restore the default theme.] @Daniel F You have my admin access and please take look https://www.oldlibar.website/ Your custom theme is out of date and needs to be updated. You can follow the instructions here: You can also go to https://invisioncommunity.com/index.php?app=core&module=system&controller=plugins&do=diff and click 'show differences' to see what the changes are between 4.6.10 and 4.6.11 Beta 1
February 24, 20223 yr Author Your custom theme is out of date and needs to be updated. You can follow the instructions here: You can also go to https://invisioncommunity.com/index.php?app=core&module=system&controller=plugins&do=diff and click 'show differences' to see what the changes are between 4.6.10 and 4.6.11 Beta 1 I can not made myself this - please some help?
February 24, 20223 yr Community Expert You will need to create a new theme in that case and set it as the front-end default or you can revert all of your customisations to the globalTemplate.
February 24, 20223 yr Author You will need to create a new theme in that case and set it as the front-end default or you can revert all of your customisations to the globalTemplate. How make new theme?
February 24, 20223 yr I had the same issue with the default theme and reverted the template after taking a copy. There was no difference between the before and after template but the install worked afterwards without error.
February 25, 20223 yr Community Expert How make new theme? You would click on "Add theme" in the them area to create a new theme
February 25, 20223 yr Community Expert We've re-added the method we removed for the final release (it will be removed again in a future version), but I would still strongly recommend that everyone check their customised templates when they upgrade and implement any changes.
February 25, 20223 yr I have the same error and i cant login to admincp I change in Database the default theme to put IPS default, but no luck. Please help
February 25, 20223 yr I have the same error and i cant login to admincp I change in Database the default theme to put IPS default, but no luck. Please help oh, im in 4.6.10, maybe i should open another theme?
February 26, 20223 yr I found that the global template is the one change that seems to be affecting this. IF you ensure that the global template does not have any changes to it (revert it prior to upgrade) and set it as default prior to upgrading you will be OK, but any other themes that have global template changes made will show this error.
February 26, 20223 yr We've re-added the method we removed for the final release (it will be removed again in a future version), but I would still strongly recommend that everyone check their customised templates when they upgrade and implement any changes. out of interest re-added what method?
February 26, 20223 yr https://invisioncommunity.com/index.php?app=core&module=system&controller=plugins&do=diff In looking at the changes to the theme files, it looks like they're removing references to the native app. My guess is that removing the isApp request check was causing issues with themes that still had references to something that no longer existed.
February 28, 20223 yr Community Expert out of interest re-added what method? https://invisioncommunity.com/index.php?app=core&module=system&controller=plugins&do=diff In looking at the changes to the theme files, it looks like they're removing references to the native app. My guess is that removing the isApp request check was causing issues with themes that still had references to something that no longer existed. Randy is right, in the process of removing support for the native application we removed a method that most customised themes will be calling in their global template. We've put this method back for the time being (it doesn't do anything now) so it won't cause theme errors.