Error when adding media to a New Entry

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Post Reply
Guest

Error when adding media to a New Entry

Post by Guest »

I did something to cause errors when I try to add media to a new entry, and I can't seem to figure out what went wrong.

I go to the administration console and start a new entry. I click on [media] and choose an image from my media library. That part seems to work as it should, though the JavaScript Console does show a series of errors which say:

Code: Select all

Error:  SetCookie is not defined
Source File:  .../serendipity_admin_image_selector.php?serendipity[textarea]=body
I then select the size, alignment, etc. on the serendipity_admin_image_selector.php page and click [Done] and nothing happens. I check back with the JS console and I see an error which says:

Code: Select all

Error: document.forms.serendipityEntry has no properties
Source File: .../serendipity_editor.js
The function in serendipity_editor.js that is referenced in the error looks like this:

Code: Select all

function serendipity_imageSelector_addToBody (str, textarea)
{
    document.forms['serendipityEntry']['serendipity['+ textarea +']'].value += str;
    document.forms['serendipityEntry']['serendipity['+ textarea +']'].focus();
}
I appreciate any ideas or help that you may have.
MoFizzle
Posts: 4
Joined: Tue Mar 29, 2005 9:49 pm
Location: Minneapolis MN
Contact:

Post by MoFizzle »

This original question is mine, and I've since signed up for a proper account.

Just a quick follow-up:
I'm using version '0.8-beta2'
Use WYSIWYG editor: NO
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Please tell which browser you're using. It seems that the JavaScript cannot be properly interpreted.

If possible try with Firefox...

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/
MoFizzle
Posts: 4
Joined: Tue Mar 29, 2005 9:49 pm
Location: Minneapolis MN
Contact:

Post by MoFizzle »

I am using Firefox 1.0.1

I have since gotten this to [sort of] work in IE ( version: 6.0.2800 ) - but it still does not work with Firefox.

Even though it works on IE, I'm now getting javascript errors even when simply viewing my blog http://www.ebeling-family.com/blog/ in IE:

Code: Select all

Error: Access is denied to: .../index.php?/plugin/pngbehavior.htc
After seeing that, I recursively opened up the permissions to my serendipity directory to test it, but it gave me the same error.

I searched for the pngbehavior.htc file which was referenced in the error, and it was found in the directory

Code: Select all

$SERENDIPITY_HOME/plugins/serendipity_event_browsercompatibility/pngbehavior.htc
I'm not sure where to look next.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

In your s9y Configuration you entered "http://ebeling-family.com" as baseURL, so you need to use that URL instead of 'http://www.ebeling-family.com/' to resolve those permission errors.

This error might be the same one you are facing with FireFox in the entries creation. The domain names need to match.

If you want to have them all the same go to s9y configuration and activate the option "autodetect baseURL".

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/
MoFizzle
Posts: 4
Joined: Tue Mar 29, 2005 9:49 pm
Location: Minneapolis MN
Contact:

Post by MoFizzle »

I appreciate your help. Things now seem to be working correctly through IE.

I'm still getting the same javascript error when I use Firefox: document.forms.serendipityEntry has no properties

I guess I'll use IE if I want to add images.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

It works in my firefox, though.

Could it probably be that you're using some UserAgent switcher or some special security settings in your firefox?

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/
MoFizzle
Posts: 4
Joined: Tue Mar 29, 2005 9:49 pm
Location: Minneapolis MN
Contact:

Post by MoFizzle »

Yes. This must be something in my installation of Firefox.

I tried it with Firefox on a different machine and it works just fine. I'll need to do some experimenting with my Firefox to figure out what's causing this. I bet a fresh install of the browser will do the trick if nothing else.

Thanks again for your help. It's greatly appreciated.
Post Reply