User offline. Last seen 42 weeks 3 days ago. Offline
Joined: 06/17/2011

I downloaded the calaisphpdemo (OpenCalais_PHP_09Feb19) and run it on my linux server. After posting some text on the CalaisPHPDemo.html page, I was directed to the demo_results.php page with a "Unsupported Document" message. What is going on? I want to get the same results as I am getting on http://viewer.opencalais.com/  page.

I would appreciate for any help.

Thanks.

Trackback URL for this post:

http://www.opencalais.com/trackback/108063

Login or Register to post a comment.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
User offline. Last seen 42 weeks 3 days ago. Offline
Joined: 06/17/2011

Fatih Şen
Ph.D. Candidate/Computer Science
University of Arkansas at Little Rock
2801 S. University Ave
Little Rock, AR 72204

I am using this: var $contentType = "text/txt";

This can be found in CalaisPHPIf.php file.

User offline. Last seen 2 weeks 3 days ago. Offline
Joined: 12/15/2010

You should use text/raw instead of text/txt

User offline. Last seen 42 weeks 3 days ago. Offline
Joined: 06/17/2011

Fatih Şen
Ph.D. Candidate/Computer Science
University of Arkansas at Little Rock
2801 S. University Ave
Little Rock, AR 72204

Firefox only gives the "Unsupported Document" message, but when I tested it on IE, I got this error besides that message:

Message: '_clfResult' is null or not an object
Line: 228
Char: 18
Code: 0
URI: http://144.30.1.49/calaisphpdemo/ViewerJSON/js/highlight.js

User offline. Last seen 2 weeks 3 days ago. Offline
Joined: 12/15/2010

Which Content-Type are you using?