What to do When WordPress Misses it’s Schedule

World CalendarOccasionally, when a post is added to a WordPress blog, it is scheduled for a future date and time. Or someone may use one of the dozens of plugins that adds multiple posts at one and schedules them for you.

Usually, this scheduling works. Sometimes it fails. And, when it does fail it can be very frustrating. Don’t worry, there is a way to fix it.

Before understanding the solution, let’s understand the problem a bit better.

Scheduled posts are handled internally by WordPress using the WP-Cron script (wp-cron.php). WP-Cron is “fired” whenever the site is opened, by humans or robots, and it’s responsibility is to check the scheduler and publish anything it finds that needs publishing after the current date/time.

WP-Cron is not “real” cron.

wp-cron

Unfortunately, this does not always work. It could be because of server issues, or conflict with another plugin, or a myriad of other possibilities. After a certain number of these failures (I really don’t know what WP’s criteria is for this), the post is considered “missed”, and subsequently ignored. Kind of a bummer, right?

I know of two ways to fix this.

Using “Real” Cron in WordPress

The first options is to completely disabled WP-Cron and do it yourself. To do this, first you have to add the following line to your wp-config.php file (preferably after the database declarations, or even at the bottom of the config file):

define(‘DISABLE_WP_CRON’, ‘true’);

Wordpress Schedules

Now that WP-Cron is turned off, you need to control it yourself, either using an internal cron job that is set up in your control panel (CP), or via an external cron service (like http://www.setcronjob.com – I pay a paltry $10 per year for this great service!).

To set up an internal cron job, you’ll have to log into your control panel, and determine the frequency you’ll want it to run (keeping in mind, of course, that it will use resources). The job you set up will look something like this:

cd /home/hosting-user-name/public_html/sub-directory; php -q wp-cron.php

(note: you may not have a sub-directory)

Some hosts differ in their setup. Check with them if you need help, or see if they have a manual to follow.

Using an external cron like http://www.setcronjob.com is much simpler. You will set it up like this:

http://your-site-name.com/wp-cron.php

The big problem with using this technique is that it happens all at once. Let’s say you’ve decided it should run once every 3 hours. All of the posts scheduled prior to that time will all be processed at that time. So, even if the post was supposed to be published two hours prior, it will still appear to the ping services and the search engines to be published at the time the cron runs. The date and time become essentially meaningless.

Plugins to the Rescue

English: SWTPC Digital Measurements Lab with F...

The second method is really far better, and “forces” WP-Cron to work as was intended. It does add a bit of plugin overhead to the opening of a site, but it’s probably minimal most of the time. You can install one of two plugins

Missed Schedule, which may or may not be current (although I am still using it)

WP Missed Schedule, which may or may not be derived from the plugin listed above.

Both plugins work the same way. When a page on your site opens, the plugin checks for “missed schedule” posts and publishes them. WP Missed Schedule will re-post 10 at a time – one each minute – until all missed posts have been posted – not sure about the details of the other plugin. Keeping the plugin active for the future will prevent missed posts without adding to regular overhead.

Since the first plugin does not seem as current, I guess I would grab the 2nd plugin (although I have not used it, and therefore, cannot give it my recommendation – yet).

The plugin option seems like the best solution all around.

Related articles

Click here for reuse options!
Copyright 2013 WallyDay.com
Tags: , , , , , , , , , ,
Previous Post
Blogging

Effective Search Engine Optimization

Next Post
Web Hosting

Bells and Whistles

Comments

    • Ben W
    • December 15, 2013
    Reply

    On Godaddy, How Do I Set Up A Cron Job To Open A Url? The url includes parameters, so I can’t point the cron job at $home/…..

    I actually need the cron job to open the url that I give it. but I do not know how

    View Comment
      • Admin
      • December 15, 2013
      Reply

      You could use a text browser like lynx
      lynx http://www.godaddy.com

      or if you don’t want to browse…
      lynx -dump http://www.godaddy.com to just dump the html

      View Comment
    • Irshad r
    • January 4, 2014
    Reply

    How To Do Data Mining With Cron Jobs? I have to fetch data from websites to my database. How could I do that? Thanks.

    View Comment
    1. Reply

      You can get an xml file from your website and integrate it into your db using a conversion tool.

      View Comment
    • Captain
    • January 24, 2014
    Reply

    What Are The Downsides Of Free Webhosting? I’ve signed up to a free webhost, and they’re not putting ads on the website so I’m really not sure what the downsides are. There must be some.

    Thanks.

    View Comment
    1. Reply

      Depends. Some free hosting don’t support PHP or MySQL. Others allow limited bandwidth, and/or maybe 1 database. Probably no Cron jobs (depending on Linux or windows) . If you had mentioned the hosting site I probably would looked it up and given you specifics. But it’s probably limitations like that.

      EDIT:
      Like the other guy said they do give you a sub-domain. But this does not mean you cannot park a domain name. If you are using cPanel go down to the domains section (may or may not be there) and see if you can access Add-on Domains or Parked Domains. You can get a sub-domain from here too: http://www.co.cc/ which still is a sub-domain but its smaller and looks a bit more professional then a longer annoying domain. You would need to find the nameservers of your host and edit that in your domain setup to point to them. Hope this helped a little more.

      View Comment
    • Natasha K
    • February 4, 2014
    Reply

    Program Blocked In My Control Panel…..? My karaoke for myspace is blocked in the control panel, I just paid $30 for 3 months today and my computer blocked it after it was downloaded, I’ve tried re installing it, almost anything I could think of, please help!

    View Comment
    1. Reply

      Control panel is not for blocking program’s
      and doe’s not in any way block programs.

      basicly,
      control panel is just a folder
      that contains shortcuts to features and settings on your computer.

      .

      View Comment
    • Alex
    • March 4, 2014
    Reply

    Nvidia Control Panel? I have Nvidia GT GeForce 635M 2 GB Dedicated Graphics Card
    When I open the Nvidia Control Panel I only see the 3d Settings Am I suppose to have more options that I can change? Is there a way to fix this?
    I’ve updated the Drivers but still no luck

    View Comment
    1. Reply

      The best way is.. go to the Nvidia Driver Update website and run JAVA automatically detect your hardware. or for manual. just input you GPU series, which OS 32bit or 64bit and GPU model and click search button. or open Nvidia control panel, help and click update. go to this website http://www.geforce.com/drivers
      and input GeForce 600M series (Notebooks)
      GeForce GT 635M
      Operating system.
      and pick the language
      click search.

      View Comment
    • Phenix
    • March 7, 2014
    Reply

    What Is Heat Pump Control Panel? The girl from china told me something about heat pump. She said that there is a control panel to control the heat pump. what is it actually?

    View Comment
    1. Reply

      HVAC controllers are used to monitor and control the performance of heating, ventilation and air conditioning systems (HVAC) in buildings. They monitor indoor environmental factors such as humidity, temperature. And control heating and cooling to achieve and maintain desired levels. HVAC controllers receive inputs from thermostats and humidity sensors, and send output to HVAC chillers and other HVAC systems. Most industrial thermostats are timed, programmable, and/or remote-controlled. The user interface for an HVAC controller may consist of a digital front panel with a menu or keypad, or include analog components such as knobs and switches. Computer-programmable, web-enabled, and Ethernet-ready HVAC controllers are commonly available. Some HVAC controls include a programmable logic controller (PLC). Others feature human machine interface (HMI) software or provide supervisory data acquisition and control (SCADA) functionality. An HVAC controller may also provide rate indication, data logging, and totalizing capabilities.
      HVAC controllers use several different control techniques. Examples include limit control, linear control, PID control, feedforward control, fuzzy logic, and advanced or non-linear controls. Limit control establishes set points or limits that, when reached cause the HVAC controller to send a signal to stop or start a process variable. Linear control matches a variable input signal with a correspondingly variable control signal. Proportional, integral, and derivative (PID) control requires real-time system feedback. Feedforward control provides direct-control compensation from the reference signal. Fuzzy logic is a type of HVAC control in which variables can have imprecise values (as in partial truth) rather than a binary status (completely true or completely false). Advanced or nonlinear controls for HVAC controllers use algorithms such as adaptive gain and neural networking.
      Parameters for HVAC controllers include form factor and mounting style, number of inputs, number of outputs, input types, and output types. Some HVAC controls have a printed circuit board (PCB) form factor. Others are designed for mounting in a rack, on a wall, or with a DIN rail. Stand-alone HVAC controllers are benchtop or floor-standing units with a full-casing or cabinet and an integral interface. HVAC equipment suppliers specify the number of inputs as the total number of signals sent to the HVAC controller. The number of outputs is the total number of signals used to control, compensate or correct the heating or cooling process. Input types for HVAC controllers include: direct current (DC) voltages, current loops, analog signals from resistors or potentiometers, frequency inputs, and switch or relay inputs. Output types include analog voltages, current loops, switch or relay outputs, and pulses or frequencies. Some HVAC controllers can also receive inputs or send outputs in serial, parallel, Ethernet, or industrial fieldbus formats.

      Find this from http://www.hvac-control.net/News/66.htm

      View Comment
    • Mark Berdson
    • March 12, 2014
    Reply

    Where Do I Find The Control Panel? I have a macbook pro, how and where do I find my control panel?

    View Comment
    1. Reply

      Macintosh computers use a custom operating system with a different Control Panel, which is called System Preferences. Luckily, it is every bit as simple to access as the Windows XP Control Panel. On the main screen of the Mac OS, drag the cursor over the apple icon in the upper left corner of the screen. Click once on the icon, and a column of options will open. Place the cursor on the System Preferences option, and click. The Mac OS equivalent of the Windows XP Control Panel will open, and you’re ready to go.

      View Comment
    • Xen
    • March 27, 2014
    Reply

    Any Software To Hide The Programs In Control Panel? I just want to hide my programs installed on windows.which is to be hide from control panel

    View Comment
    1. Reply

      To disable the Control Panel in Windows XP:

      1. Click Start and click Run.
      2. Type gpedit.msc and click OK.
      3. Within the Group Policy Editor, expand the following: User Configuration | Administrative Settings | Control Panel.
      4. In the details pane, double click Prohibit access to the Control Panel.
      5. Click Enabled and click OK.

      With this setting enabled, users will be unable to start the Control Panel or run any Control Panel items.

      View Comment
    • Gauthier613
    • March 29, 2014
    Reply

    Cron Job For Sitemaps In GoDaddy? Anyone know to to create a Cron Job that will in GoDaddy Update my Sitemaps on a daily baisis and submit them?

    View Comment
    1. Reply

      CRON jobs are usually used for system tasks to run applications or scripts.

      If you want to use cron, you’ll need to create a script using a language (like ruby) or a programming language (like C++)

      Your program/script would need to be able to update your Sitemap (just one time)

      Then you would put the job (program or script) into the cron scheduler and then set a schedule (every 5 hours, every 24 hours, etc).

      View Comment
    • Unheardpsycho
    • April 2, 2014
    Reply

    Where Is Control Panel Located On Xp? I understand control panel is in start or sometimes in my computer however i am having major computer problems at the moment and the start bar does not load

    does anyone know EXACTLY where control panel is (example c:/windows/control panel i am specifically looking for the add and remove programs so i can take off newly installed programs that might have damaged the computer
    cant succesfully get into safe mode i’m actually accessing files by control alt delete and starting new task and just exploring the files from there i cant get into anything else no start bar no icons
    js i tried ur shortcut for start a new task and it comes up that explorer.exe is unable to run (which i find is odd because oviously windows explorer is running)

    View Comment
    1. Reply

      Control panel is located at C:WINDOWSsystem32 and the program name is CONTROL.EXE
      For your problem keep reading:
      Control panel uses windows applets to display the different options you can execute. You could run them manually, by:
      o Go to the start button ==> RUN and to open the Add or Remove Programs
      WINDOWS XP: type or copy and paste this command
      control appwiz.cpl

      WINDOWS VISTA:type or copy and paste this command
      RunDll32.exe shell32.dll,Control_RunDLL appwiz.cpl,,0

      View Comment
    • Jammin
    • April 27, 2014
    Reply

    Cron Job Server Side Solution? I need to do schedule task to execute a php file. I need to test it in xampp in windows and this job needs to be done in a certain period of time. Is this possible.

    View Comment
    1. Reply

      No, it’s not possible. Cron is somewhat like task scheduler for Windows, but testing a cron with task scheduler is irrelevant since task scheduler is nowhere near as flexible as cron, it can’t accurately replicate a cron job.

      View Comment
    • Bio-Hazard
    • April 30, 2014
    Reply

    PC Control Panel? Have been looking for the Regional and Language Options in my control panel, but its not there. can anyone tell me were I mite find it on my PC?

    Thanks
    The OS is WinXP inc SP2,

    It cant be seen in either of the control panel views

    View Comment
    1. Reply

      It should be in your Control Panel. If you’re in Category View, switch to Classic View.

      View Comment
    • Joshthemadtitan
    • May 23, 2014
    Reply

    What Exactly Is A Cron Job, And How Can I Use One? I am looking to increase the number of hits on my site for many reasons (search engine status as well as personal gratification at seeing the counter go up) someone told me I could use something called a cron job that will for example refresh my page every 10 minutes.

    Does anyone know how I can actually do this?

    View Comment
    1. Reply

      Cron is a process on UNIX machines that work like a task manager in Windows. By making a cron job, you can assign a certain task to be automatically run every x times.So, if your browser is on a UNIX machine, you can do that. You cannot refresh a web page server-side with a crontab entry.

      Besides, refreshing a page usually won’t increase the hits on your site. It depends what kind of software is used to display the hits, but most will filter it out.

      Despite the previous answer, you don’t need PHP to build in a page refresh, you can use a meta refresh command in the HTML header. Just google it.

      View Comment
    • Shane
    • June 4, 2014
    Reply

    Control Panel? I’m using a windows home vista and I can’t load my control panel by just clicking. When I do, it pops up and then goes away.
    What keys do you press to gain access?
    Feis Ort – no, its brand new and my brother just says its “broken”

    View Comment
    1. Reply

      Sound like your computer has a virus which is stopping control panel opening. Try rebooting your computer.

      View Comment

Leave a Reply

Your email address will not be published. Required fields are marked *

%d bloggers like this: