Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#16 2006-06-24 21:00:13

misterk
Member
From: Morris, MN
Registered: 2004-02-24
Posts: 77
Website

Re: Using TextMate Blogging Bundle with Textpattern

I’m explicitly setting blog_id = ‘log’@, a section that I wouldn’t mind accessing.

<pre><code> #if endpoint =~ /#(\d+)/ # blog_id = $1.to_i #else # blog_id = 0 #end blog_id = ‘log’
</code></pre>

I should mention that the xmlrpc works fine from MarsEdit (with metaweblog and the same settings), so either I’m doing something weird something up or ruby is. It’s even using blog_id = 1 and pulling down the articles.

Last edited by misterk (2006-06-24 21:02:51)

Offline

#17 2006-06-24 21:38:27

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: Using TextMate Blogging Bundle with Textpattern

Ah, sorry, missed that. I’m in real top form, as usual…

Ugh, I don’t like these two languages trying to talk to each other craziness.

Okay, so IRB is tell you that according to Ruby,

c.call2('metaWeblog.getRecentPosts', 'log', 'user', 'password', '20')

are invalid method parameters, or at least, one of them is.

There must be another check somewhere that’s not right.

Offline

#18 2006-06-24 22:00:33

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: Using TextMate Blogging Bundle with Textpattern

Despite what this says, Textpattern’s metaWeblog.getRecentPosts effectively ignores whatever blog_id is and just fetches all recent articles. If it couldn’t fetch them, for whatever reason, then you’d get back “problem_getting_articles” (it hasn’t been translated yet).

So we’re back to where we started…

Offline

#19 2006-06-24 22:07:47

misterk
Member
From: Morris, MN
Registered: 2004-02-24
Posts: 77
Website

Re: Using TextMate Blogging Bundle with Textpattern

Huh. if it weren’t raining, I’d go mow the lawn.

Offline

#20 2006-06-25 00:55:10

dylansm
New Member
Registered: 2005-09-26
Posts: 3

Re: Using TextMate Blogging Bundle with Textpattern

For what it’s worth, I have it working fine by just including the header “Format: 1” — the only problem I’m desparate to fix now is the problem uploading images. I get the following error:

/usr/lib/ruby/1.8/xmlrpc/client.rb:535:in /bin/bash: -c: line 1: unexpected EOF while looking for matching‘’
/bin/bash: -c: line 3: syntax error: unexpected end of filecall2′
from /usr/lib/ruby/1.8/xmlrpc/client.rb:399:in /bin/bash: -c: line 1: unexpected EOF while looking for matching ‘’
/bin/bash: -c: line 3: syntax error: unexpected end of filenewMediaObject’
from /Users/dylan/Library/Application Support/TextMate/Pristine Copy/Bundles/Blogging.tmbundle/Support/lib/blogging.rb:708:in /bin/bash: -c: line 1: unexpected EOF while looking for matching‘’
/bin/bash: -c: line 3: syntax error: unexpected end of filepopen’
from /Applications/TextMate.app/Contents/SharedSupport/Support/lib/progress.rb:11:in /bin/bash: -c: line 1: unexpected EOF while looking for matching ‘’
/bin/bash: -c: line 3: syntax error: unexpected end of fileupload_image’
from /tmp/temp_textmate.1E2RQ0:3

Otherwise things seem to be fine. Make sure that you fix the Content-Type header as mentioned here:
http://textpattern.com/weblog/201/xml-rpc-support-for-textpattern-403-is-here#c000287

Has anyone been able to successfully upload images using TextMate?

Offline

#21 2006-06-25 05:34:22

ramanan
Plugin Author
From: Toronto
Registered: 2004-03-12
Posts: 323
Website

Re: Using TextMate Blogging Bundle with Textpattern

That doesn’t seem to work. It gets rid of the error (sometimes), but doesn’t save anything.

If you read the docs, I think it mentions that uploading isn’t implemented yet. (I think.)

Last edited by ramanan (2006-06-25 16:01:13)

Offline

#22 2006-06-26 04:09:50

dylansm
New Member
Registered: 2005-09-26
Posts: 3

Re: Using TextMate Blogging Bundle with Textpattern

Sorry. I get it now, and I’m having the same problem with identifying Textpattern sections. No luck. I’m hoping someone gets somewhere with this soon as I’m really excited about using this.

Offline

#23 2006-06-26 06:14:30

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: Using TextMate Blogging Bundle with Textpattern

It’s Pedro’s baby so he’s more able to find and fix the problem than I can. I was hoping he’d step in here, but I think he hasn’t seen this thread. I’m just about to send him an email and make sure he knows.

Offline

#24 2006-06-26 22:23:47

dylansm
New Member
Registered: 2005-09-26
Posts: 3

Re: Using TextMate Blogging Bundle with Textpattern

One more thing: I can’t get the excerpt/cut feature to work. This would be really, really great, too.

Offline

#25 2006-07-18 10:25:41

dubh
Member
From: Wellington, New Zealand
Registered: 2004-02-27
Posts: 20
Website

Re: Using TextMate Blogging Bundle with Textpattern

Just as a note to any followers on this path: after doing the fix in the other thread referenced a couple times above, make sure that you not only have the latest version of the blogging bundle (via svn) and also the latest “cutting edge” version of TextMate.

If only I’d looked at the screencast earlier…! :-)

And don’t forget the TextMate Wiki for more support…

Last edited by dubh (2006-07-18 10:28:05)


Alan Macdougall — http://halfpie.net/

Offline

#26 2006-08-17 17:52:35

schussat
Plugin Author
Registered: 2004-02-24
Posts: 101
Website

Re: Using TextMate Blogging Bundle with Textpattern

Did anyone ever get any further with this? I see that a couple of folks (dubh and dylanism) seem to have this working, but I just can’t make it work, myself.

I’m using the latext blogging bundle, cutting edge TextMate, and the xmlrpc with the content-type fix applied. I can fetch posts successfully from my Txp blog, but can’t save any changes to existing posts — no errors when I do that, but changes aren’t saved, either. And when I try to create a new post, I get “Error: problem_creating_article (201)”. This all happens with various ways of specifying the blog endpoint — I understand the blog bundle now supports the #blogid suffix, but I get no joy from anything I’ve tried there.


-Alan

Offline

#27 2006-08-21 00:13:43

schussat
Plugin Author
Registered: 2004-02-24
Posts: 101
Website

Re: Using TextMate Blogging Bundle with Textpattern

I thought I’d reply with a few of the things I’ve done/tried to get this up and running.

The first thing I did is set up a fresh Txp blog, install the rpc files, and set up a new blog in the bundle with the endpoint of http://name@mydomain/blog/rpc/index.php#article. Lo and behold, it works perfectly! I can fetch-update and write new posts to that new blog without any problems whatsoever.

I proceeded to spend what my wife thinks is an inappropriate amount of time trying to track down whatever difference existed between my old Txp blog and the new installation.

  • I selectively deactivated plugins — nothing. I get the same behavior as in my prior post.
  • I installed all the plugins from my old install to the new one — no change, the new one still functions fine.
  • I stepped through all the preferences and plugin settings that I could find, making sure they matched and changing any that I thought might make a difference in the ability for the blog bundle to update/make a new post. I was neither able to break the functionality with the new blog or make it work with the old blog.
  • I moved .htaccess out of the way on the old blog — no change
  • I’ve only made a couple of tiny changes to the txp code, to include tags in my feeds. I copied the two changed files (atom.php and rss.php) into the new blog’s publish/ directory. No change; they don’t break it, either.
  • There’s got to be something about the old install that is munging the blog bundle’s ability to post/update. I backed up the root of the new blog, copied my entire old root directory to the location of the new blog, and copied the backed up config.php back into place. Nothing. I can’t break the new blog, no matter what I do. What is as far as I can tell, basically a mirror of my old blog, operating on a different database and in a different location, works with the bundle.

So, with all things being made equal as far as I can determine, I get nothing. I’ve run out of ideas, except for the possibility that there’s something at the server level that is shutting me out: The primary blog (that doesn’t work) is at the root of my main hosting account on textdrive, so ~/public_html/textpattern; the second blog that works perfectly no matter how I try to confound it, is in ~/domains/domain/public_html/blog/textpattern. If whatever makes that difference was affected by something I could control, however, I think I would have stumbled on it by moving .htaccess. Regardless, I lack the juju to diagnose/fix at that level.

As far as I can tell, the only thing that I haven’t tried is over-writing my old install with a completely fresh one, and I suppose I should give that a try. But if there were something about my current installation that were breaking the bundle, I’d expect that the last step above (copying the old install over the new) would have broken the bundle’s functioning with the new txp install.

I’m told that I have to eat dinner now or never again. Perhaps this will inspire some of the thread’s prior participants to poke around again and see what they can see.


-Alan

Offline

#28 2006-08-21 17:58:58

ramanan
Plugin Author
From: Toronto
Registered: 2004-03-12
Posts: 323
Website

Re: Using TextMate Blogging Bundle with Textpattern

I still haven’t got it working. I’m not sure where the problem lies. I haven’t tried using the blogging bundle with a clean TxP site. I’ll try that tonight.

Offline

#29 2006-08-25 14:32:39

schussat
Plugin Author
Registered: 2004-02-24
Posts: 101
Website

Re: Using TextMate Blogging Bundle with Textpattern

Any luck, Ramanan? fingers crossed


-Alan

Offline

#30 2006-09-03 10:39:52

dubh
Member
From: Wellington, New Zealand
Registered: 2004-02-27
Posts: 20
Website

Re: Using TextMate Blogging Bundle with Textpattern

I’ve got it working, but am still having no luck with the section ID issue – even though I set the end point to the usual rpc URL plus #article to indicate the section, the posting still ends up with a section ID of “0”.

If I get some time I should try testing the thing out on my localhost test blog.


Alan Macdougall — http://halfpie.net/

Offline

Board footer

Powered by FluxBB