1 (edited by apprayo 05/11/2011 11:03:09 am)

Topic: Bug (?) in report generator module

Hi all,

I successfully installed the module. I got the problem when I tried to create new report. In the 'Definition of a new Item of the report' page, inserting some values and clicking 'Store Item' button didn't give me any feedback. Even setting $go_debug = 1 or 2 also didn't give me any clues.

So I tried to trace the code. I found that the problem was on this line of repgen_strings.php file:

while (is_array($_POST) && list($key, $val) = each($_POST))

The list() only works on numerical arrays (I just check the PHP manual), and $_POST doesn't have numerical indices.

So I replaced that line of code with this:

if(is_array($_POST)) 
{
  foreach($_POST as $key => $value)

Of course with additional closing '}' on the right place.

Now I can store items on the new report.
Hope this helps somebody here.

Regards,
Albert

Re: Bug (?) in report generator module

Hi
I have the same problem, repgen seems to not work. Is every body using it ?
As an alternative, I'm looking for a (free)  php based reporting tool, doesn't any one know one ?

Regards

Re: Bug (?) in report generator module

Hello, so are we. This is not the best Report Generator, but as far as we know the only one in PHP.

/Joe

4 (edited by elax 08/24/2011 09:41:10 am)

Re: Bug (?) in report generator module

My mistake
I didn't read the initial post properly. I can store item now but I got an error about $numPages missing :-(

Elax