On installing Random Terms and dependencies, I get "Recoverable fatal error: Argument 2 passed to ProcessApiServer::configurationFormValidate() must be an array, null given, called in /var/www/html//sites/all/modules/process_api/process_api.admin.inc on line 401 and defined in ProcessApiServer->configurationFormValidate() (line 412 of /var/www/html//sites/all/modules/process_api/includes/entity.inc)." on create new server.

Also, Entity Metadata is marked as Deprecated in the latest release of Entity.

CommentFileSizeAuthor
#7 calais_threads_setting.txt2.13 KBdeltab
#3 error.jpg46.84 KBdeltab

Comments

quazardous’s picture

Project: Text Mining API » Generic Process API
quazardous’s picture

Status: Active » Postponed (maintainer needs more info)

I can't reproduce

deltab’s picture

StatusFileSize
new46.84 KB

I have this in my Status Report - don't know if it means anything. I still get the error on a clean install with just Text Mining API, Random Terms and dependencies.

HTTP_Request2 is installed on the server, so I am not sure what this warning means.

quazardous’s picture

for the status report i try to run :

    try {
      require_once 'HTTP/Request2.php';
      $request = new HTTP_Request2('http://drupal.org');
      $exists=TRUE;
    }
    catch (Exception $e) {
      $exists=FALSE;
    }

so HTTP/Request2.php must be in the include path. and it's only if drupal needs a proxy for Internet access.

I'll double check for the form warnings...

ty

quazardous’s picture

I've had no errors on a clean install with lastest dev modules.

PS : I m on a drupal dev core install

I'll check on the official release ASAP

deltab’s picture

Hi, I tried tests http://pear.php.net/manual/en/package.http.http-request2.intro.php and HTTP_Request2 is okay, and the latest, 0.5.2-alpha

I am on Drupal 7.0 latest, with the latest Entity API. No luck with Calais (silently dies instead of getting terms) and Random Terms still gets me

Recoverable fatal error: Argument 2 passed to ProcessApiServer::configurationFormValidate() must be an array, null given, called in /var/www/html/d7/sites/all/modules/process_api/process_api.admin.inc on line 401 and defined in ProcessApiServer->configurationFormValidate() (line 412 of /var/www/html/d7/sites/all/modules/process_api/includes/entity.inc).

deltab’s picture

StatusFileSize
new2.13 KB

I am attaching my configuration settings for Calais, for each node saved, I see the text mining api module stores the node url (node/nid) and main body text > text format.

However, no Calais processing is done. I tested for HTTP/Request2.php in many ways, and it is installed correctly and found by PhP.

Not sure why Title, Main body text and fulltext are not processed, though. Is there something I should be checking for? All error logs are silent on Calais issues.

quazardous’s picture

- for the line 401 error I ve done some modification

- for calais : is your drupal behind a proxy ?

deltab’s picture

No, Drupal is not behind any proxy - the server is setup using the Drupal's multisite feature, though, so the site is not in /var/www/html/sites/default but sites/www.mysite.com with the HTMLDIR leading to the site is /var/www/html as required by Drupal.

deltab’s picture

Random Terms now can be installed, but on run I get this: "Message Cannot determinate field to populate for thread test"

Settings are:

Status
enabled (disable)
Machine name
test
Entity type
Node
Server
test
Standard thread options

Cron limit
50 items per cron run.
Try process live: yes
Processed fields
Item language, Fulltext, URI, The main body text » Text

Configuration status
Custom

quazardous’s picture

Ok,

I ve tested only the http query through proxy... I ll manage to work on a drupal no behind a proxy...

quazardous’s picture

Cannot determinate field to populate for thread :

that happens when there is no vocabulary field !

see line 71 of textmining_api/includes/service.inc

deltab’s picture

I have a term reference field, I don't see vocabulary field anywhere - how is a vocabulary field added to the content type?

quazardous’s picture

sorry i said vocabulary field but it s term ref oc :p

so it seams that the term ref field is not well saved....

deltab’s picture

what is oc: p? I am clearly missing something here so perhaps a detailed documentation can get me started? I only have one term_reference field in the database, in field_config table as follows:

3 field_tags taxonomy_term_reference taxonomy 1 field_sql_storage field_sql_storage 1 0 a:6:{s:8:"settings";a:1:{s:14:"allowed_values";a:1:{i:0;a:2:{s:10:"vocabulary";s:4:"tags";s:6:"parent";i:0;}}}s:12:"entity_types";a:0:{}s:12:"translatable";b:0;s:7:"storage";a:4:{s:4:"type";s:17:"field_sql_storage";s:8:"settings";a:0:{}s:6:"module";s:17:"field_sql_storage";s:6:"active";i:1;}s:12:"foreign keys";a:1:{s:3:"tid";a:2:{s:5:"table";s:18:"taxonomy_term_data";s:7:"columns";a:1:{s:3:"tid";s:3:"tid";}}}s:7:"indexes";a:1:{s:3:"tid";a:1:{i:0;s:3:"tid";}}} -1 0 0

quazardous’s picture

oc = of course

u have to choose the field_tag in the conf form of the text mining thread.

if it don't appear it s a bug

deltab’s picture

Here is the conf, the Open Calais tags or Random Tags do not appear.

------------------------------------

Status
    enabled (disable)
Machine name
    opencalais_for_textmining_api_thread
Entity type
    Node
Server
    Opencalais for Textmining API
Standard thread options

    Cron limit
        50 items per cron run.
    Try process live: no
    Processed fields
        Title, Item language, The main body text » Text, Tags » Term ID, Tags » Name, Tags » Description, Tags » Weight, Tags » Node count, Tags » URL, Tags » Vocabulary » Vocabulary ID, Tags » Vocabulary » Name, Tags » Vocabulary » Machine name, Tags » Vocabulary » Description, Tags » Vocabulary » Term count 

Service specific thread options

    Vocabulary
        Tags (field_tags)
    Add terms mode
        Only if no existing terms
    Allow create terms
        Yes
    Vocabulary for City
        Tags (field_tags)
    Add terms mode for City
        Only if no existing terms
    Allow create terms for City
        Yes
    Vocabulary for Company
        Tags (field_tags)
    Add terms mode for Company
        Only if no existing terms
    Allow create terms for Company
        Yes
    Vocabulary for Continent
        Tags (field_tags)
    Add terms mode for Continent
        Only if no existing terms
    Allow create terms for Continent
        Yes
    Vocabulary for Country
        Tags (field_tags)
    Add terms mode for Country
        Only if no existing terms
    Allow create terms for Country
        Yes
    Vocabulary for NaturalFeature
        Tags (field_tags)
    Add terms mode for NaturalFeature
        Only if no existing terms
    Allow create terms for NaturalFeature
        Yes
    Vocabulary for Organization
        Tags (field_tags)
    Add terms mode for Organization
        Only if no existing terms
    Allow create terms for Organization
        Yes
    Vocabulary for Person
        Tags (field_tags)
    Add terms mode for Person
        Only if no existing terms
    Allow create terms for Person
        Yes
    Vocabulary for ProvinceOrState
        Tags (field_tags)
    Add terms mode for ProvinceOrState
        Only if no existing terms
    Allow create terms for ProvinceOrState
        Yes
    Vocabulary for Region
        None
    Add terms mode for Region
        Only if no existing terms
    Allow create terms for Region
        Yes 

Configuration status
    Custom 
quazardous’s picture

Status: Postponed (maintainer needs more info) » Needs review

found something !

there was a bug in the add thread form.... was ok in the edit thread...

can u re try ?

deltab’s picture

Now I really don't know what I am doing wrong - setup a new Drupal 7.x-1.0 instance, with just the latest versions of text mining and generic process API and dependencies, Devel 7.x-1.0 Entity 7.x-1.0, Entity API 7.x-1.0-beta6,

Enabled Random Terms and configured as below. Still, no terms in Taxonomy Tags vocabulary

Status
    enabled (disable)
Machine name
    random_terms_thread
Entity type
    Node
Server
    Random Terms Test
Standard thread options

    Cron limit
        50 items per cron run.
    Try process live: no
    Processed fields
        Title, Item language, Fulltext, URI 

Service specific thread options

    Vocabulary
        Tags (field_tags)
    Add terms mode
        Only if no existing terms
    Allow create terms
        Yes
    Number of terms
        5 

Configuration status
    Custom 
quazardous’s picture

plz try with the last dev snapshot of D7 and each module...

deltab’s picture

Random terms are generated with the latest dev snapshot - no luck with Calais terms however.

quazardous’s picture

hi,

I m about to correct another bug #1060276 that may be connected.

I ve found some weird issue about locale support : if tags are not in the same language as the node, they won't show.

and by default node are undefined language but default language is english (unless u install module locale)

so i ve something like that to add :

        $all_languages=field_available_languages($thread->entity_type, $field);
        $langcode = language_default('language');
// todo define the best language

quazardous’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

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