06.12.2008

11:17 pm

WP 2.5.1 Media Gallery

Okay, so I’m having some funky issues going on with Wordpress 2.5.1. I’ve been doing a lot of blog developments lately and one of the blogs I’m working on was having issues inserting images through the Media Gallery. Now, the really weird thing is that it’s only happening in Firefox. I can insert images through Camino and Safari with absolutely no problem. Essentially, what happens though is that when I click “Insert Into Post” from my browser, the Media Gallery pop-up goes completely blank white and I can do nothing but click the “x” to close the window. Additionally, in Firefox (I’m on version 2.0.0.14), the lightbox-style black overlay in the background of the Media Gallery doesn’t show up whereas it does in both Camino and Safari. Bizarre, will edit this when I figure out wtf is going wrong.

Additionally, here’s the error that Firebug caught if anyone knows what the hell it means or it might help fix the issue:

uncaught exception: Permission denied to get property Window.send_to_editor
tb_show("", "[URL REMOVED FOR PRIVACY]“, false)thickbox.js (line 230)
tb_init()thickbox.js (line 26)
e(Object type=click target=img currentTarget=a.thickbox)jquery.js (line 11)
e()

[edit]

Okay, it appears that there’s a cross-domain issue caused by the “www” in front of WordPress domains. For example:

http://www.domainname.com/wp-admin/post.php?action=edit&post=28 and
http://domainsname.com/wp-admin/post.php?action=edit&post=28

are treated different and that’s why the error was showing up in Firefox. If I had just domainsname.com, then Insert Image works, but with the www. in front it did the blank white screen thing. Safari also went blank with the www in front of it. Camino though, for some reason, appears to go to the www-free domain automatically. That is, I tried entering “www” in front of the domain and it would convert it back to the www-free domain. Weird.

It appears that the WordPress URL/Blog Url under the “General” tab in “Settings” determines which domain it is that you can upload images from, so if you’re having these issues, make sure you double-check the domain that your WordPress blog is configured to and that might fix the issues.

Subscribe    |    Digg    |    Del.icio.us    |    Reddit

Previous Post: Recent Photos || Next Post: R.I.P. George Carlin

Get a Trackback link

No Comments Yet

You can be the first to comment!

Leave a comment