WordPress.org

Ready to get started?Download WordPress

Forums

Simple 301 Redirects
Deprecated code inside.. (3 posts)

  1. pkiula
    Member
    Posted 1 year ago #

    This is a very useful plugin, and thanks for writing it.

    However it's filling up my debug.log with these messages:

    [11-Sep-2012 01:46:02 UTC] PHP Notice: get_settings is
    deprecated since version 2.1! Use get_option()
    instead. in /home/domain/public_html/wp-includes/functions.php on
    line 2638

    [11-Sep-2012 01:46:02 UTC] PHP Notice: Undefined index: HTTPS in
    /home/domain/public_html/wp-content/plugins/simple-301-
    redirects/wp-simple-301-redirects.php on line 143

    Hope you can fix this in the next update.

    Keep up the good work!

    http://wordpress.org/extend/plugins/simple-301-redirects/

  2. scottnelle
    Member
    Plugin Author

    Posted 1 year ago #

    Noted for the next version. Thanks for pointing it out!

  3. Arun Singh
    Member
    Posted 1 year ago #

    Hi scottnelle,

    Thanks for the plugin, it saves lot of pain.

    For : PHP Notice: Undefined index: HTTPS in
    /home/domain/public_html/wp-content/plugins/simple-301-
    redirects/wp-simple-301-redirects.php on line 143

    Please update your line 143 with this:

    $protocol = isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on' ? 'https' : 'http';

    It removes the error :)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.