'add-item' unknown?
kbeen
Joined: 2003-04-23
Posts: 15 |
Posted: Wed, 2003-06-25 16:52 |
Hi. This is kind of a continuation of a post here: I have made a script that posts images to Gallery from mobile phone , and it works great with the latest Galleryu release, however, I have a user who is using an older version of Gallery (reluctant to upgrade because of all the work he put into customizing his) and it doesnt work with his gallery_remote2.php The request I send is [ "cmd" => 'add-item', "protocol_version" => '2.0', "set_albumName" => "kevin", "force_filename" => '1', "caption" => "", "userfile" => ["/tmp/octolefton.jpg", "octolefton.jpg"], The error I am getting is #__GR2PROTO__ status=301 status_text=Command 'add-item' unknown. However, he sent me his gallery_remote2.php file, and there is an add-item command in there of course. Any ideas? Is there still some way to do this using gallery remote without upgrading his gallery? |
|
Posts: 1479
What's his exact Gallery version number?
Posts: 260
1.3.3
Thanks so much if you can help us.
Posts: 1479
OK, add-item should definitely be available. Can you private-message me login information so I can test the gallery myself?
Posts: 1479
OK, I tested this Gallery install with the latest version of GR 1.1, and it works fine.
Would it be possible that the cookie info for username/pass would be sent wrong? Or that the wrong username/pass is sent wrong?
I'll try to see what could cause this behavior in older gallery_remote2.php versions. I remember the error handling was not the great a while ago.
In any case, the error message is misleading: add-item is there and it works.
Posts: 260
when you talk about cookies, could it be also linked to the way MY website on its own, handles cookies?
Posts: 1479
It might. But since this works with your other test Gallery, the cookie handling probably works.
Would it be possible to get a dump of the HTTP traffic between the Mfop server and the Gallery server?
Posts: 15
It's not http dump, but this is from my logs when I send
Hmm I just tried again to his Gallery, and got this result
Get cookie:
Returned
Sent next query to post the photo (with cookie):
Posts: 15
The exact same thing works on my own gallery
Posts: 15
The response from the posting of the message to the version that doesn't work is
Sending to my own gets
Don't know if that helped...
Posts: 260
could it be due to the fact that my gallery is embedded?
I think I just had an idea...
p
Posts: 1479
If the gallery is embedded, the user you're using to connect to it must be declared in Gallery itself (ie: not be one of the users of the embedding CMS, but a user that is available when Gallery is used in standalone mode).
I'm going on vacation today; I'll be back on the 16th and I'll work on this problem then. Sorry.