Bulk processing generates HTTP 500 when devel module not installed/enabled
benoit.borrel - May 1, 2009 - 18:12
| Project: | Calais |
| Version: | 6.x-3.1 |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | benoit.borrel |
| Status: | duplicate |
Jump to:
Description
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
| Attachment | Size |
|---|---|
| calais.admin-devel.patch | 1.46 KB |

#1
#2
Thanks, we have this fixed in CVS already. #429560: Flaming red errors upon bulk processing Really appreciate the patch though.
#3
Hi Febbraro,
So what should I do to ensure that dont get the warning. Sorry for sounding dense!!
Thanks in advance
Jaya
#4
For 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.
#5
Also you can use the dev version too, that has the fix in it.
#6
Hi 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
#7
@j4
Something must be wrong b/c the dev version fixes this issues. Try deleting the opencalais folder and unpacking the dev one there.