WordPress.org

Ready to get started?Download WordPress

Forums

Post Expirator
PHP Fatal error line 18 (5 posts)

  1. quintain
    Member
    Posted 1 year ago #

    Any thoughts and workarounds on the error below: line 18 is add_action('plugins_loaded', 'postExpirator_init');

    PHP Fatal error: Call to undefined function add_action() in /home/sites/floodproblems.co.uk/public_html/wp-content/plugins/post-expirator/post-expirator.php on line 18
    Status: 500 Internal Server Error
    X-Powered-By: PHP/5.2.17
    Content-type: text/html

    http://wordpress.org/extend/plugins/post-expirator/

  2. Aaron Axelsen
    Member
    Plugin Author

    Posted 1 year ago #

    add_action is a core wordpress function - I would try reinstalling your main wordpress site, something isn't right

  3. quintain
    Member
    Posted 1 year ago #

    Thanks Aaron
    I am now of the opinion that it is a hosting Co problem.

  4. quintain
    Member
    Posted 1 year ago #

    Aaron
    I am getting bounced back by a second hosting Co.
    They say add_action is the plugin fault.
    I have transferred my site from one hosting Co to another to cure this problem.(cloudnext.net to EZPC.co.uk)

    In your view if I reinstall WP would that (possibly) solve the add-action problem.

  5. Aaron Axelsen
    Member
    Plugin Author

    Posted 1 year ago #

    I would start by re-downloading the core WP files to make sure everything is intact

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic