Closed (fixed)
Project:
Droptor
Version:
7.x-3.0
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
6 Dec 2012 at 22:40 UTC
Updated:
6 Jan 2013 at 23:19 UTC
Jump to comment: Most recent file
On sites that use the syslog module, the watchdog table doesn't exist.
This causes the following fatal PHP error in Droptor:
Dec 6 16:11:18 Main drupal: http://www.example.com|1354831877|php|96.126.109.115|
http://www.example.com/droptorfeed/761bb5f7a5c05faf0a535483c360bdc6e9a51111||0||
PDOException: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'watchdog'
doesn't exist: SELECT COUNT(*) FROM {watchdog}; Array#012(#012)#012 in
droptor_watchdog_size() (line 318 of /var/www/html/example.com/releases/
20121128192654/drupal/sites/all/modules/droptor/droptor.feed.inc).
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | droptor-no-watchdog-error-1860590-3.patch | 1.53 KB | traviscarden |
| #3 | droptor-no-watchdog-error-1860590-3-D6-do-not-test.patch | 2.92 KB | traviscarden |
Comments
Comment #1
jemond commentedJust pushed a fix to the dev branches for 7.x-3.x and 7.x-4.x versions. Let me know if this doesn't work. Thanks for reporting!
Comment #3
traviscarden commentedUh-oh. The module is called "dblog", not "watchdog", so the new
module_exists()tests are always going to returnFALSE, and watchdog data will never be sent. Better fix this one before the next release! Attached are a patch for D7 and one for D6.p.s. - You might want to check out the Drupal coding standards. Windows line-endings and such make for difficult patching. :)
Comment #4
jemond commentedOh mega brain fail. Will take a look. Not sure why there are Windows line endings, I'm on a Mac.
Comment #5
jemond commentedThanks for the patches. Pushed to 6-3.x, 6-4.x, 7-3.x, and 7-4.x.