Fatal error: Cannot redeclare fu_textdomain
-
If you encounter this problem after enabling the plugin:
Fatal error: Cannot redeclare fu_textdomain() (previously declared in /home/public/sites/www.yourdomain.com/wp-content/plugins/tifinagh/tifinagh.php:59) in /home/public/sites/www.yourdomain.com/wp-content/plugins/font-uploader/font-uploader-free.php on line 59`</blockquote>
You can fix it by editing the mentioned file as follows:
Change this:
function fu_textdomain() { load_plugin_textdomain( 'tifinagh', false, dirname( plugin_basename( EDD_PLUGIN_FILE ) ) . '/languages/' ); } add_action('init', 'fu_textdomain');To this:
function fu_textdomain() { load_plugin_textdomain( 'tifinagh', false, dirname(__FILE__) . '/languages/' ); } add_action('init', 'fu_textdomain');Now it should work as normal. Enjoy!
The topic ‘Fatal error: Cannot redeclare fu_textdomain’ is closed to new replies.