-
Bug
-
Resolution: Fixed
-
Minor
-
2.2.3
-
MOODLE_22_STABLE
-
MOODLE_21_STABLE, MOODLE_22_STABLE, MOODLE_23_STABLE
-
I have many error messages like these in my Apache error log:
[Sun Jun 03 04:47:26 2012] [error] [client 72.14.199.147] PHP Notice: Undefined property: stdClass::$id in /var/www/lib/modinfolib.php on line 1090
|
[Sun Jun 03 04:47:26 2012] [error] [client 72.14.199.147] Default exception handler: Fehler in der Kodierung gefunden, den nur ein Programmierer korrigieren kann: Invalid $user parameter in check_user_preferences_loaded() call, missing id field Debug: \n* line 1576 of /lib/moodlelib.php: coding_exception thrown\n* line 1800 of /lib/moodlelib.php: call to check_user_preferences_loaded()\n* line 8363 of /lib/moodlelib.php: call to get_user_preferences()\n* line 536 of /lib/pagelib.php: call to get_user_device_type()\n* line 617 of /lib/pagelib.php: call to moodle_page->magic_get_devicetypeinuse()\n* line 1312 of /lib/pagelib.php: call to moodle_page->__get()\n* line 1261 of /lib/pagelib.php: call to moodle_page->resolve_theme()\n* line 1362 of /lib/setuplib.php: call to moodle_page->initialise_theme_and_output()\n* line 232 of /lib/rsslib.php: call to bootstrap_renderer->__call()\n* line 232 of /lib/rsslib.php: call to bootstrap_renderer->pix_url()\n* line 327 of /lib/rsslib.ph
|
p: call to rss_standard_header()\n* line 185 of /rss/file.php: call to rss_geterrorxmlfile()\n* line 148 of /rss/file.php: call to rss_error()\n
|
Additionally, the HTTP request is denied with a Error 503 in Apache log file:
[22/May/2012:05:40:33 +0200] "GET /rss/file.php/114/07d3f66b9ac69b2dac896bcab017d34a/mod_forum/7/rss.xml HTTP/1.1" 503 504 "-" "Feedfetcher-Google; (+http://www.google.com/feedfetcher.html; 1 subscribers; feed-id=15453903438458134882)"
|
I have analyzed this a little bit and found that the security token belongs to a moodle user account which has been deleted meanwhile. Regardless of this, Google Reader tries to fetch some rss feed which this user has subscribed to when he was still active.
I think Moodle should handle this a little bit more gracefully. Currently, Google Reader gets a HTTP 503 error because Moodle doesn't deal with this cause and outputs a early error ("red on yellow error message"). I would propose to deal with this cause in /lib/modinfolib.php, line 1090, and give Moodle a HTTP 403 or HTTP 404 error.