Forums

[resolved] [Plugin: NextGEN Gallery] Visual Editor Breaks in 2.1 (4 posts)

  1. MSGQuixo
    Member
    Posted 4 years ago #

    I've seen a few posts on related issues, but just can't find an answer to my situation.

    When NextGEN is activated, the visual editor breaks. The Visual and Code tabs show but do not work. When NextGen is unactivated, the editor returns.

    Our host offer version WP 2.1 but I suppose that some settings may not be correct. They are very responsive, but I'm not sure what to request. I've got NextGen 0.96. It is my first and only install.

  2. Alex Rabe
    Member
    Posted 4 years ago #

    Check your broswer for JS error and clear one time also the cache

  3. MSGQuixo
    Member
    Posted 4 years ago #

    Thanks Alex (and thanks for everything!)

    2 errors. They are:

    Error: invalid flag after regular expression
    Source File: wp-includes/js/tinymce/tiny_mce_gzip.php?ver=20061113&theme=advanced&language=&plugins=inlinepopups%2Cautosave%2Cspellchecker%2Cpaste%2Cwordpress%2Cbuttonsnap%2C&lang=&index=0
    Line: 2872, Column: 11
    Source Code:
    Warning: file_get_contents(/usr/local/www/www.....com/data/wp-includes/js/tinymce/plugins/editor_plugin.js): failed to open stream: No such file or directory in /usr/local/www/www.....com/data/wp-includes/js/tinymce/tiny_mce_g

    AND

    Error: realTinyMCE is not defined
    Source File: /wp-includes/js/tinymce/tiny_mce_gzip.php?ver=20061113
    Line: 43

    And, yes, I cleared browser caches. Are there others that should be cleared?

  4. MSGQuixo
    Member
    Posted 4 years ago #

    Ok, I can't believe I fixed it. Disclaimer: I'm a designer and not a programmer, but here's what I found...

    The error was reporting that it could not find
    wp-includes/js/tinymce/plugins/editor_plugin.js

    This is a file that does not exist. A routine that searches for all the plugins in the plug-ins subfolders was also looking for editor_plugin.js in the main plug-in directory. I think once it had finished all the plug in directories, it would get a null result and then search in the main directory.

    Here is my fix:
    In wp-includes/js/tinymce/tiny_mce_gzip.php

    Replace:

    if ($pluginFile)
    TinyMCE_echo(file_get_contents($pluginFile));

    with

    if ($pluginFile && $plugin)
    TinyMCE_echo(file_get_contents($pluginFile));

Topic Closed

This topic has been closed to new replies.

About this Topic