marttiphpbb / phpbb-ext-customcode

phpBB extension Custom Code
GNU General Public License v2.0
8 stars 10 forks source link

Unable to find template #41

Closed saviola777 closed 5 years ago

saviola777 commented 5 years ago

I'm running phpBB 3.2.5 and just installed your extensions via the instructions. After making minor changes to one of the files via the ACP and purging the cache, I get the following error:

Fatal error: Uncaught exception 'Twig_Error_Loader' with message 'Unable to find template "../../../../../../store/customcode/overall_header_head_append.html" (looked into: /phpBB/styles/latte/template, /phpBB/styles/latte/theme, /phpBB/styles/prosilver/template, phpBB/styles/prosilver/theme, /phpBB/styles/all/template) in "@marttiphpbb_customcode/event/overall_header_head_append.html" at line 5.'

When changing the path in /phpBB/ext/marttiphpbb/customcode/styles/all/template/event/overall_header_head_append.html to the more correct looking ´../../../store/customcode/overall_header_head_append.html`, I instead get the error

Fatal error: Uncaught exception 'Twig_Error_Loader' with message 'Looks like you try to load a template outside configured directories (../../../store/customcode/overall_header_head_append.html) in "@marttiphpbb_customcode/event/overall_header_head_append.html" at line 5.'

What is going on here? Did I make a mistake setting up the extension?

On a more important note, since my forum, including the ACP, is now broken: is there a way to disable or remove the extension manually – will deleting the extension directory and purging the cache restore functionality?

Thanks in advance.

marttiphpbb commented 5 years ago

Do you have the latest version (2.0.2) installed?

saviola777 commented 5 years ago

I took the latest GitHub release, which is… 2.0.1? I'll try to find the 2.0.2 release then and try it with that… I'll report back.

saviola777 commented 5 years ago

Okay, what happened is that I checked the releases, missed the "show 2 newer tags" button and installed version 1.1.0. I managed to fix my board by disabling all extensions via a separate PHP script. Then I installed 2.0.2 which can't be enabled because my webhoster is sill running PHP5 despite claiming it would disable PHP5 two months ago, I was assuming I was running PHP7.

So yeah, nevermind, sorry for wasting your time. I'll get my board switched to PHP7 and try enabling 2.0.2 again.