WordPress.org

Ready to get started?Download WordPress

Forums

Simple 301 Redirects
Fatal error: Call to undefined function: str_ireplace() (6 posts)

  1. stilfx
    Member
    Posted 3 years ago #

    Fatal error: Call to undefined function: str_ireplace() in /public_html/wp-content/plugins/simple-301-redirects/wp-simple-301-redirects.php on line 119

  2. C. Brad Doss
    Member
    Posted 3 years ago #

    make sure you are running PHP 5. str_ireplace() only supports that version of PHP.

  3. stilfx
    Member
    Posted 3 years ago #

    You nailed it, that does look to be the issue.. old school clients, w/ old school servers! Anyway, I just ran the 301 through the htaccess manually. Thanks for the effort none-the-less.

  4. scottnelle
    Member
    Plugin Author

    Posted 3 years ago #

    Hey guys. Thanks for pointing this out. With an error code no less--very helpful. :-)

    Because PHP 4 was officially declared unsupported over 2 years ago, I didn't even think to check the compatibility of the str_ireplace function. Turns out it's only available in PHP 5+. I know a lot of people are stuck on older servers against their will, so I'll release another update tonight to fix the issue. Sorry about that.

    Scott

  5. scottnelle
    Member
    Plugin Author

    Posted 3 years ago #

    ...and the new version is available with PHP4 support. Sorry for the oversight and for the double update.

    Scott

  6. C. Brad Doss
    Member
    Posted 3 years ago #

    @Scott, 2 months late, but thanks for the quick update. Appreciate the simplicity of the plugin!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic