Posted July 5Jul 5 I restarted my computer this morning and launched Chrome, which uses the tabs from the previous session of yesterday evening. One of those tabs was for my site on file. However, instead of loading the page, it now showed a 500 error.Curiously, I can access the admin area without a problem. And I have the same version (4.7.20) of another instance of Invision Community (tied to my @Meddysong license) on the same server, and that's working fine. I last added content (a file in Downloads and a Pages record) a couple of days ago, and shipped a product yesterday. Beyond that, no changes.I've asked my hosts to provide the server log. Here's the snippet they gave to me:[05-Jul-2025 09:46:50 UTC] PHP Fatal error: Uncaught Error: Failed opening required '/home/xxx/public_html/error.php' (include_path='.:/opt/alt/php81/usr/share/pear:/opt/alt/php81/usr/share/php:/usr/share/pear:/usr/share/php') in /home/xxx/public_html/init.php:1172 Stack trace: 0 /home/xxx/public_html/init.php(1099): IPS\IPS::genericExceptionPage() 1 [internal function]: IPS\IPS::exceptionHandler() 2 thrown in /home/xxx/public_html/init.php on line 1172 [05-Jul-2025 09:46:54 UTC] PHP Fatal error: Uncaught Error: Failed opening required '/home/xxx/public_html/error.php' (include_path='.:/opt/alt/php81/usr/share/pear:/opt/alt/php81/usr/share/php:/usr/share/pear:/usr/share/php') in /home/xxx/public_html/init.php:1172 Stack trace: 0 /home/xxx/public_html/init.php(1099): IPS\IPS::genericExceptionPage() 1 [internal function]: IPS\IPS::exceptionHandler() 2 thrown in /home/xxx/public_html/init.php on line 1172 [05-Jul-2025 09:47:10 UTC] PHP Fatal error: Uncaught Error: Failed opening required '/home/xxx/public_html/error.php' (include_path='.:/opt/alt/php81/usr/share/pear:/opt/alt/php81/usr/share/php:/usr/share/pear:/usr/share/php') in /home/xxx/public_html/init.php:1172 Stack trace: 0 /home/xxx/public_html/init.php(1099): IPS\IPS::genericExceptionPage() 1 [internal function]: IPS\IPS::exceptionHandler() 2 thrown in /home/xxx/public_html/init.php on line 1172The host added: “These logs indicate that errors are caused by the script itself rather than a server side issue. This could be caused by a corrupted file or missing content.”Do you have any pointers? I can't understand how it was working fine when I went to bed, that /admin is still fine, and that an identical instance on the same server is fine.
July 5Jul 5 Community Expert 17 minutes ago, Esperanto said:This could be caused by a corrupted file or missing content.I tend to agree with them on this. Looking at the error messages that you post, they all indicate that the error.php file doesn't seem to be present. 19 minutes ago, Esperanto said:Uncaught Error: Failed opening required '/home/xxx/public_html/error.php' (include_path='.:/opt/alt/php81/usr/share/pear:/opt/alt/php81/usr/share/php:/usr/share/pear:/usr/share/php') in /home/xxx/public_html/init.php:1172That said, files just don't go mia or get corrupted like that, out of nowhere. Something triggers it. If I were you I would ask your host how did that happen seeing the fact that no changes/modifications were done on the forum on your part.
July 5Jul 5 Author Thank you for your reply. That's what I thought the error meant, and yet:1) That file contains the HTML which produces the error page I'm currently seeing:(Admittedly, error.html also produces that output so this isn't conclusive.)2) I can see the file, which is not only present but unchanged in several months:And it doesn't explain why I can access the ACP. It's all part of the same process. (Nor why uea.facila.org, another instance of 4.7.20, is working on the same server.)
July 5Jul 5 Community Expert Your admin area appears to be working so you will want to login there and go to ACP -> Support -> System Log to get the error.
July 5Jul 5 Author Thank you, @Jim M . Let's have a look under the hood:Error: Class "IPS\Theme\Cache\class_core_front_global" not found (0) #0 /home/xxx/public_html/system/Theme/Theme.php(957): eval() #1 /home/xxx/public_html/system/Theme/Cache/Template.php(114): IPS\_Theme::overloadHooks() #2 /home/xxx/public_html/system/Theme/Theme.php(808): IPS\Theme\Cache\_Template->exists() #3 /home/xxx/public_html/system/Output/Output.php(823): IPS\_Theme->getTemplate() #4 /home/xxx/public_html/init.php(947) : eval()'d code(26): IPS\_Output->error() #5 /home/xxx/public_html/system/Session/Session.php(247): IPS\cms_hook_Output->error() #6 /homexxx/public_html/applications/core/modules/front/system/language.php(42): IPS\_Session->csrfCheck() #7 /home/xxx/public_html/system/Dispatcher/Controller.php(118): IPS\core\modules\front\system\_language->manage() #8 /home/xxx/public_html/applications/core/modules/front/system/language.php(32): IPS\Dispatcher\_Controller->execute() #9 /home/xxx/public_html/system/Dispatcher/Dispatcher.php(153): IPS\core\modules\front\system\_language->execute() #10 /home/xxx/public_html/index.php(13): IPS\_Dispatcher->run() #11 {main} Backtrace #0 /home/xxx/public_html/init.php(1049): IPS\_Log::log() #1 [internal function]: IPS\IPS::exceptionHandler() #2 {main}Error: Class "IPS\Theme\Cache\class_core_front_global" not found (0) #0 /home/xxx/public_html/system/Theme/Theme.php(957): eval() #1 /home/xxx/public_html/system/Theme/Cache/Template.php(114): IPS\_Theme::overloadHooks() #2 /home/xxx/public_html/system/Theme/Theme.php(808): IPS\Theme\Cache\_Template->exists() #3 /home/xxx/public_html/system/Output/Output.php(823): IPS\_Theme->getTemplate() #4 /home/xxx/public_html/init.php(947) : eval()'d code(26): IPS\_Output->error() #5 /home/xxx/public_html/system/Session/Session.php(247): IPS\cms_hook_Output->error() #6 /home/xxx/public_html/applications/core/modules/front/system/language.php(42): IPS\_Session->csrfCheck() #7 /home/xxx/public_html/system/Dispatcher/Controller.php(118): IPS\core\modules\front\system\_language->manage() #8 /home/xxx/public_html/applications/core/modules/front/system/language.php(32): IPS\Dispatcher\_Controller->execute() #9 /home/xxx/public_html/system/Dispatcher/Dispatcher.php(153): IPS\core\modules\front\system\_language->execute() #10 /home/xxx/public_html/index.php(13): IPS\_Dispatcher->run() #11 {main} Backtrace #0 /home/xxx/public_html/init.php(1049): IPS\_Log::log() #1 [internal function]: IPS\IPS::exceptionHandler() #2 {main}
July 5Jul 5 Author Error: Class "IPS\Theme\Cache\class_core_front_global" not found (0) #0 /home/xxx/public_html/system/Theme/Theme.php(957): eval() #1 /home/xxx/public_html/system/Theme/Cache/Template.php(114): IPS\_Theme::overloadHooks() #2 /home/xxx/public_html/system/Theme/Theme.php(808): IPS\Theme\Cache\_Template->exists() #3 /home/xxx/public_html/system/Output/Output.php(823): IPS\_Theme->getTemplate() #4 /home/xxx/public_html/init.php(947) : eval()'d code(26): IPS\_Output->error() #5 /home/xxx/public_html/system/Session/Session.php(247): IPS\cms_hook_Output->error() #6 /home/xxx/public_html/applications/core/modules/front/system/language.php(42): IPS\_Session->csrfCheck() #7 /home/xxx/public_html/system/Dispatcher/Controller.php(118): IPS\core\modules\front\system\_language->manage() #8 /home/xxx/public_html/applications/core/modules/front/system/language.php(32): IPS\Dispatcher\_Controller->execute() #9 /home/xxx/public_html/system/Dispatcher/Dispatcher.php(153): IPS\core\modules\front\system\_language->execute() #10 /home/xxx/public_html/index.php(13): IPS\_Dispatcher->run() #11 {main} Backtrace Error: Class "IPS\Theme\Cache\class_core_front_global" not found (0) #0 /home/xxx/public_html/system/Theme/Theme.php(957): eval() #1 /home/xxx/public_html/system/Theme/Cache/Template.php(114): IPS\_Theme::overloadHooks() #2 /home/xxx/public_html/system/Theme/Theme.php(808): IPS\Theme\Cache\_Template->exists() #3 /home/xxx/public_html/system/Output/Output.php(823): IPS\_Theme->getTemplate() #4 /home/xxx/public_html/init.php(947) : eval()'d code(26): IPS\_Output->error() #5 /home/xxx/public_html/system/Session/Session.php(247): IPS\cms_hook_Output->error() #6 /home/xxx/public_html/applications/core/modules/front/system/language.php(42): IPS\_Session->csrfCheck() #7 /home/xxx/public_html/system/Dispatcher/Controller.php(118): IPS\core\modules\front\system\_language->manage() #8 /home/xxx/public_html/applications/core/modules/front/system/language.php(32): IPS\Dispatcher\_Controller->execute() #9 /home/xxx/public_html/system/Dispatcher/Dispatcher.php(153): IPS\core\modules\front\system\_language->execute() #10 /home/xxx/public_html/index.php(13): IPS\_Dispatcher->run() #11 {main} Error: Class "IPS\Theme\Cache\class_core_front_global" not found (0) #0 /home/xxx/public_html/system/Theme/Theme.php(957): eval() #1 /home/xxx/public_html/system/Theme/Cache/Template.php(114): IPS\_Theme::overloadHooks() #2 /home/xxx/public_html/system/Theme/Theme.php(808): IPS\Theme\Cache\_Template->exists() #3 /home/xxx/public_html/system/Output/Output.php(823): IPS\_Theme->getTemplate() #4 /home/xxx/public_html/init.php(947) : eval()'d code(26): IPS\_Output->error() #5 /home/xxx/public_html/system/Session/Session.php(247): IPS\cms_hook_Output->error() #6 /home/xxx/public_html/applications/core/modules/front/system/language.php(42): IPS\_Session->csrfCheck() #7 /home/xxx/public_html/system/Dispatcher/Controller.php(118): IPS\core\modules\front\system\_language->manage() #8 /home/xxx/public_html/applications/core/modules/front/system/language.php(32): IPS\Dispatcher\_Controller->execute() #9 /home/xxx/public_html/system/Dispatcher/Dispatcher.php(153): IPS\core\modules\front\system\_language->execute() #10 /home/xxx/public_html/index.php(13): IPS\_Dispatcher->run() #11 {main}Usually the log starts with:The URL of page the error occurred on was https://xxx/index.php?app=core&controller=language&csrfKey=xxx&id=2&module=systemThat's not always the case, though: occasionally it's just the domain name or a particular page.
July 5Jul 5 Community Expert Do you have template cache enabled in ACP -> System -> Advanced Configuration? If so, disable it.
July 6Jul 6 Author Thank you, @Jim M ; that worked!What do you think went wrong overnight to cause the problem?Is this a setting I should permanently keep off or will things work themselves out if I give a bit of time before enabling template caching again?
July 6Jul 6 Community Expert 10 hours ago, Esperanto said:Thank you, @Jim M ; that worked!What do you think went wrong overnight to cause the problem?Is this a setting I should permanently keep off or will things work themselves out if I give a bit of time before enabling template caching again?Means your server likely had a writing problem to disk, whether full or otherwise. Thus, it couldn’t use the template disk cache it was trying to use.You’ll want to investigate with your hosting provider or leave it off