• Hello dear members.
    When some error occuring WPH breaks standart json output of any plugin by uncoditionaly outputting debug messages.

    it outputs

    “<b>WP Hide</b> – Unable to create environment static file. The system returned the following”

    prior to any content and since so it breaks save functionality made by ajax
    i beleive that warning should be outputed only on non-ajax call which can be checked by DOING_AJAX constant.

    i’ve made a quick and quirk fix for that but it shoul be fixed in core.

    
    function pre_option_wph_process_set_static_environment_errors($opt){
        if (DOING_AJAX) return [];
        else return $opt;
    }
    add_filter('pre_option_wph-process_set_static_environment_errors', pre_option_wph_process_set_static_environment_errors);
    
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor Maya

    (@tdgu)

    Hi,
    Thanks for your feedback.
    I still don’t know how the message got outputted in your JSON response, as the error texts are actually printed on admin_notices hook.
    Possible there’s a plugin which changes that behavior, can you try to disable one by one and identify which produce the issue?

    Thanks

    Seems like I am not the only one having problems with ajax not functioning since WordPress 5.5 version. I am using the PRO version of wp hide on Apache, everytime I activate rewrites it is causing the admin interface to break, some scenarios are:

    Media library not showing.
    Plugin settings tabs not clickable.

    When rewrite is deactivated, everything is working fine but once rewrite is activated again, im back with the dilemma.

    Plugin Contributor Maya

    (@tdgu)

    Hi @bmwebcorp,
    Ensure you ask support at the plugin website through the contact form and someone will assist fast. This forum is for the free WP Hide.

    Also, your issue appears to be different than current threat.

    Thanks

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Breaks AJAX guttenberg editor’ is closed to new replies.