My website is on a VPS...
For a long period I noticed it happen when a planned CGBlog article appeared on the front-end. You could almost set the clock on it. I updated all templates code, so almost all php notices in the error_log were gone, cleaned out modules, etc. etc. The last week all went pretty good.
This morning again problems
I looked into the tmp folder and found the cached file. This file *is* created, so I think CMSMS won't try to recreate it, unless the file is deleted (cache cleared).
The content of the file is:
Code: Select all
<?php /* Smarty version Smarty-3.1.16, created on 2014-02-13 07:09:59
compiled from "globalcontent:footer" */ ?>
<?php /*%%SmartyHeaderCode:118257075652fbde101e5ee2-84009488%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
'file_dependency' =>
array (
'2bb586574f3650db1bd921637f42bdb7952d7721' =>
array (
0 => 'globalcontent:footer',
1 => 1392271781,
2 => 'globalcontent',
),
),
'nocache_hash' => '118257075652fbde101e5ee2-84009488',
'function' =>
array (
),
'version' => 'Smarty-3.1.16',
'unifunc' => 'content_52fbde101e8c18_32139623',
'has_nocache_code' => false,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_52fbde101e8c18_32139623')) {function content_52fbde101e8c18_32139623($_smarty_tpl) {?><!-- Html blob 'footer' does not exist --><?php }} ?>
I also created a mousetrap to help me find template errors (
https://www.cmscanbesimple.org/blog/mou ... ate-errors ) This morning when the website went down again, the mousetrap found a problem (can't tell what) in the root page. Cause or effect? I can't tell it at the moment...
PS. I updated the mousetrap code so it also sents the error message itself, not only the url.