When I try to save a page I get this error in the Drupal page.
"Calais processing error: Missing parameter: content."
I have search for other references to this but couldn't find anything.
I'm using Drupal 5.7
There is content in the page.
Am I missing a setting or something?
Thanks
Vas
Comments
Comment #1
febbraro commentedWhen saving content the $node->title and $node->body attributes are combined and submitted as "content" are you doing anything (via nodeapi for example) that would cause those values to be blank?
Comment #2
vascopj commentedHi
No I'm not using nodeapi at all.
Any other suggestions?
Thanks
Vas
Comment #3
vascopj commentedHi
Just to let you know I've upgraded to Drupal 5.8 and this error is still an issue.
Thanks
Vas
Comment #4
febbraro commentedI can only assume that this was a temporary problem with the calais service itself. If this is still an issue please repoen.
Comment #5
vascopj commentedIt is still a problem but maybe it is a setting I am missing.
I have the Calais key entered and I selected "Have keywords automatically applied" on the Page node with "Use Calais Global Entity defaults" selected.
I still get "Calais processing error: Missing parameter: content." when saving a page node.
Are there any other settings elsewhere which I would need to set?
Thanks
Comment #6
Anonymous (not verified) commentedIs there a title and a body on your page node?
Comment #7
febbraro commentedIf you are comfortable mucking with the code you can try to place some debug in the calais_api.module file to print out what you are actually sending the the service. That might help to determine if there is a problem with your nodes/content, the module, or the service.
Comment #8
febbraro commentedI have successfully reproduced this error message (by direct mucking with code). What is happening is that the 'content' key in the $data array is NULL. For whatever reason your $node->title and $node->body attributes are NULL or blank.
Comment #9
vascopj commentedHmm
That is odd because the content does have a title and body.
Ok I will mees around and put in debug code to try to identify the cause.
I will report back when I find something.
Thank you
Vas
Comment #10
vascopj commentedHi
I got to try this out now.
I debugged using the following:
in "calais_api_analyze"
print_r($node);
print $content;
print_r($parameters);
print_r($data);
print $data_enc;
print_r($ret)
I put these into the relevant palces and they all had content in there.
Here is the output from the $ret variable.
Does api.opencalais.com need to get access back to my site? I am testing on my local machine.
Thank you
Vas
Comment #11
febbraro commentedThe API does not need access back to your site, so you are good there.
Can you post the output from $data and $data_enc? Thanks.
Comment #12
vascopj commentedHere are various outputs
returns
returns
In the drupal_http_request function in common.inc
returns
and
returns
I hope this helps?
Thanks
Vas
Comment #13
vascopj commentedI also went to the page directly
http://api.opencalais.com/enlighten/calais.asmx/Enlighten?licenseID=r7hh...
and this is the output I got (which appears to be correct)
Comment #14
wxman commentedI don't know if this will help any, but I was having the same trouble on a test site I set up on a local computer. I made a new copy of the whole site on my actual web server with all the same settings, and it works perfectly now. The only difference with me is I'm using Drupal 6.4, but the problem sounded exactly the same. For some reason, it doesn't like it running on a local system.
Good luck
Comment #15
vascopj commentedHi wxman
Ok thanks for the post. I will try that. Hopefully it will work.
I will post back when I try it out.
Thanks
Comment #16
febbraro commentedAny success here?
Comment #17
febbraro commentedInactive for over 5 weeks, reopen if still an issue.