phpbb3 forum hosting

Discuss the development of future releases of phpBB (phpBB 3.x minor releases) and MODing/Coding related questions.
[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
Sim
New member
New member
Posts: 8
Joined: 11 Apr 2008, 18:35
[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

phpbb3 forum hosting

Postby Sim » 12 Apr 2008, 06:51


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: phpbb3 forum hosting

Postby igorw » 12 Apr 2008, 10:03


- we're poor!

Sim
New member
New member
Posts: 8
Joined: 11 Apr 2008, 18:35
[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: phpbb3 forum hosting

Postby Sim » 12 Apr 2008, 12:39


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: phpbb3 forum hosting

Postby igorw » 12 Apr 2008, 13:27

valid_forum_1 and valid_forum_2 are examples for allowed names. You need to validate them very strictly, else you create security holes.

- we're poor!

Sim
New member
New member
Posts: 8
Joined: 11 Apr 2008, 18:35
[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: phpbb3 forum hosting

Postby Sim » 12 Apr 2008, 19:33


Sim
New member
New member
Posts: 8
Joined: 11 Apr 2008, 18:35
[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: phpbb3 forum hosting

Postby Sim » 12 Apr 2008, 20:17

ok. i changed all forum=name to forum1=name and its still setting topic_id's as 0 and when replying to the first topic created which is created by phpBB. it creates a new category.lol. wtf?


You think phpBB would still function properly if i set topic_id and post_id to primary key and auto-increment then removed the insert topic_id and post_id?

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: phpbb3 forum hosting

Postby igorw » 12 Apr 2008, 21:25


- we're poor!

Sim
New member
New member
Posts: 8
Joined: 11 Apr 2008, 18:35
[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: phpbb3 forum hosting

Postby Sim » 12 Apr 2008, 22: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: phpbb3 forum hosting

Postby igorw » 13 Apr 2008, 00:15

My code was only an example, you can have it handled totally differently. But IMO it is important that you validate that to prevent potential sql injection.

- we're poor!

Sim
New member
New member
Posts: 8
Joined: 11 Apr 2008, 18:35
[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: phpbb3 forum hosting

Postby Sim » 13 Apr 2008, 00:32

You think phpBB would still function properly if i set topic_id and post_id to primary key and auto-increment then removed the insert topic_id and post_id?


[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
[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 Development discussion”

Who is online

Users browsing this forum: No registered users and 24 guests