Page 1 of 1

Problem when posting with statistics mod

Posted: Fri 2. Apr 2010, 20:16
by exsyfg
Hi all,

After installation on my board of the statistics mod i have the following error when posting :

[phpBB Debug] PHP Notice: in file /statistics/includes/functions.php on line 1717: Invalid argument supplied for foreach()
[phpBB Debug] PHP Notice: in file /statistics/includes/functions.php on line 1738: Invalid argument supplied for foreach()


Can somebody help me on this please?

Thanks in advance,
Franky.

Re: Problem when posting with statistics mod

Posted: Fri 2. Apr 2010, 20:22
by exsyfg
Or more ...

[phpBB Debug] PHP Notice: in file /statistics/includes/functions.php on line 1717: Invalid argument supplied for foreach()
[phpBB Debug] PHP Notice: in file /statistics/includes/functions.php on line 1738: Invalid argument supplied for foreach()
[phpBB Debug] PHP Notice: in file /statistics/includes/functions.php on line 1782: Invalid argument supplied for foreach()
[phpBB Debug] PHP Notice: in file /statistics/includes/functions.php on line 1788: Invalid argument supplied for foreach()
[phpBB Debug] PHP Notice: in file /statistics/includes/functions.php on line 1813: Invalid argument supplied for foreach()

Re: Problem when posting with statistics mod

Posted: Fri 2. Apr 2010, 20:25
by exsyfg
What needs to be told:

I've got a 'timeout after 30 seconds' during the execution of the installation-script, after the database-actions.

Best regards,
Franky.

Re: Problem when posting with statistics mod

Posted: Fri 2. Apr 2010, 20:50
by Marc
Undo the edit to posting.php.

Re: Problem when posting with statistics mod

Posted: Fri 2. Apr 2010, 21:15
by exsyfg
Thanks Marc,

That solved indeed the error. Will this change the behavior of the statistics mod?

Many thanks for your help.

Best regards,
Franky.

Re: Problem when posting with statistics mod

Posted: Fri 2. Apr 2010, 21:26
by Marc
The BBCode and smiley statistics will not display anything, but that's it.

Re: Problem when posting with statistics mod

Posted: Fri 2. Apr 2010, 21:28
by exsyfg
Do you have any idea on how you can avoid the timeout during the install_functions.php script?

Is there any need i should try to run this anyway?

Re: Problem when posting with statistics mod

Posted: Sat 3. Apr 2010, 19:58
by Marc
I added a function that will not have an issue with timeouts anymore in the next version of phpBB Statistics. As this needs some edits to several files, I would not recommend adding the new function by hand.