Insert Media - Done Button does not work

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Post Reply
Murando
Regular
Posts: 5
Joined: Wed Dec 17, 2008 4:30 pm

Insert Media - Done Button does not work

Post by Murando »

Hi,

I upgraded to 1.5.3 and moved to another server. Now I cannot insert files from the media library any more. The pictures appear, I can select one but when I click on the "Done" button nothing happens.

No entries in the Firebug log.

Any hint?

- Markus
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Insert Media - Done Button does not work

Post by garvinhicking »

Hi!

Did you upgrade first and move later, or move first and then upgrade, or how did you exactly go on?

Do you get javascript errors when clicking on "Done"? Did you make sure to adapt all paths and upload all files properly, especially templates/default/admin?

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Murando
Regular
Posts: 5
Joined: Wed Dec 17, 2008 4:30 pm

Re: Insert Media - Done Button does not work

Post by Murando »

garvinhicking wrote: Did you upgrade first and move later, or move first and then upgrade, or how did you exactly go on?
First move, then upgrade. Unfortunately I did not check this part before the upgrade.
garvinhicking wrote: Do you get javascript errors when clicking on "Done"? Did you make sure to adapt all paths and upload all files properly, especially templates/default/admin?
No Errors. Just uploaded templates/default/admin again, did not help.
Adapted all paths in Administration/Configuration. Anywhere else?
Thumbs are shown, uploading new picts works fine.

Edit:
Firebug shows errors:

Code: Select all

f['serendipity[alt]'] is undefined
 alt = f['serendipity[alt]'].value.replace(/"/g, """); 
serendipity_editor.js line 324
Regards

- Markus
Murando
Regular
Posts: 5
Joined: Wed Dec 17, 2008 4:30 pm

Re: Insert Media - Done Button does not work

Post by Murando »

Reinstalled Serendipity - now it works.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Insert Media - Done Button does not work

Post by garvinhicking »

Hi!

It might have been related to serendipity_editor.js, maybe even due to a cached version in the browser - or due to some other file. Glad to hear though that you got it working!

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Michiel
Posts: 1
Joined: Sun Sep 12, 2010 2:00 pm

Re: Insert Media - Done Button does not work

Post by Michiel »

Hi,
I've upgraded my 1.2 installation to 1.5.4. yesterday. I've had some problems with the upgrade and ended up doing the sql updates manually to get it right. (It always said I needed to upgrade db script 1.5.3 to 1.5.4 or something, but never the sql scripts before that)
When I try to insert images using the media manager now, I have the same problem: "done" button does nothing. Looking with firebug to the javascript error it also says:

Code: Select all

f['serendipity[alt]'] is undefined
When I comment out the line 324 in serendipity_editor.js it gives me the same error on the next line

Code: Select all

f['serendipity[title]'] is undefined
After commenting this line out too, I get it working.

I've already uploaded all my files again, but the error keeps coming up.
Any idea what the reason of this could be?
Can I leave those 2 lines commented out, or am I going to have problems with it?

Thanks a lot,
Michiel.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Insert Media - Done Button does not work

Post by garvinhicking »

Hi!

Did you try to clear your browser's cache? I can only assume that there might be some javascript/html mismatch...?

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Slideshow Bob
Regular
Posts: 6
Joined: Sat Feb 07, 2009 11:01 pm

Re: Insert Media - Done Button does not work

Post by Slideshow Bob »

Hey there! Unfortunately I have the same problem. Also the same line in that JavaScript file which causes the problem. It also isn't a browser cache issue, since the problematic line of code is part of the serendipity_editor.js file of the latest Serendipity version.

I also just did an upgrade from an older version (forgot the version number) to the current one.

Edit: The following line "title = ...." causes the same error message. If you comment out both lines inserting images works again.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Insert Media - Done Button does not work

Post by garvinhicking »

Hi!

Could either of you give me an editor access to your s9y installation so that I could check out the error?

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Post Reply