e-Newsletter Plug-in Compatibility with Fusion Core

My theme, Avada by ThemeFusion (http://www.theme-fusion.com/), uses Fusion Core Version 1.6.2. When I attempt to "Create A Newsletter" I get the error message:

Fatal error: Call to undefined function get_current_screen() in /nas/wp/www/staging/droneuniv/wp-content/plugins/fusion-core/fusion-core.php on line 834

The URL that throws this error is:

http://droneuniv.staging.wpengine.com/wp-admin/customize.php?wp_customize=on&theme=iletter&newsletter_id=2&return=admin.php%3Fpage%3Dnewsletters

I've attached a screenshot of the error too.

I'd like to start using this plug-in, but I can't yet, so I hope you guys can help.

  • Vinod Dalvi

    Hi Michael,

    Welcome to the WPMU Dev community and thanks for posting on the forum.

    I could reproduce the issue with the latest version of e-Newsletter plugin and Fusion Core plugin Version 1.6.2

    The issue is with in the Fusion Core plugin which you can resolve by editing the following file of Fusion Core plugin on line number 872 as displayed below.

    Fusion Core plugin file :
    wp-content/plugins/fusion-core/fusion-core.php

    Before Editing:

    function fusion_add_quicktags_button() {
    	if( get_current_screen()->base == 'post' ) {

    After Editing:

    function fusion_add_quicktags_button() {
    	if( function_exists('get_current_screen') && get_current_screen()->base == 'post' ) {

    Please note you are making changes in the plugin file therefore you have to make these changes again after plugin updation as changes made in the plugin file get lost on plugin updation.

    Best Regards,
    Vinod Dalvi

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.