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

CommentFileSizeAuthor
#4 favorite_nodes_ksort.patch996 bytesChristefano-oldaccount

Comments

mtolmacs’s picture

The 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.

Zoologico’s picture

Worked for me, thanks.
Will someone be committing this to the source?

Leeteq’s picture

fyi - 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)

Christefano-oldaccount’s picture

StatusFileSize
new996 bytes

Here's a patch.

moshe weitzman’s picture

Status: Active » Fixed

i believe this was recently fixed

Anonymous’s picture

Status: Fixed » Closed (fixed)

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