• I can’t understand why some of my products are expiring at the correct times and others are not. I’ve checked the debug log and can see when something is scheduled and when others are processing. Example is id 3050, which was set to expire at 12 noon Pacific time. I see it scheduled at 1700 (which I assume the plugin is using UTC) but it never processes. Yet the post 3482 which schedule at UTC 20:00 did process out correctly. I have no idea.

    Timestamp Message
    2017-06-04 21:44:04 3344 -> SCHEDULED at Mon, 05 Jun 2017 22:59:00 +0000 (1496703540) with options Array ( [expireType] => draft [id] => 3344 )
    2017-06-04 20:00:05 3482 -> PROCESSED draft Array ( [expireType] => draft [id] => 3482 )
    2017-06-04 19:57:02 3262 -> PROCESSED draft Array ( [expireType] => draft [id] => 3262 )
    2017-06-04 17:00:05 3051 -> PROCESSED draft Array ( [expireType] => draft [id] => 3051 )
    2017-06-04 16:31:50 3452 -> SCHEDULED at Mon, 05 Jun 2017 00:00:00 +0000 (1496620800) with options Array ( [expireType] => draft [id] => 3452 )
    2017-06-04 16:30:05 3453 -> SCHEDULED at Sun, 04 Jun 2017 18:00:00 +0000 (1496599200) with options Array ( [expireType] => draft [id] => 3453 )
    2017-06-04 16:21:38 3482 -> SCHEDULED at Sun, 04 Jun 2017 20:00:00 +0000 (1496606400) with options Array ( [expireType] => draft [id] => 3482 )
    2017-06-04 14:50:05 3247 -> SCHEDULED at Sun, 04 Jun 2017 20:05:00 +0000 (1496606700) with options Array ( [expireType] => draft [id] => 3247 )
    2017-06-04 14:48:47 3250 -> PROCESSED draft Array ( [expireType] => draft [id] => 3250 )
    2017-06-04 14:48:24 3250 -> SCHEDULED at Fri, 02 Jun 2017 17:00:00 +0000 (1496422800) with options Array ( [expireType] => draft [id] => 3250 )
    2017-06-04 14:43:35 3262 -> SCHEDULED at Sun, 04 Jun 2017 19:57:00 +0000 (1496606220) with options Array ( [expireType] => draft [id] => 3262 )
    2017-06-04 14:40:08 3198 -> SCHEDULED at Mon, 05 Jun 2017 00:00:00 +0000 (1496620800) with options Array ( [expireType] => draft [id] => 3198 )
    2017-06-04 14:37:28 3052 -> SCHEDULED at Sun, 04 Jun 2017 19:00:00 +0000 (1496602800) with options Array ( [expireType] => draft [id] => 3052 )
    2017-06-04 14:36:20 3051 -> SCHEDULED at Sun, 04 Jun 2017 17:00:00 +0000 (1496595600) with options Array ( [expireType] => draft [id] => 3051 )
    2017-06-04 14:35:06 3050 -> SCHEDULED at Sun, 04 Jun 2017 17:00:00 +0000 (1496595600) with options Array ( [expireType] => draft [id] => 3050 )

Viewing 5 replies - 1 through 5 (of 5 total)
  • How are you setting the expiration options? Are you using the built in box on the post edit screen, or are you doing something custom to set the values?

    Thread Starter dantanna85

    (@dantanna85)

    I have your plugin on the screen and I just check the box to use it and set the time. Like it shows, some are expiring and others not. Let me clarify, I’m using this on a woocommerce product, no a post. The plugin shows up fine on the product with no other expiry options other than yours. I just don’t know why some are working and some not.

    If you want I can give you access to the site so you can check it out for yourself. They ones that haven’t expired are still there, I haven’t forced them to draft yet.

    Thread Starter dantanna85

    (@dantanna85)

    I noticed you use UTC. Do you think that is affecting the processed draft array? Or could it be a cron job? If you let me know what cron settings to make I can make those changes. Whatever I can do to get this working consistently.

    I have not tested the plugin with woocommerce, so I’m not sure what is going on there. Sounds like there is something not working correctly. Have you invested what those product ID’s are? Are they all unique products or are some of those ID’s actually drafts?

    Everything in the WordPress core does use UTC time – so that is normal on the backend.

    Thread Starter dantanna85

    (@dantanna85)

    The product ID’s are drafts when the plugin processes the expiration properly. If it is scheduled then it’s set but not processed. When I see processed then it’s moved to draft properly.

    Do you know if there is a plugin that does the same thing that has been tested with WooCommerce?

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Some products expiring, others no (log included)’ is closed to new replies.