• ERROR: PHP Fatal error: Cannot redeclare es_textdomain() (previously declared in /usr/www/users/hfxgrhhmqn/wp-content/plugins/email-subscribers/email-subscribers.php:42) in /usr/www/users/hfxgrhhmqn/wp-content/plugins/xxemail-subscribers/email-subscribers.php on line 43

    I have installed the latest version of this plugin and the latest version of WP, but keep getting this error and the page going to white screen.

    I have requested assistance many times over a few days, but am not getting help or a solution.
    The only replies I get so far is that WordPress has an issue.

    Please offer a solution.

    Your code:

    * Plugin Name: Email Subscribers & Newsletters
    * Plugin URI: http://www.storeapps.org/product/email-subscribers/
    * Description: Add subscription forms on website, send HTML newsletters & automatically notify subscribers about new blog posts once it gets published.
    * Version: 3.2.2
    * Author: StoreApps
    * Author URI: http://www.storeapps.org/
    * Requires at least: 3.4
    * Tested up to: 4.6.1
    * Text Domain: email-subscribers
    * Domain Path: /languages/
    * License: GPLv3
    * Copyright (c) 2015, 2016 StoreApps

    if(preg_match(‘#’ . basename(__FILE__) . ‘#’, $_SERVER[‘PHP_SELF’])) { die(‘You are not allowed to call this page directly.’); }


    add_action( ‘admin_menu’, array( ‘es_cls_registerhook’, ‘es_adminmenu’ ) );
    add_action( ‘admin_init’, array( ‘es_cls_registerhook’, ‘es_welcome’ ) );
    add_action( ‘admin_enqueue_scripts’, array( ‘es_cls_registerhook’, ‘es_load_scripts’ ) );
    add_action( ‘wp_enqueue_scripts’, array( ‘es_cls_registerhook’, ‘es_load_widget_scripts_styles’ ) );
    add_action( ‘widgets_init’, array( ‘es_cls_registerhook’, ‘es_widget_loading’ ) );

    // Action to Upgrade Email Subscribers database
    add_action( ‘admin_init’, array( ‘es_cls_registerhook’, ‘sa_email_subscribers_db_update’ ) );

    // Admin Notices
    add_action( ‘admin_notices’, array( ‘es_cls_registerhook’, ‘es_add_admin_notices’ ) );
    add_action( ‘admin_init’, array( ‘es_cls_registerhook’, ‘dismiss_admin_notice’ ) );

    add_shortcode( ’email-subscribers’, ‘es_shortcode’ );

    add_action( ‘wp_ajax_es_klawoo_subscribe’, array( ‘es_cls_registerhook’, ‘klawoo_subscribe’ ) );


    function es_textdomain() {
    load_plugin_textdomain( ’email-subscribers’ , false, dirname( plugin_basename( __FILE__ ) ) . ‘/languages/’ );

    add_action( ‘plugins_loaded’, ‘es_textdomain’ );
    add_action( ‘transition_post_status’, array( ‘es_cls_sendmail’, ‘es_prepare_notification’ ), 10, 3 );

    add_action( ‘user_register’, ‘es_sync_registereduser’ );

    register_activation_hook( ES_FILE, array( ‘es_cls_registerhook’, ‘es_activation’ ) );
    register_deactivation_hook( ES_FILE, array( ‘es_cls_registerhook’, ‘es_deactivation’ ) );

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor Mansi



    Issue occuring only on your end with Safari Browser. Works correctly on our end with latest Safari version.
    Were you able to resolve it?

    Hi Mansi,I am using the free subscriber and newsletter plugin. Is there a way I can export JUST a certain category of subscribers from the list. It allows me to export the entire subscriber list but does not allow me to choose certain groups.
    Any assistance would be greatly appreciated.
    Kindest regards

    • This reply was modified 3 years, 3 months ago by Greg Walker.
    Plugin Author Icegram


    Hi @@greg-walker,

    As per the forum welcome, please post your own topic.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘DUPLICATE DECLARE OF FUNCTION’ is closed to new replies.