Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hey guys! Thanks a lot for kudos, I am happy it helped!
    For the github of the fix, I see someone already proposed a pull-request up there:
    https://github.com/Medium/medium-wordpress-plugin/pulls

    Though doesn’t seem likely that it will be added to the plugin.

    So if anyone interested in us developing of brand new plugin – hit me with an email at [email protected]

    P.S. Also you can buy me a coffee https://buymeacoff.ee/pinedev ??
    (Or you can buy more coffees to back the idea of plugin development right away!)

    • This reply was modified 5 years, 11 months ago by pinedev.

    Hi all!

    I’ve managed to do a hot-fix for the issue.

    You have to open file medium/inc/medium-admin.php and find function
    function personal_options_update
    And find next line within it:

    $medium_user->publications = self::get_contributing_publications($token, $user->id);

    For me this was line #183.

    Comment it out!
    For those who are non-tech users here, this means adding “//” in front of the line. So it becomes:
    // $medium_user->publications = self::get_contributing_publications($token, $user->id);

    As this is a hot-fix, the plugin might break in certain scenarios (I’ve seen getting publication function is used at some other points too). I’ve only tested simple scenario: saving integration token > posting a post > it appears on Medium > PROFIT!
    So use this fix on your own risk!

    But I am also starting to use this plugin regularly, so some other fixes might come up. Or even a whole new plugin ??

    If anyone is interested in backing the development and support of the plugin OR paying a reasonable amount of money for similar plugin that works and is supported – you are welcome to drop me a message at [email protected] I will be really happy to know your thoughts!

    By the way, a bit of details: the reason for this current issue is that from recent time apps using integration tokens are limited in scopes. They can only make some general things with account and publish post. That’s all. They cannot list publications, for example. To have more rights in the world of Medium API, you have to create an app in settings and use OAuth tokens. But this requires much re-engineering of existing code. So for now I am happy with a hot fix that allows me to cross-post content to Medium ??

    Happy posting to everyone!

    Kind Regards,
    Sergii Savchenko

Viewing 2 replies - 1 through 2 (of 2 total)