Support » Plugin: Redirection » BUGFIX + Bug-Report (5 minutes work only)

  • Resolved RAIDBOXES

    (@raidboxes)


    Hi,

    awesome tool. Unfortunately it does not work with our nginx setup. Please support this bugfix:

    BUGIFX:
    In file modules/wordpress.php replace the following line:

    elseif ( $status === 301 && php_sapi_name() === ‘cgi-fcgi’ ) {

    with

    elseif ( $status == 301 && in_array(php_sapi_name(), array(‘cgi-fcgi’, ‘fpm-fcgi’))) {

    Explanation:
    1. You are comparing with ===. So $status has to be an integer. If $status is the string “301” this expression evaluates to false and plugin does not work. You CAN safely compare with == and let PHP use its automatic type conversion. This will NOT break anything else!

    2. Our server setup uses ‘fpm-fcgi’. So I’ve extended the check with this.

    After that your plugin works like a charme!

    Can you please change this code and make a new release? This would make thousands of our customers happy!

    Best regards,
    Marcel

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘BUGFIX + Bug-Report (5 minutes work only)’ is closed to new replies.