• Resolved Ettore Gabrielli

    (@ettoregabrielli)


    With version 4.0.10 my editor was broken, i can’t insert link or image at well. Cause you have not charge old 4.0.x version in archive, i had to turn back to 3.8.8.

    Everytime you make an update there are this problems. It’s grotesque.

Viewing 8 replies - 16 through 23 (of 23 total)
  • Plugin Author NextScripts

    (@nextscripts)

    leonot, please try to clear your browser’s cache or try another browser.

    I have done both. Repeatedly, actually. No effect. As I said, simply disabling SNAP makes all the editing problems go away. I’d prefer to be able to use SNAP. ??

    Plugin Author NextScripts

    (@nextscripts)

    Can I see a screenshot of your JavaScript error?

    I am really having hard time understanding how could you be getting “nxs_updateGetImgsX” not defined error in 4.0.11, since function nxs_updateGetImgsX and all calls to it were removed from 4.0.11.

    You either don’t have 4.0.11 or you still have old (pre 4.0.11) php or javascript files stuck in some cache.

    Please try to delete /social-networks-auto-poster-facebook-twitter-g/ from /plugins/ and install it again. (This will remove or anyhow affect your configured networks or settings)

    OK, I downloaded a fresh copy of the plugin. I then grepped for the offending function:

    grep -r nxs_updateGetImgsX *
    inc/nxs_functions_wp.php:// if (!function_exists(“nxs_tiny_mce_before_init”)) { function nxs_tiny_mce_before_init($init) { $init[‘setup’] = “function(ed) {ed.on(‘NodeChange’, function(e){nxs_updateGetImgsX(e);});}”; return $init; }}
    js-css/js.js://function nxs_updateGetImgsX(e){ } jQuery(document).on(‘change’, ‘#content’, function( e ) { nxs_updateGetImgsX( e ); });
    nxs_functions.php: if (substr($tinymce_version,0,1)<4) $init[‘setup’] = “function( ed ) { ed.onChange.add( function( ed, e ) { nxs_updateGetImgsX( e ); }); }”; else
    nxs_functions.php: $init[‘setup’] = “function(ed) {ed.on(‘NodeChange’, function(e){nxs_updateGetImgsX(e);});}”;
    nxs_functions.php: function nxs_updateGetImgsX(e){ }
    nxs_functions.php: jQuery(document).on(‘change’, ‘#content’, function( e ) { nxs_updateGetImgsX( e ); });
    nxs_functions.php: function nxs_updateGetImgsXX(e){
    readme.txt:* Bug Fix – [Critical] Javascript Error – nxs_updateGetImgsX is not defined
    readme.txt:* Bug Fix – Javascript Error nxs_updateGetImgsX.

    As you can see there are still many references in the code.

    Test: edit a post, double click on a word to highlight it, and then CMD+K (or the “make a link” toolbar button).

    Screen shot with plugin enabled, where the link operation fails: https://www.dropbox.com/s/qwx1s6rlplxf3f6/with.png?dl=0

    Screen shot with plugin disabled, where the link operation works:
    https://www.dropbox.com/s/n91k0qsppto9ug1/without.png?dl=0

    Please advise.

    Plugin Author NextScripts

    (@nextscripts)

    As you can see they are commented out.

    Could you please click on the error link and let me know what do you have at the line 4711

    Thank you.

    Well, actually clicking on that gets next to nothing useful: https://www.dropbox.com/s/6ezi9i5gg7x1y8o/post.png?dl=0

    However the code in WordPress’s post.php around that line is:
    https://www.dropbox.com/s/uxsgluz15bl7kcf/code.png?dl=0

    4718 $pages = $wpdb->get_results($query);
    4719
    4720 if ( empty($pages) ) {
    4721 /** This filter is documented in wp-includes/post.php */
    4722 $pages = apply_filters( ‘get_pages’, array(), $r );
    4723 return $pages;
    4724 }

    FWIW: to me it looks like in the plugin file nxs_functions.php there do appear to be references that have not been commented out.

    Plugin Author NextScripts

    (@nextscripts)

    nxs_functions.php file should not be there at all. it was part of 3.X plugin and it was renamed to nxs_functions_wp.php and moved to /inc/ folder. It’s not used and it’s not included in the project anymore. It’s just wasn’t deleted from SVN during the update for some reason. We will take care of that, but it should not cause this issue.

    Please open a support ticket with your site info. It seems like we need to take a look at your environment.

    https://www.nextscripts.com/support/

    Well, even MORE research at this end points to a caching issue. WP-Rocket, specifically. Looks like it’s not enough to say “Clear Cache”, but rather “Clear OPCache” as well. That SEEMS to have taken care of it. I’ll report back if not, but thank you for your pointers and patience. ??

Viewing 8 replies - 16 through 23 (of 23 total)
  • The topic ‘Editor broken’ is closed to new replies.