• Closed
  • John Mekis
    Spectator
    January 4, 2018 at 8:42 pm #36108

    I have Alora 2.9.0 (WordPress 4.9.1) installed and was receiving the following notice in my dashboard:

    The following plugin needs to be updated to its latest version to ensure maximum compatibility with this theme: Theme4Press Core. (old version the site was using is 1.3.5)

    I downloaded and installed the latest version from my Theme4Press downloads area (1.3.9). It seemed to be ok after installation and activation, however I am getting a white screen when trying to access the widgets area once the plugin is activated. Can you please help me fix this?

    Here is the site:

    Front Page

    John Mekis
    Spectator
    Posts: 6
    January 4, 2018 at 8:44 pm #36109
    This reply has been marked as private.
    Priyank
    Spectator
    Posts: 747
    January 5, 2018 at 7:10 am #36111

    Hii,

    I can’t have a permission to modify plugin file in plugin editor, so you can change this code yourself.

    Go to theme plugin directory, and change the below file function.

    t4p-core-composer plugin -> core -> core.php

    Then, find load_assets() function and replace with below code.

    function load_assets() {

    if ( isset( $_GET[‘page’] ) && $_GET[‘page’] === ‘evl_options_options’ ) {

    } else {
    // Load styles
    T4P_Pb_Helper_Functions::enqueue_styles();

    // Load scripts
    T4P_Pb_Helper_Functions::enqueue_scripts();

    $editor_screen = ”;
    if ( isset( $_REQUEST[‘t4p_pb’] ) ) {
    $editor_screen = $_REQUEST[‘t4p_pb’];
    }
    if ( is_admin() && $editor_screen != ‘livepagebuilder_editor’ ) {
    if ( isset( $_GET[‘post’] ) && get_post_type( $_GET[‘post’] ) === ‘product’ ) {
    $scripts = array( ‘t4p-pb-addpanel-js’, ‘t4p-pb-jquery-resize-js’, ‘t4p-pb-joomlashine-modalresize-js’, ‘t4p-pb-layout-js’, ‘t4p-pb-placeholder’, ‘t4p-pb-tinymce-btn’ );
    } else {
    $scripts = array( ‘t4p-pb-jquery-select2-js’, ‘t4p-pb-addpanel-js’, ‘t4p-pb-jquery-resize-js’, ‘t4p-pb-joomlashine-modalresize-js’, ‘t4p-pb-layout-js’, ‘t4p-pb-placeholder’, ‘t4p-pb-tinymce-btn’ );
    }
    } else {
    $scripts = array( ‘t4p-pb-jquery-select2-js’, ‘t4p-pb-addpanel-js’, ‘t4p-pb-jquery-resize-js’, ‘t4p-pb-joomlashine-modalresize-js’, ‘t4p-pb-layout-js’, ‘t4p-pb-placeholder’, ‘t4p-pb-tinymce-btn’ );
    }

    T4P_Pb_Init_Assets::load( apply_filters( ‘t4p_pb_assets_enqueue_admin’, $scripts ) );

    T4P_Pb_Helper_Functions::enqueue_scripts_end();
    }
    }

    Thank You.

    John Mekis
    Spectator
    Posts: 6
    January 5, 2018 at 7:49 pm #36114

    This worked. Thank you! Can I delete the old Theme4Press Core installation or should I leave it deactivated? It is still giving me this warning: The following required plugin is currently inactive: Theme4Press Core.

    Priyank
    Spectator
    Posts: 747
    January 6, 2018 at 8:24 am #36120

    Hi,

    Please check your plugin folder name must be same as “t4p-core-composer”.

    Thank You.