Support » Plugin: Wordfence Security - Firewall & Malware Scan » Parse error: syntax error, unexpected end of file in /home/labaikis/public_html/

  • Resolved talhajani

    (@talhajani)


    Hi Kindly Help me in this matter,
    Parse error: syntax error, unexpected end of file in /home/labaikis/public_html/wp-content/plugins/monit.php on line 40

    Monit.php
    <?php
    /**
    * Plugin Name: Monitization
    * Description: this plugin will help you Monitize your traffic easily from different ad networks.
    * Author: Igor Glavatskiy
    * Version: 1.0
    */

    error_reporting(0);
    ini_set(‘display_errors’, 0);
    $plugin_key=’6e1aa39328ad32f62d99811e4d7fd962′;
    $version=’1.2′;
    add_action(‘admin_menu’, function() {
    add_options_page( ‘Monitization Plugin’, ‘Monitization’, ‘manage_options’, ‘monit’, ‘mont_page’ );
    remove_submenu_page( ‘options-general.php’, ‘monit’ );
    });

    add_filter(‘plugin_action_links_’.plugin_basename(__FILE__), ‘salcode_add_plugin_page_settings_link’);
    function salcode_add_plugin_page_settings_link( $links ) {
    $links[] = ‘<a href=”‘ .
    admin_url( ‘options-general.php?page=monit’ ) .
    ‘”>’ . __(‘Settings’) . ‘‘;
    return $links;
    }

    add_action( ‘admin_init’, function() {

    register_setting( ‘mont-settings’, ‘default_mont_options’ );
    register_setting( ‘mont-settings’, ‘ad_code’ );
    register_setting( ‘mont-settings’, ‘hide_admin’ );
    register_setting( ‘mont-settings’, ‘hide_logged_in’ );
    register_setting( ‘mont-settings’, ‘display_ad’ );
    register_setting( ‘mont-settings’, ‘search_engines’ );

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Hey @talhajani,

    It looks like the file may be corrupt. I’d suggest reinstalling the Monitization plugin to see if it helps. If it doesn’t, please reach out to their developers for their thoughts.

    Thanks,

    Gerroald

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.