WordPress.org

Make WordPress Core

Opened 6 years ago

Closed 6 years ago

#6761 closed defect (bug) (invalid)

tinymce pop up functions fail under ssl

Reported by: kirblam Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: TinyMCE Keywords:
Focuses: Cc:

Description

Using Wordpress 2.5 on a LAMP setup, applied changesets up to 7680 to see whether that helped, but still failed.

Tinymce will show up in WP 2.5 however, clicking the Image button, Charmap - anything that requires a popup - fails under ssl. From what I can tell, the baseURL isn't set properly in editor_template.js. At least, if I hard code the https address in editor_template in a particular mce function, the window renders properly.

For example:

url:'https://<server + directory>/wp-includes/js/tinymce/themes/advanced/charmap.htm'
a

s opposed to

url:tinymce.baseURL+'/themes/advanced/charmap.htm'

The former works, the latter produces bugs detailed below.

Screenshots should tell the whole story.

Tinymce in https environment:
http://www.kirbymixedmedia.com/images/Picture2.png

Charmap button clicked - popup blank. Firebug notes 2 errors in lower right
http://www.kirbymixedmedia.com/images/Picture3.png

Firebug's account of the problems:

  1. "uncaught exception: permission to denied get property Window.tinymce"
  2. This.params has no properties - tiny_mce_popup.js (line 47)

http://www.kirbymixedmedia.com/images/Picture4.png

If I right-click in the popup itself and say "Show only this frame", the URL isn't ssl based:
http://www.kirbymixedmedia.com/images/Picture5.png

Change History (2)

comment:1 kirblam6 years ago

  • Milestone changed from 2.7 to 2.5.1

comment:2 azaozz6 years ago

  • Milestone 2.5.1 deleted
  • Resolution set to invalid
  • Status changed from new to closed

What is your setting in "WordPress address" (not "Blog Address")? All your URLs look like this:

https:///wp-admin/post.php?...

that means you probably haven't set it.

The baseurl setting for TinyMCE is derived from your "WordPress address" setting, so it would fail if that's not set. If your LAMP wasn't on localhost, you wouldn't be able to access the site too.

Closing as invalid for now, if the same happens after WordPress is set up properly, feel free to reopen it.

Note: See TracTickets for help on using tickets.