Closed (duplicate)
Project:
OpenCalais
Version:
6.x-3.1
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
1 May 2009 at 18:12 UTC
Updated:
7 Jul 2009 at 14:50 UTC
Symptom
On a host without the devel module installed (nor enabled), requesting the Calais Bulk Processing (admin/settings/calais/bulk-process) generates a HTTP error 500 (internal server error).
Analysis
The server log shows [date] [error] [client IP] PHP Fatal error: Call to undefined function dpm() in /filesystem-path-to-host/sites/all/modules/opencalais/calais.admin.inc on line 416, referer: http://host/arguments
Solution
Simply embedding dpm() calls with the following control statement prevents the symptom described above.
if (module_exists('devel'))
Patch
Patch is enclosed for review.
Thanks
| Comment | File | Size | Author |
|---|---|---|---|
| calais.admin-devel.patch | 1.46 KB | benoit.borrel |
Comments
Comment #1
benoit.borrel commentedComment #2
febbraro commentedThanks, we have this fixed in CVS already. #429560: Flaming red errors upon bulk processing Really appreciate the patch though.
Comment #3
j4 commentedHi Febbraro,
So what should I do to ensure that dont get the warning. Sorry for sounding dense!!
Thanks in advance
Jaya
Comment #4
febbraro commentedFor now, you can either
1) apply the patch from #429560: Flaming red errors upon bulk processing
2) you can install and enable the devel module.
#1 is the better solution, but #2 will work, especially if you are just fooling around and not going into production right away.
Comment #5
febbraro commentedAlso you can use the dev version too, that has the fix in it.
Comment #6
j4 commentedHi Febbraro,
Sorry for the delay in getting back to you. Tried both installing the dev version and the devel module, am still ending up with the same error. to be very frank, have no idea how to use the devel module to help me get over this module. And the site in already in production stage. I have calais running beautifully in 2 other sites..:-(
Thanks for any help.
Warm regards
Jaya
Comment #7
febbraro commented@j4
Something must be wrong b/c the dev version fixes this issues. Try deleting the opencalais folder and unpacking the dev one there.