Does anyone has ever tried to insert more than one node dir_listing with the module http://drupal.org/project/InsertNode in a Page ? because strangely, it displays the same dir_listing node:

[node:123] <-- a node type dir_listing
[node:456] <-- another node type dir_listing

In this case, this two codes display the first node [node:123] twice. And of course it works well with any another node type.

Comments

Yoran’s picture

Status: Active » Postponed (maintainer needs more info)

The only reason I see is that you have the same path for each dir_listing (there is a cache based on path). Is it the case ?

Nicolas Georget’s picture

No. The two nodes dir_listing have two different path. You can see the result on this page: http://layout.sophiemartin.com/node/261
I inserted 2 nodes into:

By the way, maybe it would be useful: Drupal 6.19, InsertNode 6.x-1.3, and of course the latest version of filebrowser

Nicolas Georget’s picture

I have just tried a test with a clean install of Drupal, insertNode and filebrowser only. And i got the same upshot.

Yoran’s picture

Can you give a try to the last dev version ? I installed InsertNode (strange naming btw), made a page with two dir_listing, and it works...

Nicolas Georget’s picture

Last dev version of filebrowser ? if yes, i have the same issue (with the usort() PHP warnings: #841372: usort() Invalid comparison function also).
Here's the URL if you want to see: http://layout.sophiemartin.com/drupal-6.19-test/

Would it help you to have a temporary account on this test ? Because you are french (and me too) i can trust you ;-)

Yoran’s picture

Hum.. What version of PHP are you running exactly ?

ps: pour le compte de test, ça ne me sera pas utile :) On dirait plutôt que j'utilise une fonction qui ne passe pas dans une version antérieur de PHP. Si c'est le cas, va falloir que je change de stratégie :)

Yoran’s picture

I just commited a new version that should solve the "double inserted node" original issue (it'll take to build dev which should be 6.x-2.0-rc13"

Yoran’s picture

Status: Postponed (maintainer needs more info) » Fixed
Nicolas Georget’s picture

That's what i was afraid: The PHP version. On the server, it is a 5.3.3 compiled with MacPorts. And had many issues due to >= 5.3 PHP version.
Anyway fyi, I tried with a 5.2.13 and same behavior. Let's see in your next dev version.
I don't know how you fixed it, but i noticed yesterday that your function file_listing() return wrong values in the array.

Nicolas Georget’s picture

I confirm: Your build 6.x-2.x-dev @ September 8, 2010 - 07:08 fixed this issue.

Merci !!

Yoran’s picture

content :) merci à toi pour les tests

Status: Fixed » Closed (fixed)

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