您在這裡

favorite_nodes,爲什麽會出現這種錯誤?

少东家's 的頭像
少东家 在 2007-04-23 (週一) 19:57 發表

我已經卸載並且重新安裝了,可是還是這種錯誤.
: Object of class stdClass could not be converted to string in C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\SinoUU\sites\default\modules\favorite_nodes\favorite_nodes.module on line 147.

找到答案了:
Updates
#1 submitted by tolmi on February 3, 2007 - 20:41
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.

Run through the favorite_nodes.module and replate all natcasesort($node_types) with ksort($node_types)
懇求翻譯>"<

philsu阿寬 Design & Create & Crazy life
Blog: http://blog.yam.com/user/philsu.html
Website: http://www.cdml.ic.tku.edu.tw/index.htm
Hemidemi: http://www.hemidemi.com/user/philsu/home