Page 1 of 1

Error when adding media to a New Entry

Posted: Tue Mar 29, 2005 10:49 pm
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.

Posted: Wed Mar 30, 2005 11:49 pm
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

Posted: Thu Mar 31, 2005 2:47 pm
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

Posted: Thu Mar 31, 2005 9:53 pm
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.

Posted: Fri Apr 01, 2005 11:03 am
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

Posted: Fri Apr 01, 2005 10:58 pm
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.

Posted: Sun Apr 03, 2005 2:21 am
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

Posted: Mon Apr 04, 2005 5:44 pm
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.