WordPress.org

Forums

Twitter posts to Blog
[resolved] Auto post fix (6 posts)

  1. gdg161987
    Member
    Posted 1 year ago #

    Can you please fix the auto post function? Now it only works manualy..

    https://wordpress.org/plugins/twitter-posts-to-blog/

  2. SudoCat
    Member
    Plugin Author

    Posted 1 year ago #

    Hi, I've spent the past 2 and a half hours fighting with this myself, and I found that the issue was that the cron job did not have access to some of the wordpress admin functions it needed. To fix this, I added the following to the start of my twitter-posts-to-blog/functions.php

    require_once(dirname(__FILE__).'/../../../wp-load.php');
    require_once(dirname(__FILE__).'/../../../wp-admin/includes/admin.php');

    This enables the plugin to use the functions it needs, seems to be working fine for me.

  3. gdg161987
    Member
    Posted 1 year ago #

    Could you please post your functions.php ? The plugin won't start when i put the code at the start.

  4. greg06570
    Member
    Posted 1 year ago #

    Hi, I have the same issue here. Could you please share your twitter-posts-to-blog/functions.php
    THanks!

  5. nathansmonk
    Member
    Posted 1 year ago #

    Hi Everyone,

    The fix from @sudocat works, so I've submitted a pull request to the git repo. In the meantime, you can use my fork to get autopost working again (you can see the full functions file there if you just wanna update it yourself) - https://github.com/nathansmonk/twitter-posts-to-blog

    Nath

  6. badbreze
    Member
    Plugin Author

    Posted 1 year ago #

    Merget fix, thanks to @sudocat

    @nathansmonk wp-plugins repository on git is a read only mirror, thanks anyway.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Twitter posts to Blog
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.