The MU forums have moved to WordPress.org

TinyMCE popups do not show (12 posts)

  1. davidpe
    Member
    Posted 17 years ago #

    When adding/editing content the image, link, or any other TinyMCE buttons that use the inline popups, do not open. Basically you see the modal dialog box but it's blank and I get the following javascript error messages:

    Error: uncaught exception: Permission denied to get property Window.tinyMCE
    Error: tinyMCE has no properties
    Error: uncaught exception: Permission denied to get property Window.addEventListener

    I'm pretty sure this issue is very similar to these http://tinymce.moxiecode.com/punbb/viewtopic.php?id=4467 and http://tinymce.moxiecode.com/punbb/viewtopic.php?id=829

    Since Wordpress MU has hacked TinyMCE it's hard to pinpoint where the issue could lie. Let me explain our setup. We have an F5 load balancer on the frontend that uses SSL only when people go to the /wp-admin part of the site. The main blog site is only using the http protocol. The backend web server hosting wordpress MU is obviously listening on both http and https. Any ideas on how to force Wordpress MU to use https for the TinyMCE scripts?

    Thanks

  2. packfill
    Member
    Posted 16 years ago #

    I am having this EXACT PROBLEM.... did anyone find the problem or a fix?? Thanks!!

  3. yvess
    Member
    Posted 16 years ago #

    I had the same error. I fixed it like this (hack):

    I edited the function _print_scripts wp-includes/script-loader.php

    function _print_scripts( $handles ) {
                    global $wp_db_version;
                    if ($_SERVER['HTTPS'] == 'on') $https=True; // added line
            ...
                                    $src = add_query_arg('ver', $ver, $src);
                                    if ($https) $src = str_replace('http','https',$src); // added line
                                    echo "<script type='text/javascript' src='$src'></script>\n";
            ...

    This only works if you use https from apache, if you are behind a load balancer you need to force https every time.
    It would be nice if you had an option in wp-admin to set this, with three options:
    - autodetect
    - force http
    - force https

  4. yvess
    Member
    Posted 16 years ago #

    less error-prone:
    if ($https) $src = str_replace('http://','https://',$src);

  5. drmiketemp
    Member
    Posted 16 years ago #

    It would be nice if you had an option in wp-admin to set this, with three options

    May want to open up a trac ticket on the issue. I'd do it over at the regular wordpress trac since I would think it would be more of a core issue than a mu specific one. (Don't mention mu when you get over there or you'll be treated like a leper.)

    edit: Of course now that I mentioned that, I'm torn on where the ticket should be opened. Can't see regular wordpress using https while I can see it occuring on wpmu.

  6. yvess
    Member
    Posted 16 years ago #

    hmm difficult,
    I think wordpress trac would be the right place.
    I found this ticket which seems to be something similar for css,
    http://trac.wordpress.org/ticket/3646 .
    I could post it in the wordpress trac, with a diff.

  7. drmiketemp
    Member
    Posted 16 years ago #

    I'd open up a new ticket though as it appears that one is resolved. May want to confirm if this exists with regular wordpress.

  8. bgajus
    Member
    Posted 16 years ago #

    I'm having the same problems with tinymce. I am behind a load balancer. Not really sure what I need to do. Can anyone help me out?

  9. bgajus
    Member
    Posted 16 years ago #

    Trying to find out how this was resolved.

  10. yvess
    Member
    Posted 16 years ago #

    Does your load balancer do the https termination?
    Is the domain name of the site with load balancer different from the site without load balancer?

    The problem is that domain for the included scripts AND the protocol should be the same.
    If the problem is https than you should force https in the function _print_scripts() in wp-includes/script-loader.php. After the line "$src = add_query_arg('ver', $ver, $src);" add the line "$src = str_replace('http://','https://',$src);" .

    If the domain is wrong, you need to setup wordpress so that it has the final domain of the load balancer.

    Perhaps this helps...

  11. alexandrehaguiar
    Member
    Posted 15 years ago #

    I get the same error with forefox and wordpress mu 1.5.1.

  12. tdjcbe
    Member
    Posted 15 years ago #

    Did you try the solution discussed in this thread?

    Can you give some specific details?

    http://codex.wordpress.org/Debugging_WPMU

About this Topic