Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment | File | Size | Author |
---|---|---|---|
#13 | similarByTerms.patch | 1.28 KB | migmedia |
#6 | settings.txt | 18.29 KB | drupallogic |
Comments
Comment #1
rmiddle CreditAttribution: rmiddle commentedI 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
Comment #2
drupallogic CreditAttribution: drupallogic commentedseems 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 ???
Comment #3
rmiddle CreditAttribution: rmiddle commentedI 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
Comment #4
drupallogic CreditAttribution: drupallogic commentedI'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.
Comment #5
rmiddle CreditAttribution: rmiddle commented1) 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
Comment #6
drupallogic CreditAttribution: drupallogic commentedno cache at all.
I'm attaching my settings file.
Comment #7
rmiddle CreditAttribution: rmiddle commentedAfter 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
Comment #8
MGParisi CreditAttribution: MGParisi commentedsubscribe
Comment #9
Refineo CreditAttribution: Refineo commentedsubscribe
Comment #10
Refineo CreditAttribution: Refineo commentedThis 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.
Comment #11
MGParisi CreditAttribution: MGParisi commentedThe August 31st Dev (The only one available) still gives the error on my site.
Comment #12
efarseer CreditAttribution: efarseer commentedStill got the error on the August 31st Dev version...
Comment #13
migmedia CreditAttribution: migmedia commentedI've created a patch with a simple workaround for this error-message.
Comment #14
funkeyrandy CreditAttribution: funkeyrandy commentedpatch fails, applied manually and still doesnt seem to fix the two errors
Comment #15
nICEsCREAM CreditAttribution: nICEsCREAM commentedsubscribing
Comment #16
Xen CreditAttribution: Xen commentedFix in #1277256: Invalid argument supplied for foreach() in similarterms_taxonomy_node_get_terms()
Comment #17
takim CreditAttribution: takim commented