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

CommentFileSizeAuthor
calais.admin-devel.patch1.46 KBbenoit.borrel

Comments

benoit.borrel’s picture

Status: Patch (to be ported) » Needs review
febbraro’s picture

Status: Needs review » Closed (duplicate)

Thanks, we have this fixed in CVS already. #429560: Flaming red errors upon bulk processing Really appreciate the patch though.

j4’s picture

Hi Febbraro,

So what should I do to ensure that dont get the warning. Sorry for sounding dense!!
Thanks in advance

Jaya

febbraro’s picture

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.

febbraro’s picture

Also you can use the dev version too, that has the fix in it.

j4’s picture

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

febbraro’s picture

@j4

Something must be wrong b/c the dev version fixes this issues. Try deleting the opencalais folder and unpacking the dev one there.