When I install favorite node with drupal 5, there are multiple messages like :
message error is dis: Object of class stdClass could not be converted to string in D:\Serveur\www\mysite\sites\all\modules\favorite_nodes\favorite_nodes.module on line 147.
also, the same messages in block admin.
Nota: I user modules like biblio, CCK
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | favorite_nodes_ksort.patch | 996 bytes | Christefano-oldaccount |
Comments
Comment #1
mtolmacs commentedThe solution is simple. Run through the favorite_nodes.module and replate all natcasesort($node_types) with ksort($node_types) and you're good to go.
Reason: $node_types is an assoc array of node type objects with a string key. Simply sorting by the string key is what the autor of this module probably wanted to do, but in Drupal 5 node_get_types() has been alteret to return this kind of array. Procedure above brings back the desired functionality.
Comment #2
Zoologico commentedWorked for me, thanks.
Will someone be committing this to the source?
Comment #3
Leeteq commentedfyi - this has still not been put into even the dev. version, so manual replacement is still needed. The current dev. version of this module seems to work well on 5.1. (after the above mentioned replacement)
Comment #4
Christefano-oldaccount commentedHere's a patch.
Comment #5
moshe weitzman commentedi believe this was recently fixed
Comment #6
(not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.