• Resolved acelerawp

    (@acelerawp)


    You are calling the method “get_enabled_elements()” and this method is Not even created / defined in the class “Admin_Helper”. Bellow the StackTrace:

    Error Details

    An error of type E_ERROR was caused in line 31 of the file /home/batidosf/mysite.com/wp-content/plugins/premium-addons-pro/includes/grid-builder/pa-grid-builder-handler.php. Error message: Uncaught Error: Call to undefined method PremiumAddonsPro\Admin\Includes\Admin_Helper::get_enabled_elements() in /home/batidosf/mysite.com/wp-content/plugins/premium-addons-pro/includes/grid-builder/pa-grid-builder-handler.php:31

    Stack trace: 0 /home/batidosf/mysite.com/wp-content/plugins/premium-addons-pro/includes/grid-builder/pa-grid-builder-handler.php(148): PremiumAddonsPro\Includes\GridBuilder\Pa_Grid_Builder_Handler->__construct() 1 /home/batidosf/mysite.com/wp-content/plugins/premium-addons-pro/includes/class-papro-core.php(58): require_once(‘/home/batidosf/…’) 2 /home/batidosf/mysite.com/wp-content/plugins/premium-addons-pro/includes/class-papro-core.php(324): PremiumAddonsPro\Includes\PAPRO_Core->__construct() 3 /home/batidosf/mysite.com/wp-content/plugins/premium-addons-pro/includes/class-papro-core.php(340): PremiumAddonsPro\Includes\PAPRO_Core::get_instance() 4 /home/batidosf/mysite.com/wp-content/plugins/premium-addons-pro/includes/class-papro-core.php(343): PremiumAddonsPro\Includes\premium_addons_pro() 5 /home/batidosf/mysite.com/wp-content/plugins/premium-addons-pro/premium-addons-pro-for-elementor.php(45): require_once(‘/home/batidosf/…’) 6 /home/batidosf/mysite.com/wp-settings.php(462): include_once(‘/home/batidosf/…’) 7 /home/batidosf/mysite.com/wp-config.php(160): require_once(‘/home/batidosf/…’) 8 /home/batidosf/mysite.com/wp-load.php(50): require_once(‘/home/batidosf/…’) 9 /home/batidosf/mysite.com/wp-admin/admin.php(34): require_once(‘/home/batidosf/…’) 10 /home/batidosf/mysite.com/wp-admin/plugins.php(10): require_once(‘/home/batidosf/…’) 11 {main}

    thrown

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Leap13

    (@leap13)

    @acelerawp As we mentioned on this topic that this is related to the paid version of Premium Addons. We are not allowed to answer this on WordPress forums.

    Please open a ticket on our support system from here.

    Thread Starter acelerawp

    (@acelerawp)

    Hi @leap13,

    I already Fix your BUG using this simple validation that is important when the user have “Premium Addons PRO” Activated and for some reason the user Deactivate the “Premium Addons for Elementor” Free version –> if (class_exists(‘PremiumAddons\Admin\Includes\Admin_Helper’))

    public function __construct() {
    
    if(class_exists('PremiumAddons\Admin\Includes\Admin_Helper')) {
    
    $enabled_elements = Admin_Helper::get_enabled_elements();
    
    $is_spl_active = $enabled_elements['premium-smart-post-listing'];
    
    if ( $is_spl_active ) {
    
    $this->init_path_var();
    
    add_action( 'plugins_loaded', array( $this, 'init_grid_builder_hooks' ) );
    		}
    }
    	
    else{
    		
    $this->init_path_var();
    
    add_action( 'plugins_loaded', array( $this, 'init_grid_builder_hooks' ) );
    	}
    }
    Plugin Author Leap13

    (@leap13)

    @acelerawp Thanks so much for sharing this. We already fixed it and a new version will be released within a couple of hours.

    Regards

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘The method “get_enabled_elements()” is undefined in class “Admin_Helper”’ is closed to new replies.