I upgraded to the latest version and suddenly no more tags are created. The old ones are still visible but no new tags are created. I uninstalled, reinstalled, made database updates, followed the steps in "http://drupal.org/node/304695#comment-1000617" etc. but nothing changed. I did the same with a different we site but same results. I checked the dblog but found no errors. After "bulk processing" I get a message that x blog-nodes have been processed but in the calais_term_node table I see entries for only one node. But these tags are not visible when I click the calais tab.

CommentFileSizeAuthor
#17 calais-request-html-entities.patch707 bytesfebbraro

Comments

Gamin’s picture

Hi,
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

febbraro’s picture

Do 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.

Gamin’s picture

Only 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

febbraro’s picture

Can 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.

Gamin’s picture

Yes, without any problem. I tried to remove and reinstall it also, no success. No errors in logs and no clue :-(

JacquesBopp’s picture

Hi febbraro,
If you want I can give you full administrator privileges on one of my test sites.

Gamin’s picture

Update :
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

febbraro’s picture

I 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?

Gamin’s picture

Sorry, I was mistaken. It doesn't work on pages. The keyword that has confused me, has been keyed in by me previously :-((

rkdesantos’s picture

Same 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.

febbraro’s picture

@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:

    $ret = drupal_http_request($uri, $headers, 'POST', $data_enc);
    dvm($uri);
    dvm($headers);
    dvm($data);
    dvm($ret);
    // OR print_r($ret);, etc.

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.

febbraro’s picture

Also, make sure that only Calais API and Calais are enabled. Tag Mods and Geo should be off.

Gamin’s picture

Here 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&paramsXML=++++%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"
}

Gamin’s picture

Ok, 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

rkdesantos’s picture

RE: 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?

febbraro’s picture

rkdesantos: 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.

febbraro’s picture

StatusFileSize
new707 bytes

Ok, 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.

Gamin’s picture

Thanks 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.

febbraro’s picture

Status: Active » Reviewed & tested by the community

Glad it could help. As for French and other languages, those appear to be coming soon.

http://www.opencalais.com/node/2701

febbraro’s picture

Status: Reviewed & tested by the community » Fixed

In 2.2 release

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.