Closed (fixed)
Project:
OpenCalais
Version:
6.x-2.x-dev
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
8 Dec 2008 at 12:51 UTC
Updated:
12 Feb 2009 at 18:30 UTC
Jump to comment: Most recent file
Comments
Comment #1
Gamin commentedHi,
I set up Calais today, and I have the same issue. Install went fine, ARC2 is installed, batch processing seems fine, but no tag :-((
Thanks for your help
Comment #2
febbraro commentedDo you have any data in either of these tables?
calais_term - Holds terms retrieved from the web service
calais_term_node - association of those terms to nodes.
Comment #3
Gamin commentedOnly this element in calais_term : 1 10 Person Communication http://s.opencalais.com/1/type/em/r/PersonCommunic... NULL NULL
My site is http://www.toutain.name and I am running the following versions :
Drupal 6.6
Calais 6.x-2.1
Resource Description Framework (RDF) 6.x-1.0-alpha3
ARC2 2008-11-18 is installed
Comment #4
febbraro commentedCan you edit / save the Calais configuration? Just thinking there could possibly be something wrong there that may get fixed. Unlikely, but worth a quick shot.
Comment #5
Gamin commentedYes, without any problem. I tried to remove and reinstall it also, no success. No errors in logs and no clue :-(
Comment #6
JacquesBopp commentedHi febbraro,
If you want I can give you full administrator privileges on one of my test sites.
Comment #7
Gamin commentedUpdate :
I tried Calais on a page creation, and it works !? Seems to not work only on blog entries :-((
If you wish, I can give you admin access to the site
Regards
Comment #8
febbraro commentedI can help debug w/ admin access if you want. Hit me on my contact tab with info. However, just so you know, I am at the Do It With Drupal conference so I am not incredibly available, but I will do my best to help.
@Gamin. It works on Page creation but not on blog creation? Are you sure you have it configured to process blog entries on the "Calais Node Settings" page?
Comment #9
Gamin commentedSorry, I was mistaken. It doesn't work on pages. The keyword that has confused me, has been keyed in by me previously :-((
Comment #10
rkdesantos commentedSame problem, no error messages but no tags either, new install of 5.x-1.6 on Drupal 5.13. What's most puzzling is that there are no error messages. Does v5 have a "bulk processing" option as I don't see that either.
Comment #11
febbraro commented@rkdesantos: No bulk in D5, the batch api is D6 only, so we only implemented it there.
@Gamin, @JacquesBopp: Your config looks fine. SO it must be something else. DO you feel comfortable putting debug statements in code? That will be the quickest way to figure out what is going on. In modules/opencalais/includes/Calais.inc in the analyze function you'll want to print_r or dvm/dpm the data structure returned from drupal_http_request. For example:
This will help us narrow in on if 1)our request to calais is the problem, 2)the results are the problem, or 3)the processing of those results is the problem.
Comment #12
febbraro commentedAlso, make sure that only Calais API and Calais are enabled. Tag Mods and Geo should be off.
Comment #13
Gamin commentedHere you are. Looks like an error occured related to content. Note that I replace the licence with ******************
#
string(41) "http://api.opencalais.com/enlighten/rest/"
#
array(1) {
["Content-Type"]=>
string(33) "application/x-www-form-urlencoded"
}
#
array(3) {
["licenseID"]=>
string(24) "******************"
["content"]=>
string(796) "mar, 09 déc. 2008 20:24:00 +0200Cela faisait un moment déjà que je cherchait un logiciel qui me permette de blogguer directement depuis l'iphone mais jusqu'ici impossible trouver le graal. C'est en verifiant les mises a jour d'Ecto (logiciel que j'utilise sur Mac) que je suis tombe sur iBlogger, disponible sur l'apps store d'Apple.
iBlogger fonctionne sur l'iphone et permet de mettre a jour depuis ce dernier son blog (quelqu'en soit la technologie, drupal sur ce site en l'occurrence), en y intégrant des photos prises sur l'iphone, des tags et meme les données de geolocalisation !
De la balle ;-)
Mobile Blogging from here.
[Posted with iBlogger from my iPhone]
"
["paramsXML"]=>
string(648) "
Drupal
"
}
#
object(stdClass)#34 (4) {
["request"]=>
string(2059) "POST /enlighten/rest/ HTTP/1.0
Host: api.opencalais.com
User-Agent: Drupal (+http://drupal.org/)
Content-Length: 1884
Content-Type: application/x-www-form-urlencoded
licenseID=******************&content=%3CDOCUMENT%3E%3CTITLE%3EiBlogger+rocks+%21%3C%2FTITLE%3E%3CDATE%3Emar%2C+09+d%C3%A9c.+2008+20%3A24%3A00+%2B0200%3C%2FDATE%3E%3CBODY%3ECela+faisait+un+moment+d%26eacute%3Bj%26agrave%3B+que+je+cherchait+un+logiciel+qui+me+permette+de+blogguer+directement+depuis+l%27iphone+mais+jusqu%27ici+impossible+trouver+le+graal.+C%27est+en+verifiant+les+mises+a+jour+d%27Ecto+%28logiciel+que+j%27utilise+sur+Mac%29+que+je+suis+tombe+sur+iBlogger%2C+disponible+sur+l%27apps+store+d%27Apple.%0D%0A%0D%0AiBlogger+fonctionne+sur+l%27iphone+et+permet+de+mettre+a+jour+depuis+ce+dernier+son+blog+%28quelqu%27en+soit+la+technologie%2C+drupal+sur+ce+site+en+l%27occurrence%29%2C+en+y+int%26eacute%3Bgrant+des+photos+prises+sur+l%27iphone%2C+des+tags+et+meme+les+donn%26eacute%3Bes+de+geolocalisation+%21%0D%0A%0D%0ADe+la+balle+%3B-%29%0D%0A%0D%0AMobile+Blogging+from+here.%0D%0A%0D%0A%5BPosted+with+iBlogger+from+my+iPhone%5D%0D%0A%0D%0A%26nbsp%3B%3C%2FBODY%3E%3C%2FDOCUMENT%3E¶msXML=++++%3Cc%3Aparams+xmlns%3Ac%3D%22http%3A%2F%2Fs.opencalais.com%2F1%2Fpred%2F%22+xmlns%3Ardf%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2F02%2F22-rdf-syntax-ns%23%22%3E%0D%0A++++%3Cc%3Aproce...
"
["data"]=>
string(515) "Document conversion error. Please make sure that the content-type (passed through the paramsXML) matches this document contents. [ErrorMessage:
org.dom4j.DocumentException: Error on line 1 of document : The entity "eacute" was referenced, but not declared. Nested exception: The entity "eacute" was referenced, but not declared.
]"
["headers"]=>
array(11) {
["Connection"]=>
string(5) "close"
["X-Lighty-Magnet-Uri-Path"]=>
string(16) "/enlighten/rest/"
["X-Mashery-Responder"]=>
string(34) "proxyworker-i-bf61c7d6.mashery.com"
["Content-Type"]=>
string(23) "text/xml; charset=utf-8"
["X-Aspnet-Version"]=>
string(9) "2.0.50727"
["Server"]=>
string(17) "Microsoft-IIS/6.0"
["Cache-Control"]=>
string(7) "private"
["Date"]=>
string(29) "Fri, 12 Dec 2008 07:09:05 GMT"
["X-Powered-By"]=>
string(7) "ASP.NET"
["Accept-Ranges"]=>
string(5) "bytes"
["Content-Length"]=>
string(3) "515"
}
["code"]=>
string(3) "200"
}
Comment #14
Gamin commentedOk, since I am french, we are using é,è, and co. And it seems that causes the problem. I tried an article without any eacute and it works :-(
I hope you will be able to give me the fix, since I am no at ease with DTD and so forth
Thanks for your help
Comment #15
rkdesantos commentedRE: v5. Apparently, if I set the content type to let Calais do it automatically it works but if I set it to be manual selection, it does not.
Q: how long should it typically take (clock time) for Calais to respond when we create a node? I open the tab and there is nothing there then what is the expected delay?
Comment #16
febbraro commentedrkdesantos: There should be no delay, it happens automagically and the Calais repsonse time (assuming you have a working internet connection) is on the order of a few hundred milliseconds.
Comment #17
febbraro commentedOk, I think I have answer for you guys. I have this change locally, but it was not in a release yet, so hopefully I get get a release together soon to help, but in the meantime use this patch, it should help out. the includes/Calais.inc file need to wrap the title and body sections in CDATA so that the XML parsing does not barf.
Give this a whirl and let me know if it helped.
Comment #18
Gamin commentedThanks for your involvment and your patience. Seems that with your patch, it is working fine. The only drawback is that french is not (yet) supported on Calais :-((
If you happen to know when support for other languages will be released, let me know. Otherwise, nice work of yours, and very cool module.
Comment #19
febbraro commentedGlad it could help. As for French and other languages, those appear to be coming soon.
http://www.opencalais.com/node/2701
Comment #20
febbraro commentedIn 2.2 release