What defines a member to phpBB

Discuss phpBB 3.0.x in general.
Forum rules
Please post any phpBB 3.1.x related topics in the forum.
User avatar
Gingah
New member
New member
Posts: 22
Joined: 21 May 2009, 13:59
Contact:

What defines a member to phpBB

Postby Gingah » 31 May 2009, 12:50


User avatar
igorw
Past Contributor
Past Contributor
Posts: 1967
Joined: 01 Jun 2006, 20:48
Real name: Igor
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: What defines a member to phpBB

Postby igorw » 31 May 2009, 13:13

Please enable DEBUG and DEBUG_EXTRA in config.php. For some reason your DB connection is not working, perhaps you have the wrong connection details set in config.php?

- we're poor!

User avatar
Gingah
New member
New member
Posts: 22
Joined: 21 May 2009, 13:59
Contact:

Re: What defines a member to phpBB

Postby Gingah » 31 May 2009, 14:11


User avatar
igorw
Past Contributor
Past Contributor
Posts: 1967
Joined: 01 Jun 2006, 20:48
Real name: Igor
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: What defines a member to phpBB

Postby igorw » 31 May 2009, 14:35

What version of phpBB are you running? Can you past the contents of includes\cache.php?

- we're poor!

User avatar
Gingah
New member
New member
Posts: 22
Joined: 21 May 2009, 13:59
Contact:

Re: What defines a member to phpBB

Postby Gingah » 31 May 2009, 14:54


User avatar
igorw
Past Contributor
Past Contributor
Posts: 1967
Joined: 01 Jun 2006, 20:48
Real name: Igor
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: What defines a member to phpBB

Postby igorw » 31 May 2009, 17:29

Hmm, should be fine. This puzzles me.

- we're poor!

User avatar
Gingah
New member
New member
Posts: 22
Joined: 21 May 2009, 13:59
Contact:

Re: What defines a member to phpBB

Postby Gingah » 31 May 2009, 18:10


User avatar
Gingah
New member
New member
Posts: 22
Joined: 21 May 2009, 13:59
Contact:

Re: What defines a member to phpBB

Postby Gingah » 01 Jun 2009, 09:33

I had a tought when I woke up: Is it possible that the MySQL connections are interfering with each other? The site and phpBB are running different databases, and different connections (phpBB uses $sql, the site uses $dbh) and neither are closed until at the end of the site.

User avatar
igorw
Past Contributor
Past Contributor
Posts: 1967
Joined: 01 Jun 2006, 20:48
Real name: Igor
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: What defines a member to phpBB

Postby igorw » 01 Jun 2009, 09:56

That shouldn't be a problem, really.

- we're poor!

User avatar
Gingah
New member
New member
Posts: 22
Joined: 21 May 2009, 13:59
Contact:

Re: What defines a member to phpBB

Postby Gingah » 01 Jun 2009, 12:57

Hmmm, then I'm not really sure what crashes it. I mean, Call to a member on a non-object undoubtedly is a php-error (not phpBB specific), but I'm unsure what causes it, and google gave no straight answers about what regular causes of the error is.

User avatar
igorw
Past Contributor
Past Contributor
Posts: 1967
Joined: 01 Jun 2006, 20:48
Real name: Igor
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: What defines a member to phpBB

Postby igorw » 01 Jun 2009, 13:18

It's caused by overwriting $db. Are you doing that somewhere?

- we're poor!

User avatar
Gingah
New member
New member
Posts: 22
Joined: 21 May 2009, 13:59
Contact:

Re: What defines a member to phpBB

Postby Gingah » 01 Jun 2009, 21:02

No, can't find any reference to it outside of phpBB. The really odd thing though, is that the simple template-system causes the error to appear (and it has nothing that interferes with a MySQL-statement or $db).

User avatar
igorw
Past Contributor
Past Contributor
Posts: 1967
Joined: 01 Jun 2006, 20:48
Real name: Igor
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: What defines a member to phpBB

Postby igorw » 01 Jun 2009, 21:11

There must be something.

- we're poor!

User avatar
Gingah
New member
New member
Posts: 22
Joined: 21 May 2009, 13:59
Contact:

Re: What defines a member to phpBB

Postby Gingah » 02 Jun 2009, 09:17

Could it be a confused error? For example that phpBB uses a template-function that uses some of the same variable-names, and then replaces some part that phpBB also replaces, and therefore kills some phpBB function.

User avatar
Obsidian
Supporter
Supporter
Posts: 736
Joined: 13 May 2008, 15:20
Real name: Damian
Contact:

Re: What defines a member to phpBB

Postby Obsidian » 02 Jun 2009, 14:07



[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Return to “phpBB 3.0.x "Olympus" discussion”

Who is online

Users browsing this forum: Google [Bot] and 5 guests