The error only appears when the following is in place (at the top of any page on the site):
- Code: Select all
$phpbb_root_path = './phpbb3/';
$phpEx = substr(strrchr(__FILE__, '.'), 1);
include($phpbb_root_path . 'common.' . $phpEx);
As far as I can tell from the cache.php file, the the function where it goes wrong is called obtain_config(), and the faulty line is $result = $db->sql_query($sql);, and the function is a part of the class "cache", which extends "acm". Obviously, it is a query to the database that goes wrong, but I am unsure if it is because there is some prequisite for calling the function within the class, or something in my template-system is interfering with phpBB.
Has anyone encountered similiar errors before? Any tips on what to change or what causes the error would be great