Warning: array_keys() [function.array-keys]: The first argument should be an array in similarterms_list() (line 193 of /home/topnet/public_html/x.net/sites/all/modules/similarterms/similarterms.module

CommentFileSizeAuthor
#13 similarByTerms.patch1.28 KBmigmedia
#6 settings.txt18.29 KBdrupallogic
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

rmiddle’s picture

I can't duplicate the error. I tweaked things a little. Upgrade to the devel version 27th or later and see if the error is still there.

Thanks
Robert

drupallogic’s picture

seems I have new error now.

Warning: Invalid argument supplied for foreach() in similarterms_taxonomy_node_get_terms() (line 518 of /home/topnet/public_html/kitaplar.net/sites/all/modules/similarterms/similarterms.module).

here is the example:
http://kitaplar.net/kitap/karanligin-aynasinda-murat-gulsoy

EDIT: interesting. when a node is read 2.time, error goes ???

rmiddle’s picture

I was able to duplicate the error and fixed it on my site.

Try the latest dev version dated 2011-Aug-28 or later and let me know if this fixes your issue. Once you confirm this fixes your issue I will release beta 4.

Thanks
Robert

drupallogic’s picture

I'm really confused.

on some nodes, I see similarterms_taxonomy_node_get_terms() error; on some nodes, first argument should be an array; on some nodes I see nothing.

sorry, it's still there. and actually 2 different errors.

rmiddle’s picture

1) Clear your cache and make sure you are actually generating a new request.
2) Can I get a copy of your settings so I can try and duplicate your environment?

Thanks
Robert

drupallogic’s picture

FileSize
18.29 KB

no cache at all.

I'm attaching my settings file.

rmiddle’s picture

After checking out his site I think I see something that might be causing the error. It only shows up when there are less then 5 items in the list. I will look at the loop and make sure it is ok when there are less then max items.

Thanks
Robert

MGParisi’s picture

subscribe

Refineo’s picture

subscribe

Refineo’s picture

This error occurs in 7.x-1.0-beta3 when there are less then 5 items in the list.
It doesn't appear in 7.x-1.x-dev now. The latest dev version works fine at least for me. Thank you.

MGParisi’s picture

The August 31st Dev (The only one available) still gives the error on my site.

efarseer’s picture

Still got the error on the August 31st Dev version...

migmedia’s picture

FileSize
1.28 KB

I've created a patch with a simple workaround for this error-message.

funkeyrandy’s picture

patch fails, applied manually and still doesnt seem to fix the two errors

nICEsCREAM’s picture

subscribing

Xen’s picture

takim’s picture

Issue summary: View changes
Status: Active » Closed (outdated)