• Resolved midwestdev

    (@midwestdev)


    As of 2.4.2, my ability to programmatically add a scheduled expiration seems to be gone. I updated and once the code ran, I got:
    PHP Fatal error: Uncaught Error: Call to undefined function _scheduleExpiratorEvent()

    Once I rolled back the plugin to 2.4.1, it worked as expected and added a predetermined expiration to the post being created.

Viewing 9 replies - 1 through 9 (of 9 total)
  • Hi,
    It happened to me too. I looked at the plugin code.
    Function name changed to
    postexpirator_schedule_event

    • This reply was modified 3 years, 5 months ago by mtyaad.
    Plugin Author Steve Burge

    (@stevejburge)

    @mtyaad @midwestdev thanks for reporting this. We’ll fix it in a follow-up release early next week.

    Plugin Author Steve Burge

    (@stevejburge)

    @mtyaad @midwestdev We’ve had a discussion on our team about this.

    We think this function name change was a positive move as we work to clean up the codebase.

    We’re prepared to roll back this change if needed, but wanted to ask … are you able to update your code for the new function?

    If you can’t, could you explain your use-case a little? Maybe we can support it and still clean up the codebase.

    Thread Starter midwestdev

    (@midwestdev)

    @stevejburge Function name changes are pretty common, so I understand, and luckily, I am able to change it in my case.

    However, that being said, I didn’t do any dives into the code to find what the new function name was, there was no notes about it in your changelog, and as far as I can tell, there was no deprecation process to let developers know that it was changing, and what it was changing to.

    Maybe adding a passthrough function with the old function name with a deprecation warning and adding something about it in your changelog would be a good first step and then drop it when you feel you’ve given enough warning? Just a suggestion.

    Plugin Author Steve Burge

    (@stevejburge)

    thanks @midwestdev. 100% agree on the changelog. Sorry, we messed up on this one. We normally do a detailed log with “Added”, “Changed”, and “Fixed”.

    We are leaning towards leaving this change in place, but adding legacy support in the next release.

    Thread Starter midwestdev

    (@midwestdev)

    @stevejburge No worries, I’m just glad you’re responsive! Dealt with a lot of un-responded support tickets in my day. Love the plugin and keep up the good work!

    Plugin Author Steve Burge

    (@stevejburge)

    Thanks @midwestdev

    We took over maintaining the plugin a couple of months ago, and are moving slowly, learning more about what existing users are doing with the plugin. This kind of feedback is super-helpful.

    Thread Starter midwestdev

    (@midwestdev)

    Sure, in case it’s more helpful, one of the uses I have that wasn’t working is adding a custom length of time per post created on a Gravity Forms submission. The blanket post expiration isn’t what was requested, so I had to resort to setting the expiration programmatically after the form is submitted and the post is created. Otherwise, I typically use it as an admin tool on most other sites, so that level of programming isn’t needed. Hope this information helps.

    Plugin Author Steve Burge

    (@stevejburge)

    @midwestdev 150% it’s helpful. Thanks for sharing that with us.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Programmatic setup error in v2.4.2’ is closed to new replies.