• Resolved firmdot

    (@firmdot)


    I see a lot of errors in my error log for:

    [26-May-2019 08:17:43] PHP Parse error: syntax error, unexpected T_FUNCTION in /home/site/public_html/wp-content/plugins/redirection/redirection.php on line 100

    Line 100 is:

    // This is causing a lot of problems with the REST API – disable qTranslate
    add_filter( ‘qtranslate_language_detect_redirect’, function( $lang, $url ) {

    Any idea what needs to be done to resolve that issue?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author John Godley

    (@johnny5)

    Redirection requires PHP 5.4, as does WordPress. It sounds like you are using an older version.

    Thread Starter firmdot

    (@firmdot)

    We are using 5.6 at the moment.

    Plugin Author John Godley

    (@johnny5)

    The line is using an anonymous function, which is valid syntax for more recent versions of PHP. This particular line has been in the plugin for 2 months and has not been reported by anyone else.

    Either your file is corrupt, or you are unintentionally using an older version of PHP. If you look at your Site Health it might show more details.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘PHP Parse error – Line 100’ is closed to new replies.