• Resolved topscorer

    (@topscorer)


    Hi, I’m hosting a website on Dreamhost and using Postie and Subscribe2 plugins. I have very few website visitors since it’s a private password protected members only site.

    If I set subscribe2 to run for each new post it works but if I set it to run once daily it does not.

    If I click ‘run postie’ button in the plugin it successfully collects waiting emails and makes new posts but it does not run automatically.

    I’ve been told that the way wp-cron.php works you need visitors to your website to execute it. I’ve read this article about setting up a manual cron job to execute wordpress cron jobs – https://tommcfarlin.com/wordpress-cron-jobs/.

    I’ve also read this post with specific instructions to make a cron job to run Postie – http://postieplugin.com/forcing-an-email-check/.

    I haven’t been able to get either to work yet.

    With Tom McFarlin insgructions I’ve done 1, I don’t understand 2 and I don’t understand 3 but within Dreamhost (which does not have cpanel but it’s own custom built interface) I have opened the cron job creator they have, set a frequency of 15 minutes and entered the command line http://members.lakesideinvestmentclub.com/wp-cron.php?doing_wp_cron.

    Can anyone either explain what I’m doing wrong and how to do it right or offer a simpler solution in plain English for someone not familiar with coding?

    I understand the problem described regarding wp-cron.php file, although it seems a bit weird to me that WordPress executes cron jobs this way.

    It seems to me that I simply want to force execute the wp-cron.php file every 15 minute or every hour regardless of whether anyone visits my site and then everything should be fine because wp-cron.php should execute all the plugins cron jobs. It seems like a simple thing to want but the way to do it so far eludes me!

    Thanks in advance for any help anyone can offer.

Viewing 6 replies - 1 through 6 (of 6 total)
  • You are almost there.

    #1 is optional
    #2 is handled by Postie and Subscribe2, you don’t have to do anything
    #3 is almost right, your command line should be:

    wget -q -O – http://members.lakesideinvestmentclub.com/wp-cron.php?doing_wp_cron

    Thread Starter topscorer

    (@topscorer)

    OK great, quite please that I almost got it right :-).

    I’ll try that change and let you know how I get on.

    Thank you Wayne.

    Thread Starter topscorer

    (@topscorer)

    OK, so I made that change and have it set for 10 minute intervals.

    With the way I originally had it I had enabled email notification for a short time to check it was actually running and got an email saying:

    sh: http://members.lakesideinvestmentclub.com/wp-cron.php?doing_wp_cron: No such file or directory

    Since changing the command to

    wget -q -O – http://members.lakesideinvestmentclub.com/wp-cron.php?doing_wp_cron

    I have not received any email, implying that the command has not been executed?

    Do you have any idea what the problem might be? Thanks

    Thread Starter topscorer

    (@topscorer)

    More information, Dreamhost checked the logs for me and say that the cron job is executing with no errors. However Postie and Subscriber2 still are not working.

    I decided to focus on Postie since Subscriber2 cannot work if their are no new post to digest.

    I created a second cron job using instructions from here – http://postieplugin.com/forcing-an-email-check/ and entered the command wget http://members.lakesideinvestmentclub.com/?postie=get-mail set to run every 10 minutes.

    I get the following error:

    –2015-02-25 11:00:05– http://members.lakesideinvestmentclub.com/?postie=get-mail
    Resolving members.lakesideinvestmentclub.com (members.lakesideinvestmentclub.com)… 173.236.190.75 Connecting to members.lakesideinvestmentclub.com (members.lakesideinvestmentclub.com)|173.236.190.75|:80… connected.
    HTTP request sent, awaiting response… 401 Authorization Required Authorization failed.

    Any ideas what I need to do?

    Thread Starter topscorer

    (@topscorer)

    Done it!

    Because my wordpress is installed inside a .htaccess password protected folder I needed to enter the username and password into the command like this:-

    wget –user=”user” –password=”password” http://members.lakesideinvestmentclub.com/wp-cron.php?doing_wp_cron

    Now it works.

    Thanks for your help!

    Thread Starter topscorer

    (@topscorer)

    RESOLVED

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

The topic ‘wp-cron.php running Postie and Subscribe2’ is closed to new replies.