|
|
 Rank: Addict
Joined: 7/19/2006 Posts: 820 Location: Benfleet, Essex, UK
|
Hello all, I am planning on using my new working progress Umbraco blog, to post photos from flickr onto my blog via the metablogAPI. I have tried to do this and Flickr fails to do this succesfully however it creates the test post as a draft node in umbraco. Does anyone know why it would be saved as a draft and not published? Thanks Warren Warren Buckley an Umbraco MVP 08-09 & level 1 certified developer
|
|
 Rank: Addict
Joined: 7/19/2006 Posts: 815 Location: Århus, Denmark
|
Is the flickr user the right type of user? If i recall correctly, a user in the role "Writer" cannot publish, but only "Send to publish".
|
|
 Rank: Addict
Joined: 7/19/2006 Posts: 820 Location: Benfleet, Essex, UK
|
Morten I am using my main admin user for the MetablogAPI channel, which works fine with Windows Live Writer. Any suggestions? Warren Warren Buckley an Umbraco MVP 08-09 & level 1 certified developer
|
|
 Rank: Addict
Joined: 7/19/2006 Posts: 820 Location: Benfleet, Essex, UK
|
I want to reopen this thread in the hope I can get some help with getting this problem solved. My problem is that I am trying to use Flickr to post photos to my blog. When setting up the details in Flickr it asks for the MetaWeblog API endpoint URL which is http://www.creativewebspecialist.co.uk/umbraco/channels.aspx and your username and password and the last step is send a test post which according to Flickr fails. But when I log into umbraco the post is created as a new node however it is not published. The strange thing is that I am able to use Windows LiveWriter with the same credentials without a problem?! I emailed Flickr and this is the response I got. "Flickr Support" wrote:We received this message from your server twice in our error logs: [19/Aug/2008:09:44:11 +0000] [error] [client 80.42.210.79] [http://www.creativewebspecialist.co.uk/umbraco/channels.aspx (MetaWeblogAPI)] flickr (blog id:72157606414067232/user id:23497632) <?xml version="1.0"?>\r<methodResponse>\r <fault>\r <value>\r <struct>\r <member>\r <name>faultCode</name>\r <value>\r <i4>0</i4>\r </value>\r </member>\r <member>\r <name>faultString</name>\r <value>\r <string>Object reference not set to an instance of an object.</string>\r </value>\r </member>\r </struct>\r </value>\r </fault>\r</methodResponse>\n, referer: http://www.flickr.com/blogs.gneYou might check your own server error logs to see an analogous entry for the post. I hope that helps! The only thing I can understand from that response error was that there was a .NET error but its very unspecific. <string>Object reference not set to an instance of an object.</string>I am trying to look through the codebehind for this but I don't fully understand it. http://www.codeplex.com/umbraco/SourceControl/DirectoryView.aspx?SourcePath=%24%2fumbraco%2fumbraco%204.0%2fumbraco%2fpresentation%2fumbraco%2fchannels&changeSetId=35489I would appreciate if anyone could help me out with this please. Thanks, Warren Warren Buckley an Umbraco MVP 08-09 & level 1 certified developer
|
|
 Rank: Fanatic
Joined: 7/19/2006 Posts: 496 Location: Göteborg, Sweden
|
Warren, I just a blog post this way in tribute to you... ; ) http://www.wibeck.com/articles/image-upload-from-flickr-to-umbraco.aspxI didn't do anything special and used exactly the same path you did (besides the domain). Is it possible that you have missed to specify a doctype and property in that channel of your's? I once renamed a docType, that caused some issues since the MetaBlog config file stores the doctype and property aliases, not the IDs... // ; ) Kalle
" - Yeah I'd like to share your point of view, as long as it's my view too... ( http://www.d-a-d.dk/lyrics/pointofview)
|
|
 Rank: Addict
Joined: 7/19/2006 Posts: 820 Location: Benfleet, Essex, UK
|
ok this is good news, as it's a problem with my install. What version of umbraco are you using? Warren Warren Buckley an Umbraco MVP 08-09 & level 1 certified developer
|
|
 Rank: Fanatic
Joined: 7/19/2006 Posts: 496 Location: Göteborg, Sweden
|
warren wrote:What version of umbraco are you using?
I'm using 3.0.5.. // ; ) Kalle
" - Yeah I'd like to share your point of view, as long as it's my view too... ( http://www.d-a-d.dk/lyrics/pointofview)
|
|
 Rank: Fanatic
Joined: 7/19/2006 Posts: 496 Location: Göteborg, Sweden
|
And this is the content of my /config/metaBlogConfig.config: Code:<?xml version="1.0" encoding="utf-8"?> <metablogapi> <channel> <name>Wibeck.com - Articles</name> <user>1</user> <startNode>1153</startNode> <fullTree>True</fullTree> <documentTypeAlias>Text Page</documentTypeAlias> <fields> <categories> </categories> <description>bodyText</description> <excerpt> </excerpt> </fields> <mediaObjectSupport enabled="True" folderId="1121" mediaTypeAlias="image" mediaTypeFileProperty="umbracoFile" /> </channel> </metablogapi> I think you should verify that you have a 100% match between the values in your config file and your actual alias values for your doctype and properties, and make sure that this docType is allowed under the node you have set as your "startnode"... // ; ) Kalle
" - Yeah I'd like to share your point of view, as long as it's my view too... ( http://www.d-a-d.dk/lyrics/pointofview)
|
|
 Rank: Addict
Joined: 7/19/2006 Posts: 820 Location: Benfleet, Essex, UK
|
Hi Kalle, thanks for helping me out on this. OK I have checked what version I am running and it is umbraco v 3.0.5 (Assembly version: 1.0.3013.35022)Code: <?xml version="1.0" encoding="utf-8"?> <metablogapi> <channel> <name>Blog</name> <user>0</user> <startNode>1045</startNode> <fullTree>True</fullTree> <documentTypeAlias>BlogPost</documentTypeAlias> <fields> <categories>BlogCategories</categories> <description>BlogPostText</description> <excerpt>BlogPostSummary</excerpt> </fields> <mediaObjectSupport enabled="True" folderId="1061" mediaTypeAlias="image" mediaTypeFileProperty="umbracoFile" /> </channel> <channel> <name>flickr</name> <user>1</user> <startNode>1045</startNode> <fullTree>True</fullTree> <documentTypeAlias>BlogPost</documentTypeAlias> <fields> <categories>BlogCategories</categories> <description>BlogPostText</description> <excerpt>BlogPostSummary</excerpt> </fields> <mediaObjectSupport enabled="True" folderId="1061" mediaTypeAlias="image" mediaTypeFileProperty="umbracoFile" /> </channel> </metablogapi>
I dont think nothing is wrong with the config file as I able to post using Windows Live Writer. I think I will backup up my Bin and umbraco/channels folder and deploy new copies from latest stable build. Warren Warren Buckley an Umbraco MVP 08-09 & level 1 certified developer
|
|
 Rank: Fanatic
Joined: 7/19/2006 Posts: 496 Location: Göteborg, Sweden
|
No problem, a question: Have you tried the "blog" account / channel with flickr or only the "flickr" channel? It looks like you use different user accounts for the different channels...
" - Yeah I'd like to share your point of view, as long as it's my view too... ( http://www.d-a-d.dk/lyrics/pointofview)
|
|
 Rank: Addict
Joined: 7/19/2006 Posts: 820 Location: Benfleet, Essex, UK
|
Kalle, I added the flickr channel/account to see if I had any problem with the blog channel/account Warren Warren Buckley an Umbraco MVP 08-09 & level 1 certified developer
|
|
 Rank: Fanatic
Joined: 7/19/2006 Posts: 496 Location: Göteborg, Sweden
|
OK, what if you set categories and excerpt to none? // ; ) Kalle
" - Yeah I'd like to share your point of view, as long as it's my view too... ( http://www.d-a-d.dk/lyrics/pointofview)
|
|
 Rank: Addict
Joined: 7/19/2006 Posts: 820 Location: Benfleet, Essex, UK
|
Yeh I just done that test and it works. It only fails when you have categories set to something apart from none. I just need to ammend my blog post handler to add some category tags or something. Thanks for helping me sort this out Kalle. Warren Warren Buckley an Umbraco MVP 08-09 & level 1 certified developer
|
|
 Rank: Addict
Joined: 7/19/2006 Posts: 820 Location: Benfleet, Essex, UK
|
For anyone interested here is my first post to my blog from my iPhone uploaded to Flickr as well. http://www.creativewebspecialist.co.uk/2008/08/20/my-typical-messy-desk-at-work.aspxSo expect some photos appearing on my blog in the future. Warren Warren Buckley an Umbraco MVP 08-09 & level 1 certified developer
|
|
 Rank: Fanatic
Joined: 7/19/2006 Posts: 496 Location: Göteborg, Sweden
|
Weird thing that it fails with categories... Nice you got it up and running anyway! // ; ) Kalle
" - Yeah I'd like to share your point of view, as long as it's my view too... ( http://www.d-a-d.dk/lyrics/pointofview)
|
|
|
Guest |