Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#13 2020-05-28 23:52:14

mistersugar
Member
From: North Carolina
Registered: 2004-04-13
Posts: 141
Website

Re: MarsEdit error: mt.getCategoryList

gaekwad wrote #323326:

Dumb question – I can reproduce this when XML-RPC is off (disabled) – is XML-RPC on (enabled) at your site?

Yes, XML-RPC is on.

Offline

#14 2020-05-28 23:56:41

mistersugar
Member
From: North Carolina
Registered: 2004-04-13
Posts: 141
Website

Re: MarsEdit error: mt.getCategoryList

mistersugar wrote #323382:

I did check for a log file and saw errors, need to look closer. Will dig it up and post later tonight.

Apache log gave same errors as Pete posted above.

Last edited by mistersugar (2020-05-28 23:58:03)

Offline

#15 2020-05-29 08:36:51

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 11,456
Website GitHub

Re: MarsEdit error: mt.getCategoryList

I’ve downloaded MarsEdit 4.3.7. Hopefully the trial will give me enough access to play a bit and I’ll try and track it down.

Since IXRClass is basically unsupported dead code (is it? www.incutio.com redirects to somewhere else now) then I suppose it’s no problem for us to patch it to work with newer PHP versions, since we’re no longer tied to updates from the parent source.

EDIT: erm… anyone got a simple 1-2-3 of setting up MarsEdit with Txp? Gonna take me forever to figure out the right parameters. Are we using MovableType API? And do we need to hack in mt-plugin/textile? I can’t find a copy of Brad’s plugin on the Wayback Machine: just a whole heap of 404.

Edit 2: I’ve downloaded Ecto as well and that’s equally baffling.

Last edited by Bloke (2020-05-29 09:23:02)


The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.

Txp Builders – finely-crafted code, design and Txp

Online

#16 2020-05-29 15:04:33

mistersugar
Member
From: North Carolina
Registered: 2004-04-13
Posts: 141
Website

Re: MarsEdit error: mt.getCategoryList

Bloke wrote #323398:

anyone got a simple 1-2-3 of setting up MarsEdit with Txp?

System: Other

System AI: Movable Type API

Endpoint: http://[URL]/rpc/

Blog ID: In my case, it’s ‘essays’ because that’s the section I’m using for my blog

To enter your Textpattern password, go to to menu bar at top of window, click Blog and hold down Option key, select Enter Password

Offline

#17 2020-05-29 15:45:41

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 11,456
Website GitHub

Re: MarsEdit error: mt.getCategoryList

mistersugar wrote #323406:

System: Other System AI: Movable Type API [snip]

Thank you, that worked a treat. And it worked perfectly with the patched version of Txp 4.8.1-dev. Steps to success:

  1. Update server to the latest bleeding edge code obtained from GitHub.
  2. Ensure /rpc directory is uploaded to the server (doofus Stef forgot this and wondered why it was throwing errors).
  3. Ensure Enable XML-RPC server is switched on in Preferences->Admin.
  4. Configure MarsEdit as mistersugar advises above.
  5. Hit Refresh to obtain a list of articles from the chosen section. Edit and push at will.

EDIT: I’m actually astounded/pleasantly surprised it still works – and works well – after all these years! I suspect it’ll be a different story when unlimited custom fields and unlimited cats/keywords hit core, though.

EDIT 2: Didn’t have any luck with Ecto. It kept reporting that the data returned form the server was in the incorrect/unexpected format regardless of which system I tried: MovableType, MovableType 4, WordPress, Blogger, Atom, MetaWeblog, …

Last edited by Bloke (2020-05-29 15:58:14)


The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.

Txp Builders – finely-crafted code, design and Txp

Online

#18 2020-05-29 15:53:24

etc
Developer
Registered: 2010-11-11
Posts: 5,212
Website GitHub

Re: MarsEdit error: mt.getCategoryList

Bloke wrote #323408:

it worked perfectly with the patched version of Txp 4.8.1-dev.

Good news! Why Pete’s version was complaining then, is your php <7.2?

Offline

#19 2020-05-29 15:59:21

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 11,456
Website GitHub

Re: MarsEdit error: mt.getCategoryList

etc wrote #323410:

Good news! Why Pete’s version was complaining then, is your php <7.2?

Yes. I’m running PHP 5.5.38. Next test is to up that to PHP 7 and fix the fallout.

Wait, no, I was running 7.2.28 all along. I was looking at my MAMP server not live server diagnostics, duh.

Last edited by Bloke (2020-05-29 16:05:43)


The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.

Txp Builders – finely-crafted code, design and Txp

Online

#20 2020-05-29 16:03:19

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 11,456
Website GitHub

Re: MarsEdit error: mt.getCategoryList

Seems to work fine under the following:

Textpattern version: 4.8.1-dev (7aef1314389fea239e1a77a57b29d78b)
Last update: 2020-05-29 09:36:05/2020-05-29 09:34:36
...
PHP version: 7.2.28-1+ubuntu16.04.1+deb.sury.org+1

Maybe it’s something in a higher version where they’ve changed what count() expects?

Last edited by Bloke (2020-05-29 16:07:55)


The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.

Txp Builders – finely-crafted code, design and Txp

Online

#21 2020-05-29 16:12:26

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 11,456
Website GitHub

Re: MarsEdit error: mt.getCategoryList

I’ve just run a test from MarsEdit to the dev-demo server. I published a new article just fine. PHP version: 7.4.6.

Why is it working for me and not others?

EDIT: Or maybe it doesn’t work for PHP <7.something? @mistersugar, what’s your Txp Diagnostics say, version-wise?

Last edited by Bloke (2020-05-29 16:14:48)


The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.

Txp Builders – finely-crafted code, design and Txp

Online

#22 2020-05-29 20:51:35

mistersugar
Member
From: North Carolina
Registered: 2004-04-13
Posts: 141
Website

Re: MarsEdit error: mt.getCategoryList

Bloke wrote #323414:

what’s your Txp Diagnostics say, version-wise?

PHP Version 7.3.16

Offline

#23 2020-05-29 21:34:28

kuopassa
Plugin Author
From: Porvoo, Finland
Registered: 2008-12-03
Posts: 238
Website

Re: MarsEdit error: mt.getCategoryList

Bloke, if the RPC system’s TXP_RPCServer.php uses $HTTP_RAW_POST_DATA, then: PHP.net says that is deprecated.

Offline

#24 2020-05-29 21:40:06

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 11,456
Website GitHub

Re: MarsEdit error: mt.getCategoryList

Can’t see anything obvious in the subsequent PHP changelogs to indicate a bug that might be causing this behaviour. If it works fine on 7.2.28 and fine on 7.4.6, why not on 7.3.16? Short of a PHP bug, that really only leaves some sort of server issue.

When you said in your OP “my host (OpalStack) switched me to a new server” I wonder if there’s something not compiled or missing? Or some configuration issue. I’m also slightly concerned by: “Txp Diagnostics showing no errors (except for all the update files as modified).”

Did you make those changes to the update files? If you upload the latest bleeding edge code form GitHub, do those messages go away?

Too many variables here right now, we need to narrow them down.


The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.

Txp Builders – finely-crafted code, design and Txp

Online

Board footer

Powered by FluxBB