[Fri Jan 16 03:57:21 2009] [error] [client 82.35.148.244] PHP Fatal error:  Cannot use object of type stdClass as array in /home/sites/co.uk/public_html/sites/all/modules/contributions/autotag/autotag.module on line 37, referer: http://co.uk/node/1173/map
            $terms[$tid['vid']][] = $tid['tid'];
 

?

Comments

kenorb’s picture

And this one as well:

warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/sites/co.uk/public_html/sites/all/modules/contributions/autotag/autotag.module on line 36.
user warning: Duplicate entry 'angielski/real-english-conversations-don’t-step-dog-doo-4-4/fe' for key 2 query: INSERT INTO url_alias (src, dst, language) VALUES ('node/1244/uk', 'angielski/real-english-conversations-don’t-step-dog-doo-4-4/feed', '') in /home/sites/co.uk/public_html/modules/path/path.module on line 112.
warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/sites/co.uk/public_html/sites/all/modules/contributions/autotag/autotag.module on line 36.
          if(!isset($terms[$tid['vid']]) || !in_array($tid['tid'], $terms[$tid['vid']])){

Disabling module helps;)

sdrycroft’s picture

Can you add the following directly after line 30 in autotag.module, and report back what is printed when you try and create a node (which would use autotag).

print_r($all_tids);
exit;
kenorb’s picture

First try using:
drupal_set_message(print_r($all_tids,true));

PHP Fatal error:  Cannot use object of type stdClass as array in /home/sites/co.uk/public_html/sites/all/modules/contributions/autotag/autotag.module on line 38, referer: http://www.co.uk/feed/better-english-learn-english-efl-esl-podcast

=> white screen

Second try with
var_dump($all_tids);

array(28) {
  [0]=>
  array(2) {
    ["tid"]=>
    string(3) "203"
    ["vid"]=>
    string(1) "2"
  }
  [1]=>
  array(2) {
    ["tid"]=>
    string(3) "185"
    ["vid"]=>
    string(2) "11"
  }
  [2]=>
  array(2) {
    ["tid"]=>
    string(3) "193"
    ["vid"]=>
    string(1) "2"
  }
  [3]=>
  array(2) {
    ["tid"]=>
    string(3) "203"
    ["vid"]=>
    string(1) "2"
  }
  [4]=>
  array(2) {
    ["tid"]=>
    string(3) "205"
    ["vid"]=>
    string(1) "2"
  }
...

$terms:

array(6) {
  [0]=>
  object(stdClass)#109 (7) {
    ["tid"]=>
    string(3) "199"
    ["vid"]=>
    string(1) "2"
    ["name"]=>
    string(17) "General silliness"
    ["description"]=>
    string(0) ""
    ["weight"]=>
    string(1) "0"
    ["language"]=>
    string(0) ""
    ["trid"]=>
    string(1) "0"
  }
  [1]=>
  object(stdClass)#108 (7) {
    ["tid"]=>
    string(3) "200"
    ["vid"]=>
    string(1) "2"
    ["name"]=>
    string(16) "Idioms and slang"
    ["description"]=>
    string(0) ""
    ["weight"]=>
    string(1) "0"
    ["language"]=>
    string(0) ""
    ["trid"]=>
    string(1) "0"
  }
...
kenorb’s picture

And sometimes I've got something like:

warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/sites/co.uk/public_html/sites/all/modules/contributions/autotag/autotag.module on line 36.
sdrycroft’s picture

Can you please try 6.x-1.7 and let me know how you get on.

sdrycroft’s picture

Status: Active » Closed (fixed)
kenorb’s picture

Status: Closed (fixed) » Fixed

Thanks, I'll try.

Status: Fixed » Closed (fixed)

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