WordPress.org

Ready to get started?Download WordPress

Forums

Electric Studio Auto Post Expire
[resolved] error (7 posts)

  1. Marklcm
    Member
    Posted 1 year ago #

    Hello
    I get the following error using 1.5.2 when trying to update a page
    "Fatal error: Call to undefined function es_preit() in /home/********/public_html/wp-content/plugins/electric-studio-auto-expire-post/electric-studio-auto-post-expire.php on line 292".
    Hope you have a fix, back to pre 1.5 in the meantime
    Thanks
    M

    http://wordpress.org/extend/plugins/electric-studio-auto-expire-post/

  2. Gabor Javorszky
    Member
    Posted 1 year ago #

    Hiya!

    That should not be there, thx for pointing that out, update is on its way.

    Gabor

  3. Gabor Javorszky
    Member
    Posted 1 year ago #

    On yet another point, your nonce is failing, so there is another underlying issue... I'll see what's wrong and get back to you.

  4. Gabor Javorszky
    Member
    Posted 1 year ago #

    1.5.4 is now up on WordPress.org. Can you set up the same environment as you had with the website that gave you the error and try again?

    It should not happen... basically if you get to that point, it means that you're not coming from within the edit post screen, or something else is messed up, or simply your nonces don't work.

  5. Marklcm
    Member
    Posted 1 year ago #

    thanks
    installed 1.5.5
    seems to be functioning without error
    M

  6. Marklcm
    Member
    Posted 1 year ago #

    Marked this topic as resolved

  7. Gabor Javorszky
    Member
    Posted 1 year ago #

    Thanks Marklcm,

    For those of you who are wondering what the solution was:
    1) updating the post meta is hooked into the save_posts action, which runs every time anything is updated. In that function, there is a verify nonce function.

    2) This action runs even if a post type is saved that does not have the post expiry enabled, and thus, no nonce field is output.

    3) Since there is no nonce field, on update, no nonce is transmitted, and thus the verify nonce fails.

    4) Because I set a wp_die() on failure, this stopped people from actually working. I am sorry about this, will not happen again. (for reference, the function should just return; )

    Gabor

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic