• Appears to be a nice little plugin.

    There’s a code error on line 101 of the auto-post-expiration.php file that triggers a fatal error.

    //require_once options file
    require_once( AUTO_POST_EXP_DIR . ‘\auto-post-expire-options.php’);

    changed the \ to / to make it work.

    //require_once options file
    require_once( AUTO_POST_EXP_DIR . ‘/auto-post-expire-options.php’);

Viewing 6 replies - 1 through 6 (of 6 total)
  • @viitorcloud Maybe you should fix this…

    @safety13 I contacted the dev via Slack.

    Confirmation.
    Still the same error.

    Thank you @safety13. The slash seams really the problem.

    Next error in post view:
    “Notice: date_default_timezone_set(): Timezone ID ” is invalid in /www/htdocs/xxx/xxx/wp-content/plugins/auto-post-expiration/auto-post-expire-options.php on line 26″

    I feel, this plugin should not shared.

    If you set your time zone in WP-Settings as a value (e.g. UTC +1h) you receive this error, because get_option(‘timezone_string’); in line 24 above will be a empty string.
    If you set your time zone as a city get_option(‘timezone_string’); will throw out a correct time zone as a string.

    Hi @safety13 ,

    Thank you for your valuable input. The plugin is updated with the latest code and replaced “\” with “/” for file require_once.

    //require_once options file
    require_once( AUTO_POST_EXP_DIR . ‘/auto-post-expire-options.php’);

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Install’ is closed to new replies.