• theheckler

    (@theheckler)


    Hi,

    have just upgraded to 3.1 but am having the same problem as many others with the vanishing visual editor. So far I have tried removing the plugins one by one and switching on/off the “disable visual editor” option from user profile. What else can I try?

    am using version 3.1 on google chrome.

    thankyou

Viewing 15 replies - 31 through 45 (of 71 total)
  • kbarncat

    (@kbarncat)

    The only two plug-ins I use are Askemet and Subscribe to Comments. Granted – and I don’t know it anybody else has had this problem, Askemet has been having problems for about two months now, reporting that it couldn’t check some messages and would be back in 3 or 9 or 28 days to recheck. But I did the re=name of the plug-ins folder protocol and de-activated it manually – all those things, and it made no difference in the behavior. Are any of you Mac people? How do you check for TinyMCE support in plug-ins,? Just so I know. Esme thinks that this is the problem somehow – the interface with TInyMCE. She also suggested that it could be a server problem.

    I feel so all alone here, with some of you finding your conflict. If I understood more about how this program worked, I might be able to go searching myself. But –

    higltypig

    (@higltypig)

    yeah mac person here.

    Problems in Firefox, Safari and chrome.

    kbarncat

    (@kbarncat)

    Not so alone, then.

    Cubosystems

    (@zaidhaque)

    I had the same problem while upgrading a company blog site. I had to get my hands dirty by going into code level of WordPress and started debugging. I did a quick fix to get it working ultimately. Pls take a copy of your file before you do so if it doesn’t work you can always replace it back. Please note that I did this after me upgrading it to 3.1 but you may try it out with others if you have same problem.

    – Under ‘wp-includes’ directory open ‘general_templates.php’. Look for ‘function user_can_richedit()’ and replace the whole function with following code. I think the line numbers will be somewhere from 1734 to 1750.

    ` function user_can_richedit() {
    global $wp_rich_edit, $pagenow, $is_iphone;

    if ( !isset( $wp_rich_edit) ) {
    if ( get_user_option( ‘rich_editing’ ) == ‘true’ &&
    !$is_iphone && // this includes all Safari mobile browsers
    ( ( preg_match( ‘!AppleWebKit/(\d+)!’, $_SERVER[‘HTTP_USER_AGENT’], $match ) && intval($match[1]) >= 420 ) ||
    !preg_match( ‘!opera[ /][2-8]|konqueror|safari!i’, $_SERVER[‘HTTP_USER_AGENT’] ) )
    && ‘comment.php’ != $pagenow ) {
    $wp_rich_edit = true;
    } else {
    $wp_rich_edit = false;
    }
    }

    // My code as a fix
    if ( get_user_option( ‘rich_editing’ ) == ‘true’ )
    $wp_rich_edit = true;

    return $wp_rich_edit;
    // return apply_filters(‘user_can_richedit’, $wp_rich_edit);

    }

    After replacing the code make sure you Edit user profile and untick “Disable the visual editor when writing” option. I.e Select Users -> Edit User and then you will see top most field with checkbox. This functionality of enabling/disabling visual editor for the user will work afterwards.

    Please make sure you would test it properly as I don’t know whether it would have any other effect to other parts of the WP or any other functionality. As per my requirement this worked well and I didn’t really dig behind actual root cause due to lack of time.

    kbarncat

    (@kbarncat)

    Wow. You know, when they say code is poetry, they’re right. I can write a little, but as a mom of four with a huge load of family-history focus and about a dozen other things I actively do – plus a business, I can’t dive into this stuff the way I could. I could lose myself in it. I envy you. I envy the power you have to understand and act independently. And I love code poetry. When I get back from feeding the horses and finish the dang keep-me-from-dying treadmill, I’ll do this and see. With a backup.

    Thank you so very much.

    Thread Starter theheckler

    (@theheckler)

    @cubo

    tried your solution but getting a syntax error message on line 1740. it says:

    Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/content/w/a/y/wayneflask/html/wp-includes/general-template.php on line 1740

    any ideas? thanks.

    kbarncat

    (@kbarncat)

    @cubo

    Okay. Your code is identical to the original code except in two aspects:

    ` function user_can_richedit() {

    —You have that little backward single quote in front of function

    And that section following //my code is a fix

    Am I correct?

    I pasted the section that was new, commenting out he following “return apply line”
    and left out the first little quote thing.

    Nothing happened. I’m in the same place.

    @general

    One thing I haven’t mentioned in the behavior is this:

    When you open the edit screen – mine opens the visual editor by default. The screen is white. I’ve mentioned that somehow, the font is turned white, and so nothing appears to be on the screen. If you select, you can see the content, which is html encoded. (no edit buttons above the content field)

    If I switch to the html editor, I see exactly the same content (with buttons above the field, but only the basic ones – you cannot ask for more; that button is disabled) but in black font.

    If I THEN switch back to visual editor, I can see the content in black font. But it is still just the html encoded content.

    I don’t know if this will give anybody a hint as to what’s happening here.

    Also – that moment when the visual editor popped on really bothers me. I don’t see any reason why it would suddenly pop in, and then pop out.

    You guys who understand this stuff – PLEASE talk to me. Are you giving up?

    kbarncat

    (@kbarncat)

    @Those who know

    Could there be a conflict in the TinyMCE themes somehow? Some graphic element that is conflicting with – but I didn’t change anything about the layout of Twenty Ten.

    At least now I know where tinyMCE is. Found it myself. Much good does it do me. At least I know it’s in the package.

    higltypig

    (@higltypig)

    I see exactly the same thing kbarncat.

    Is this only happening on macs?

    kbarncat

    (@kbarncat)

    I wish I knew. I don’t really know how WordPress works. Is there a staff somewhere who is working on stuff like this? I wish somebody would tell us if there is, and if they are still trying, and what they’ve learned.

    damfino52

    (@damfino52)

    I moved my site to the root directory and visual editor has disappeared completely. Tried everything and getting nowhere.

    3.0.4

    I’m sure it is some code that I need to change in one of the files. Please help

    kbarncat

    (@kbarncat)

    @damfino

    You may want to start a new thread on this. We’re all howling about upgrading to 3.1 and having the editor malfunction.

    wpnovice11

    (@wpnovice11)

    I think this may be the answer to my issue today – I only downloaded it today!!! Thought I was going mad!

    The dashboard stylesheet is not like I’ve seen on someone elses pc.

    I’ve also got broken links taking me to a http404 error (I’m uncertain if I’ve got two separate or connected issues if anyone can advise?).

    I’m on Windows by the way so it’s not limited to Macs only.

    Cheers for any advice

    kbarncat

    (@kbarncat)

    Is this your first experience with wordpress, then? When it works, it’s a beautiful thing. I’ve NEVER had this much trouble with it before. In fact, very little trouble at all. It’s been very stable. But this is killing me. Maybe you should see if you can download 2.5 or 3.0 instead. I’m not sure that 3.1 is all that worth it.

    damfino52

    (@damfino52)

    Forget all the plug in nonsense. These things are always CODE related.
    Thanks to help on another post, found this code. Put it into my config file (underneath the security keys) and hey presto, visual editor is back!!

    Here is the code
    define(‘CONCATENATE_SCRIPTS’, false );

    No idea what it means but it might help some of you get your Visual Editor back

Viewing 15 replies - 31 through 45 (of 71 total)
  • The topic ‘Missing Visual Editor’ is closed to new replies.