WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] 2.5 and TinyMCE not working in visual mode (39 posts)

  1. ian_spare
    Member
    Posted 6 years ago #

    First, I've got to say the responses that have been posted when people have tried to report this have been poor. The responses have just been a simple repetition of the same "solutions" which have been nothing of the sort.

    Second, there's clearly a whole class of problems here and I'm focussed on the one I have for obvious reasons.

    So, how to verify you've the same problem. Use some sort of debugger tool like firebug etc, Peter Hengl gives a nice description here : http://wordpress.org/support/topic/164990

    The first thing to establish is that it's not a cache problem, at least not in the way that keeps getting posted. For a start, browser and network caches don't work like that. What I did find was that different files were returned using different clients, any browser (opera, safari, firefox) over three OS'es (Mac OSX, XP, Linux) returned a "cached" file that didn't reflect debugging changes I made on the server, it was instantly obvious from a network trace that this wasn't held in any browser cache. However, curl and wget instantly reflected the debug code, someone should have tried that before blaming caching as it's obvious when you look at the code in tiny_mce_config.php why that's going to be different. In fact, looking at the code I'd guess this would also work correctly (this far) in IE5.

    To fix this, remove the files from wp-content/uploads/js_cache and you'll start getting an up to date copy of the mce code. NOTE, not everyone will have this issue as such, the cache code is broken in a way I've not fully analysed so this is a nuisance rather than the root cause.

    Next, to the source of the real problem. The debugger instantly spots this, it's related to some I18n code and follows back to the get_locale function. The function is weak and used weakly in places which is why there's a problem. This problem will most likely effect people not using 100% English language environments like Peter who's German or me with Swiss/French locale, in fact, Peter's nationality already made me guess the I18n code was broken.

    The simple fix is to go to your wp-config file and set the WPLANG variable to something suitable. For me, "en" is fine.

  2. eliesheva
    Member
    Posted 6 years ago #

    Thank you! I had been having the problem and did what you said regarding:

    "To fix this, remove the files from wp-content/uploads/js_cache and you'll start getting an up to date copy of the mce code."

    Best of luck to everyone else.

  3. rat86
    Member
    Posted 6 years ago #

    don't work!

  4. owencutajar
    Member
    Posted 6 years ago #

    Woohoo .. worked for me .. my WPLANG was set to " ", I changed it to "en" and now it's working !!

  5. rat86
    Member
    Posted 6 years ago #

    i have setted to english but dont work.
    now i have found italian solution for this problem on this web site:

    http://rat86.netsons.org/blog/?p=413

  6. anotherperson
    Member
    Posted 6 years ago #

    This doesn't work for me either.

  7. donnye
    Member
    Posted 6 years ago #

    where do you set it to english? what does the code look like. I am not a programmer so I need the name of the file to edit and the line of code.

  8. Andrew Ozz
    WordPress Dev
    Posted 6 years ago #

    @donnye normally you don't need to change this setting if your language is English. However if you have multi-language plugin(s) installed or an internationalization script, there's some info:
    http://codex.wordpress.org/Editing_wp-config.php#Language_and_Language_Directory

  9. iCrucified
    Member
    Posted 5 years ago #

    deleting the js_cache worked for me too.
    Thanks!

  10. Movieheart
    Member
    Posted 5 years ago #

    I have tried to delete the js_cache and set the WPLANG to 'en' but none of the things worked for me.

    Anyone who know other solutions for this problem?

  11. rat86
    Member
    Posted 5 years ago #

    have you see the solution on my blog?
    go to
    [path blog]/wp-includes/js/tinymce/

    Edit file tiny_mce_config.php
    'compress' => true
    with
    compress' => false.

    remove files on dire

    [path blog]/wp-content/uploads/js_cache/

  12. passegua
    Member
    Posted 5 years ago #

    to rat86:
    doesn't work

  13. rwhaun
    Member
    Posted 5 years ago #

    My problem was a server 500 error that prevented several PHP files that generated tinyMCE JS from running. My hosting service requires PHP files to not have Group and Everyone "WRITE" permissions (755). When I uploaded the WordPress 2.5.1 files the entire wp_includes folder came across at full rights (777). Once I change the permissions (recursively) to 755 it all worked.

  14. webjok
    Member
    Posted 5 years ago #

    don't work!!

  15. Tardevil
    Member
    Posted 5 years ago #

    I have tried every fix in all the forums I can find and nothing works. The visual editor is broken. I can't add pictures. I can't update existing files. Very frustrating. I use godaddy and I wonder if they did something.

  16. amechad
    Member
    Posted 5 years ago #

    Did you find a solution? I'm also using Godaddy and 2.5.1 and nothing seems to be working. I tried // out the compression and that did something to the /wp-includes/js/tinymce/tiny_mce_config.php file (before it was displaying the TinyMCE logo and now it's displaying the code in a bungled manner - it's all there, I think, but not separated line by line and I can't figure that out since in Wordpad it opens normally (but not Notepad).

    My URL is http://israeli-wine.org

  17. skeezicks
    Member
    Posted 5 years ago #

    Maybe if this thread were posted elsewhere it might do some good: Have you looked at this url?

    http://tinymce.moxiecode.com/punbb/index.php

  18. inspired888
    Member
    Posted 5 years ago #

    Tried everything suggest here. None of it worked unfortunately.

    I don't even have a js_cache folder -- and I'd love to know why and what that means if I don't have one.

    The I tried the solution from bonheddwr over on another thread (here) just above here by about two comments.

    I had this problem, and tried everything suggested above, then noticed that chmod for the following file was 644 instead of 755 wp-includes/js/tinymce/tiny_mce_config.php

    This was the answer for me
    THIS WORKED... Nice... which I tried that first.

    Thanks heaps to everyone that has posted their replies to this thread. Team work works.

  19. Hraedran Azselendor
    Member
    Posted 5 years ago #

    If You're on Godaddy's servers and using the free hosting, don't expect the visual editor to work. You'll need to upgrade to paid hosting to remove the banner ads that interfere with the tinymce javascript.

  20. ranyliq
    Member
    Posted 5 years ago #

    hi,Azselendor. i am using godaddy free, are u sure thats is the main problem? i have try everything, Nothing work. are using free hosting too?

  21. Hraedran Azselendor
    Member
    Posted 5 years ago #

    Yep.

    I have two budget clients that insist upon godaddy as their hosting (ugh...) and neither worked until one of them upgraded to paid hosting

  22. bcodding
    Member
    Posted 5 years ago #

    Error "tinyMCEPreInit.start not a function" in FF3, firebug. WordPress 2.6.2, fresh install, on php 4.4.8.

    My problem was a known bug with PHP's realpath() (bugs.php.net/bug.php?id=34552), called in wp-includes/js/tinymce/tiny_mce_config.php:20.

    Realpath will output a null string if any ancestor directory of the file is not readable -- so folks running out of home directories - this is likely your case.

    My fix - change tiny_mce_config.php:17

    function getFileContents($path) {
    
    //	if ( function_exists('realpath') )
    //		$path = realpath($path);
    	$path = dirname(__FILE__) . "/" . $path;

    (please forgive multiple postings)

  23. juliageek
    Member
    Posted 5 years ago #

    I have solved this problem for myself after hours and I just want to share this in case it helps someone:

    I

    Edited file tiny_mce_config.php
    'compress' => true
    with
    compress' => false.

    Still didn't work. I then realised that /wp-includes/js/tinymce/tiny_mce_config.php
    had some header errors that pointed to the wp-config.php file. All that had happened was that the wp-config.php file ended with two extra lines after ?>.

    Got rid of the two extra lines and ta-da! visual editor works. I don't think I put the two extra lines in, so perhaps this problem is more universal? let me know!

  24. silverfox47
    Member
    Posted 5 years ago #

    I hunted through all the posts to fix this and it was the en WPLANG variable that did it for me in the wp-config file

    Thanks for the help - by the way this problem was also in version 2.6.2

  25. Aloner
    Member
    Posted 5 years ago #

    The original solution of ian_spare helped me about two weeks ago, but I experienced the same issue this week and were unable to get WYSIWYG to work following any of the instructions in this thread and other threads considering the issue.

    I tried to disable installed plugins one-by-one and managed to solve my problem. The plugin that caused it was "XHTML to HTML" plugin.
    http://www.kilroyjames.co.uk/2008/09/xhtml-to-html-wordpress-plugin

    So, if you have the same issue and none of advices helps, check if this plugin is installed and try to disable it.

  26. Vizoris
    Member
    Posted 5 years ago #

    Thank)
    admin

  27. buscamos
    Member
    Posted 5 years ago #

    i just want to say THANK YOU!!! i had just made a post about this regarding my website organic makeup blog. all I did was clear out the js_cache folder & now it works!

    Am I supposed to put some kind of replacement file in there now? looks like the same one re-appeared after deleting old file, getting out, & then going back in. I apologize, but I am no coder.

  28. buscamos
    Member
    Posted 5 years ago #

    OK, it worked, but only for awhile. It went right back to doing the same thing again. It works if I keep clearing out that js_cache file. So, I checked my wp_config.php file & sure enough, there was no WPLANG set, so I set it to "en". Logged back into my blog & editor still wasn't working.

    deactiveated all plugins & started working again. Then I went back in & cleared teh js_cache again, just because I have no clue WTF I'm doing. Now i have to activate plugins one by one to see if one of them is still causing the problem. I don't have the "XHTML to HTML" plugin, so it must be another one. I'll let people know if I find anything.

  29. timclark
    Member
    Posted 5 years ago #

    I have lost my Visual editor buttons since upgrading to 2.6.3 and cannot find any solution when I view source code for my /wp-admin/post-new.php I get this come up in the code.
    src='http://www.the-bathroom-designer.co.uk/wp-includes/js/jquery/jquery.schedule.js?ver=20'></script>
    <script type='text/javascript'>
    /* <![CDATA[ */
    wpAjax = {
    noPerm: "You do not have permission to do that.",
    broken: "An unidentified error has occurred."
    }
    /* ]]> */

    I have tried all of the above has anyone got any good ideas what this could be as it is driving me INSANE.....

  30. rndavis
    Member
    Posted 5 years ago #

    Thank you! It worked for me.

Topic Closed

This topic has been closed to new replies.

About this Topic