Generate custom report, does not work in OJS3

Hi

I have problems with “generate custom report”
I tried a new installation but the problem persists

Do you have any idea what could be the problem?

Current version: 3.0.2.0

Hi @angoba,

It looks like your PHP is configured to display PHP errors to the browser. I would suggest changing your PHP configuration to direct these to a log file instead.

Regards,
Alec Smecher
Public Knowledge Project Team

The problem is not “display php errors”
The problem is that it does not load, the “generate custom report”

thanks and best regards

Hi @angoba,

If PHP is configured to send error messages to the browser, but the browser is expected to return an AJAX response to a Javascript handler, the error message can garble the response and cause Javascript processing to fail. It would look like what you’ve captured in that screenshot.

Regards,
Alec Smecher
Public Knowledge Project Team

I have the same problem, do we know why the Custom Report does not work???

Hi @jmacgillivray,

Can you be more specific about the problem you’re experiencing?

Regards,
Alec Smecher
Public Knowledge Project Team

It is the same as the picture above.
I am rumming ojs 3.1.1.2
Review Report works
Articles Report Works
View Report works
Counter Reports works.
Click on Generate Custom report…A wheel is loading…and it never generates any reports. I hope this helps

Hi @jmacgillivray,

There are two images above. Which is most like what you’re experiencing?

Regards,
Alec Smecher
Public Knowledge Project Team

The second image.
The problem is not “display php errors”
The problem is that it does not load, the “generate custom report”

Hi @jmacgillivray,

Have you ensured that PHP errors are directed to the log rather than the browser (display_errors in config.inc.php and your php.ini)?

If that doesn’t help, check your browser console and your PHP error log for details.

Regards,
Alec Smecher
Public Knowledge Project Team

Hi @asmecher
OJS 3.1.1.4
I have the same problem.
I have display_errors = Off. php.ini and config.inc.php

Always loading…

I don’t have access to error.log on the server. Any idea? Thanks!

Hi @juanito,

See this issue, which includes a patch.

You should always have access to your PHP error log – I don’t think it’s probably relevant here, but some issues will be very tough to debug if you can’t read it. It’s worth chatting with your hosting provider if they really won’t give you access to this.

Regards,
Alec Smecher
Public Knowledge Project Team

Thanks @asmecher.
I applied this patch, yesterday, when “access denied”.
Access denied, resolved it, but now, always loading.

Hi @juanito,

The likeliest situation is a PHP error. Can you see about tracking down the PHP error log?

Regards,
Alec Smecher
Public Knowledge Project Team

Hi @asmecher, thank you for your reply.

error.log when i click “generate custom report”

[Tue Dec 18 17:41:37.757917 2018] [fcgid:warn] [pid 22247:tid 140536715351808] [client XX.231.XXX.XXX:60734] mod_fcgid: stderr: ojs2: Invalid metric type., referer: https://XXXXXXX/ojs/index.php/ramd/management/tools/reportGenerator

Hi @juanito,

Have a look at this thread: PKP Usage statistics report missing in OJS 3.1.1-4

Regards,
Alec Smecher
Public Knowledge Project Team

1 Like