Fatal error with TwigTemplate cache generation

Get help with installation and running phpBB 3.2.x here. Please do not post bug reports, feature requests, or extension related questions here.
Post Reply
G3CNO
Registered User
Posts: 1
Joined: Mon Nov 12, 2018 2:06 pm

Fatal error with TwigTemplate cache generation

Post by G3CNO » Mon Nov 12, 2018 3:28 pm

Hi all

First up I must admit to having been slack updating phpBB, it's been trouble free since it was installed 3 years ago so we are still running v3.1.6. While I should take the opportunity to update I think I'm going to need to fix this problem first anyway.

Cause: made a small text change to the header (something I did plenty of when first installing phpBB)
Issue: seems cache cannot rebuild
Error message: Fatal error: Class '__TwigTemplate_f1ad41c41d5dcebd1936e8a5fc939a2719b5029b90756be9aff410128a9695af' not found in /public_html/forum/vendor/twig/twig/lib/Twig/Environment.php on line 346

I have tried deleting the files in the cache folder which added an addition error regards file_put_contents() being disabled. I have spoken to my webhost and this function has been re-enabled, which has restored more files to the cache folder and left me with just the original error.
Given that editing the header has worked in the past, I am currently assuming there have been other security changes in my hosting which are at fault which may well cause issues with newer versions.

I do not know what other changes might have been made but I have a list of all disabled functions here:
system,passthru,popen,exec,proc_close,proc_get_status,proc_nice,proc_open,proc_terminate,highlight_file,escapeshellcmd,define_syslog_variables,posix_uname,posix_getpwuid,apache_child_terminate,posix_kill,posix_mkfifo,posix_setpgid,posix_setsid,posix_setuid,escapeshellarg,posix_uname,ftp_exec,ftp_connect,ftp_login,ftp_get,ftp_put,ftp_nb_fput,ftp_raw,ftp_rawlist,ini_alter,ini_restore,inject_code,syslog,openlog,define_syslog_variables,apache_setenv,mysql_pconnect,eval,phpAds_XmlRpc,phpAds_remoteInfo,phpAds_xmlrpcEncode,phpAds_xmlrpcDecode,xmlrpc_entity_decode,fp,fput,shell_exec,apache_get_modules,mail,opcache_get_status
Are any more of these required?

Apart from a theme, phpBB is stock with no extensions. Running php v5.6.38.

The admin area gives WSOD, no error log. We've probably not tried logging into that once the forum was set up.

If the best approach is to try upgrading first, please let me know. Open to all suggestions!

Thank you

User avatar
Lumpy Burgertushie
Registered User
Posts: 65307
Joined: Mon May 02, 2005 3:11 am
Contact:

Re: Fatal error with TwigTemplate cache generation

Post by Lumpy Burgertushie » Mon Nov 12, 2018 4:36 pm

best approach is to contact the host again. all of those things are server software related. you have no control over any of that.

robert
I am available for custom work on a donation basis. Please send me a PM with your needs.

Premium phpBB 3.2 Styles by PlanetStyles.net

OK, so what's the speed of dark?

Post Reply

Return to “[3.2.x] Support Forum”

Who is online

Users browsing this forum: Baidu [Spider] and 21 guests