Here's the problem:
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275: count(): Parameter must be an array or an object that implements Countable
I've checked line 1275 in the Core.php and this is what its pointing to:
Code: Select all
// add multibyte extensions if possible
if (function_exists('mb_get_info')) {
/**
* Returns the length of a variable.
*
* @param Twig_Environment $env
* @param mixed $thing A variable
*
* @return int The length of the value
*/
function twig_length_filter(Twig_Environment $env, $thing)
{
if (is_scalar($thing)) {
return mb_strlen($thing, $env->getCharset());
}
if (is_object($thing) && method_exists($thing, '__toString') && !$thing instanceof \Countable) {
return mb_strlen((string) $thing, $env->getCharset());
}
return count($thing);
}
I'm not familiar with what "twig" even is.
Support Request Template
What version of phpBB are you using? phpBB 3.2.1
What is your board's URL? http://www.romanova.club/forum/
Who do you host your board with? www.namecheap.com
How did you install your board? I used the download package from phpBB.com
What is the most recent action performed on your board? Fresh Install
Is registration required to reproduce this issue? No
Do you have any MODs installed? No
Do you have any extensions installed? No
What styles do you currently have installed? prosilver
What language(s) is your board currently using? English
Which database type/version are you using? MariaDB
What is your level of experience? New to PHP and phpBB
What actions did you take (updating your board; installing a MOD, style or extension; etc.) prior to this problem becoming noticeable? Prior to noticing this problem, everything worked fine. After I updated my linux system and configured a simple stateful firewall/iptables on my webserver, the problem was noticed.
I uninstalled the only extension [VigLink] and disabled the prosilver theme, but I still get the following two messages back to back on the forum.
Please describe your problem. The error messages appear at the very top of the forum - above the header, also in the ADP General tab in the upper left corner [above "Quick Access", but below "You are logged in as:"], it shows after each forum desciption, and in the "forum birthdays" area:
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275: count(): Parameter must be an array or an object that implements Countable
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275: count(): Parameter must be an array or an object that implements Countable
Here's how it looks from within an existing thread: https://i.imgur.com/MZ4dK2q.png
Lastly, it appears I cannot post a new thread inside a forum I just created: https://i.imgur.com/Ea8MXin.png
Generated by SRT Generator
Parameter must be an array or an object that implements Countable