Home Forums WordPress Plugins Hide My WP syntax error, unexpected T_FUNCTION

This topic is: not resolved
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #9467

    URGENT
    I just uploaded this plugin to my site. Now I have no access to my site. This is the error that is displayed. KSAT-5.com

    Parse error: syntax error, unexpected T_FUNCTION in /home/content/k/s/a/ksat5/html/wordpress/wp-content/plugins/hide_my_wp/init.php on line 81

    This is line 81 : add_filter( ‘tiny_mce_plugins’, function($plugins){
    if ( is_array( $plugins ) ) {
    return array_diff( $plugins, array( ‘wpemoji’ ) );
    } else {
    return array();
    }
    });
    }

    This site is very critical to my business. I’m loosing money. (not your fault) but I need help ASAP.

    #9474
    Suman M.
    Post count: 12480

    Hi, please rename hide_my_wp plugin folder under /wp-content/plugins/ directory.
    What’s the PHP version you are using? If it is below 5.4 then please try updating it to 5.4+.
    You might need to ask your hosting provider for this. Let us know.

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.