We are using Moodle 2.3.1+ and Postgres 8.4. We had some Summer Courses which had a lot of activity. When we try to view the logs, we can view them just fine. But when we try to download them in excel or ODS or text, we get an error. I'm sure this has something to do with the size of the logfile. If we narrow our criteria we can usually download the file in excel, but we need a report of all of the activity not just for one day.
Here is the error we get in Chrome:
This webpage is not found. No webpage was found for the web address: http://moodle.nobl.k12.in.us/moodle/report/log/index.php?chooselog=1&showusers=0&showcourses=1&id=292&group=675&user=0&date=&modid=&modaction=view&logformat=downloadasexcel
Error 6 (net::ERR_FILE_NOT_FOUND): The file or directory could not be found.
Here is the error from the Postgresql Log:
2012-09-13 16:30:37 EDT ERROR: invalid input syntax for
integer: "View own submission status page." 2012-09-13 16:30:37 EDT
STATEMENT: SELECT name FROM mdl_assign WHERE id = $1
Here is the error from the Apache Error Log Debug:
[Thu Sep 13 16:30:37 2012] [error] [client] Default exception handler: Error reading from database
Debug: ERROR: invalid input syntax for integer: "View own submission
status page."\nSELECT name FROM mdl_assign WHERE id = $1\n[array (\n 0
=> 'View own submission status page.',\n)]\nError code:
dmlreadexception\n* line 407 of /lib/dml/moodle_database.php:
dml_read_exception thrown\n* line 239 of
/lib/dml/pgsql_native_moodle_database.php: call to
moodle_database->query_end()\n* line 708 of
/lib/dml/pgsql_native_moodle_database.php: call to
pgsql_native_moodle_database->query_end()\n* line 1346 of
/lib/dml/moodle_database.php: call to
pgsql_native_moodle_database->get_records_sql()\n* line 1419 of
/lib/dml/moodle_database.php: call to
moodle_database->get_record_sql()\n* line 1400 of
/lib/dml/moodle_database.php: call to
moodle_database->get_field_sql()\n* line 1379 of
/lib/dml/moodle_database.php: call to
moodle_database->get_field_select()\n* line 690 of /course/lib.php: call
to moodle_database->get_field()\n* line 178 of /report/log/index.php:
call to print_log_xls()\n, referer:
http://moodle.nobl.k12.in.us/moodle/report/log/index.php?id=292
I've attached a picture of the report that we are trying to export into excel.
Any ideas? Is there a setting we should change in timeouts some place? Is this just a bug with Moodle and Postgres?
php max_execution_time=600; max_input_time=60; memory limit is 512M
Thanks for any help.