WordPress.org

Ready to get started?Download WordPress

Forums

Website not working: Error: Parse error: syntax error, unexpected ' (2 posts)

  1. meghanjward
    Member
    Posted 2 years ago #

    Please help. My website at highlineonline.ca is not working. I was trying to update a plugin and now get this error:

    Parse error: syntax error, unexpected '<' in /home/highline/HighlineOnline.ca/wp-content/plugins/jetpack/modules/comments.php on line 28

    What should I do?

    ---

    This is the code on the page it now won't let me navigate away from without the error:

    <?php

    /**
    * Module Name: Jetpack Comments
    * Module Description: A new comment system that has integrated social media login options.
    * First Introduced: 1.4
    * Sort Order: 2
    */

    require dirname( __FILE__ ) . '/comments/comments.php';

    if ( is_admin() ) {
    require dirname( __FILE__ ) . '/comments/admin.php';
    }

    function jetpack_comments_load() {
    Jetpack::enable_module_configurable( __FILE__ );
    Jetpack::module_configuration_load( __FILE__, 'jetpack_comments_configuration_load' );
    }

    function jetpack_comments_configuration_load() {
    wp_safe_redirect( admin_url( 'options-discussion.php#jetpack-comments-settings' ) );
    exit;
    }
    add_action( 'jetpack_modules_loaded', 'jetpack_comments_load' );

  2. s_ha_dum
    Member
    Posted 2 years ago #

    What should I do?

    Probably the easiest thing is to delete the plugin via FTP. This first step should get your site back, albeit without JetPack. Then upload a fresh copy of the JetPack plugin, also over FTP.

Topic Closed

This topic has been closed to new replies.

About this Topic