After installation for Drupal 6.3 (RDF, ARC2 modules installed), when creating a new page i get the following error.

* warning: Invalid argument supplied for foreach() in /home/niastool/public_html/modules/opencalais/calais.module on line 405.
* warning: implode() [function.implode]: Invalid arguments passed in /home/niastool/public_html/modules/opencalais/calais.module on line 431.
* user warning: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ') ORDER BY v.weight, v.name' at line 4 query: SELECT v.vid, v.*, n.type FROM vocabulary v LEFT JOIN vocabulary_node_types n ON v.vid = n.vid WHERE n.type = 'page' and v.vid in () ORDER BY v.weight, v.name in /home/niastool/public_html/modules/opencalais/calais.module on line 440.

I tried disabling the module and removing the folders and again installing the module, but i get the same error. What should be done? Thankyou,
regards
sashi

Comments

febbraro’s picture

Have you gone to the Calais node settings page and saved first?

sashi’s picture

Yes i did change the node settings, but since you reminded me i went to check, the node setting check boxes remains default without showing the choices i had made. Again I changed the settings and i saved it, but it remains unchanged. Its not saving the config. I think you might have identified the origin of the problem, but why the settings are not getting saved?

febbraro’s picture

Did you ever figure out why the variables are not getting updated in the DB?

cybe’s picture

I'm experiencing the same problem and can find no clues as to what the problem is...

febbraro’s picture

I put in a check for this specific SQL error. I imagine you still wont be seeing results though.

Can you verify that the any of the following variable exist in your variable table.

calais_vocabulary_names
calais_applied_entities_global
calais_applied_entities_page
calais_applied_entities_story
calais_applied_entities_[the content type you are trying to submit]

If those do not exist, then you have not saved the "Calais Node Settings" page and will need to do that first.

febbraro’s picture

Assigned: Unassigned » febbraro
febbraro’s picture

Status: Active » Closed (fixed)

no recent activity