• Closed
  • Juergen Zwiener
    Spectator
    January 28, 2018 at 9:20 am #36376

    Hello

    I have the theme installed today and use only one of the plugins described and get this error message anyway

    Fatal error: Uncaught Error: Call to undefined function get_current_screen () in /www/htdocs/w013d2bb/igbmw/wp-content/plugins/t4p-core-composer/core/core.php:975 Stack trace: # 0 / www / htdocs / w013d2bb / igbmw / wp-content / plugins / t4p-core-composer / core / core.php (1007): T4P_Pb_Core-> load_assets () # 1 / www / htdocs / w013d2bb / igbmw / wp-includes / class- wp-hook.php (286): T4P_Pb_Core-> widget_register_assets (”) # 2 /www/htdocs/w013d2bb/igbmw/wp-includes/class-wp-hook.php(310): WP_Hook-> apply_filters (NULL, Array) # 3 /www/htdocs/w013d2bb/igbmw/wp-includes/plugin.php(453): WP_Hook-> do_action (Array) # 4 /www/htdocs/w013d2bb/igbmw/wp-settings.php(450) : do_action (‘init’) # 5 /www/htdocs/w013d2bb/igbmw/wp-config.php(93): require_once (‘/ www / htdocs / w01 …’) # 6 / www / htdocs / w013d2bb / igbmw / wp-load.php (37): require_once (‘/ www / htdocs / w01 …’) # 7 /www/htdocs/w013d2bb/igbmw/wp-admin/admin.php(31): require_once (‘ / www / htdocs / w01 … ‘) # 8 /www/htdocs/w013d2bb/igbmw/wp-admin/widgets.php(10): require_once (‘ / www / htdocs / w01 … ‘) # 9 {main} thrown in /www/htdocs/w013d2bb/igbmw/wp-content/plugins/t4p-core-composer/core/core.php on line 975

    Please help

    Thank you very much

    Priyank
    Spectator
    Posts: 747
    January 29, 2018 at 5:57 am #36378

    Hii,

    Go to theme plugin directory (wp-content\plugins\t4p-core-composer\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.

    Juergen Zwiener
    Spectator
    Posts: 7
    January 29, 2018 at 6:30 am #36379

    Hi

    thx for apply i see the widgets now, but now i have this error mor then twice 🙂

    value encountered in /www/htdocs/w013d2bb/igbmw/wp-content/plugins/t4p-core-composer/core/core.php on line 1010

    I copied the syntax above in the core.php

    regards

    Juergen Zwiener
    Spectator
    Posts: 7
    January 29, 2018 at 6:53 am #36380

    Update

    now it´s like this

    Warning: A non-numeric value encountered in /www/htdocs/w013d2bb/igbmw/wp-content/plugins/t4p-core-composer/core/core.php on line 981

    Priyank
    Spectator
    Posts: 747
    January 29, 2018 at 9:05 am #36382

    Hi,

    We need to your wp-admin details in private reply to check your issue.

    Thank you.

    Juergen Zwiener
    Spectator
    Posts: 7
    January 29, 2018 at 9:17 am #36383
    This reply has been marked as private.
    Priyank
    Spectator
    Posts: 747
    January 29, 2018 at 11:30 am #36385

    Hii,

    Please give me site URL for check issues.

    Thank You

    Juergen Zwiener
    Spectator
    Posts: 7
    January 29, 2018 at 11:54 am #36386
    This reply has been marked as private.
    Juergen Zwiener
    Spectator
    Posts: 7
    January 30, 2018 at 3:51 am #36387
    This reply has been marked as private.
    Priyank
    Spectator
    Posts: 747
    January 30, 2018 at 6:57 am #36388

    Hii,

    We can find issues, it errors in the load_assets function. “single-quote” issues in that function, so it can’t work.
    We can change this code but not access to change the code in the plugin, so you change below code on wp-content\plugins\t4p-core-composer\core\core.php.

    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

    Juergen Zwiener
    Spectator
    Posts: 7
    January 30, 2018 at 11:48 am #36390
    This reply has been marked as private.