Edit listing front end function doesn't work

This topic contains 4 replies, has 3 voices, and was last updated by  Kiran 7 years, 9 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #382081

    edge
    Buyer
    Post count: 191

    Hi,

    For some reason the edit listing function in the front end does not work.

    If i click on “edit listing” i land on half loaded site. see video here: https://screencast.com/t/DFxMPdZeAiUh

    Can you pls help whats wrong here?

    Regards
    Gerald

    #382082

    edge
    Buyer
    Post count: 191
    This reply has been marked as private.
    #382204

    Paolo
    Site Admin
    Post count: 31211

    Hi,

    when the page doesn’t load, it means that there is a PHP eroor. Do you have access to the server error log?

    If not, please provide FTP credentials and we will check.

    Thanks

    #382205

    edge
    Buyer
    Post count: 191
    This reply has been marked as private.
    #382239

    Kiran
    Moderator
    Post count: 7069

    Hi Gerald,

    There is a plugin “Shortcoder” which causing conflicts here. When enabled debug there was PHP error in log: “PHP Fatal error: Call to undefined function get_current_screen() in …/wp-content/plugins/shortcoder/admin/sc-admin.php on line 357”

    The function get_current_screen() should be used only in admin area. But Shortcoder uses it in front end as well via hooks mce_buttons & mce_external_plugins.

    So either you have to contact plugin author or use following temp solution.
    Copy following code snippet in your theme functions.php for temporary fix.

    
    
    // Fix: PHP Fatal error:  Call to undefined function get_current_screen()
    function gd_custom_init() {
        if ( class_exists( 'Shortcoder_Admin' ) && !is_admin() ) {
            remove_filter( 'mce_buttons', array( 'Shortcoder_Admin', 'register_mce_button' ) );
            remove_filter( 'mce_external_plugins', array( 'Shortcoder_Admin', 'register_mce_js' ) );
        }
    }
    add_action( 'init', 'gd_custom_init' );

    Thanks,
    Kiran

Viewing 5 posts - 1 through 5 (of 5 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
20% Discount Offer
Hurry! Get your 20% discount before it expires. Get 20% Discount