Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

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

mistersugar
Member
From: North Carolina
Registered: 2004-04-13
Posts: 171
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


—-

Anton aka mistersugar – ‘yumi stap storian’ – antonzuiker.com

Offline

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

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 12,453
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.

Hire Txp Builders – finely-crafted code, design and Txp

Offline

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

etc
Developer
Registered: 2010-11-11
Posts: 5,677
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: 12,453
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.

Hire Txp Builders – finely-crafted code, design and Txp

Offline

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

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 12,453
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.

Hire Txp Builders – finely-crafted code, design and Txp

Offline

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

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 12,453
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.

Hire Txp Builders – finely-crafted code, design and Txp

Offline

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

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

Re: MarsEdit error: mt.getCategoryList

Bloke wrote #323414:

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

PHP Version 7.3.16


—-

Anton aka mistersugar – ‘yumi stap storian’ – antonzuiker.com

Offline

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

kuopassa
Plugin Author
From: Porvoo, Finland
Registered: 2008-12-03
Posts: 243
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: 12,453
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.

Hire Txp Builders – finely-crafted code, design and Txp

Offline

#25 2020-05-29 21:43:20

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 12,453
Website GitHub

Re: MarsEdit error: mt.getCategoryList

kuopassa wrote #323420:

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

True. We seem to be covered in the constructor (I hope):

function __construct()
    {
        global $enable_xmlrpc_server, $HTTP_RAW_POST_DATA;

        if (!$HTTP_RAW_POST_DATA) {
            $HTTP_RAW_POST_DATA = file_get_contents('php://input');
        }
...

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

Hire Txp Builders – finely-crafted code, design and Txp

Offline

#26 2020-05-29 23:54:05

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

Re: MarsEdit error: mt.getCategoryList

Success! MarsEdit works again with Txp v4.8.1-dev. Thanks a million for resolving this.

My Diagnostics pre-flight check only warns that I am using a dev version. Is it safe for me to continue with v4.8.1-dev on my live site, or should I roll back?

Last edited by mistersugar (2020-05-29 23:56:02)


—-

Anton aka mistersugar – ‘yumi stap storian’ – antonzuiker.com

Offline

#27 2020-05-30 00:28:13

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 12,453
Website GitHub

Re: MarsEdit error: mt.getCategoryList

Yay! This RPC issue, now resolved, is the green light for 4.8.1 so you’re effectively using the stable version, albeit not tagged as such.

Unless we find anything deal breaking, I’d expect a final release over the weekend.


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

Hire Txp Builders – finely-crafted code, design and Txp

Offline

#28 2021-02-15 09:19:59

cschack
New Member
From: Oslo, Norway
Registered: 2018-03-05
Posts: 7
Website

Re: MarsEdit error: mt.getCategoryList

Hello! Sorry to resurrect this thread, but I wondered if anyone had figured out how to add custom fields to MarsEdit? I’v tried adding using both my own name (“external-url”) as well as custom_1_set, which is what I managed to glean from the database. (I’m not exactly an expert on this). Has anyone had any luck with this? Thanks for any input. (From what I understand, xml-prc is on its way out, but I still like using MarsEdit, but until that point…)

Offline

Board footer

Powered by FluxBB