cannot add image to entry

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
IanR
Posts: 1
Joined: Fri Aug 05, 2005 7:45 pm

cannot add image to entry

Post by IanR »

I can upload images and view in media library.

When I try to insert into new entry I can't, The first window 'select file to insert' is no problem, however when the second window 'You chose ...' I click the 'done' button and nothing happens..
The image size is 100-200kb.

I'm using 0.8.3 any ideas?

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

Re: cannot add image to entry

Post by garvinhicking »

Please look at your browser's JavaScript output, there seems to be an error.

The image can only be inserted if you did not change the parent window of the popup, and if your browser's javascript is activated and working. Which browser do you use, BTW?

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/
Guest

Post by Guest »

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

Post by garvinhicking »

Please try to use Firefox and open the JavaScript console to look out for errors. Or tune your InternetExplorer so that it displays Javascript errors. You did make sure to not close the parent window with the edited entry inside of it?

Are you using the WYSIWYG editor?
# 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/
Guest

Post by Guest »

I have exactly the same problem.
This was not happenning when I use 0.7 version.
I'm using 0.8.3 now with IE
My Javascript error:

Line 182
Char 5
Error: 'XHTML11' is undefined
Code 0

This is the same with or w/o WYSIWYG

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

Post by garvinhicking »

Are you using any proxies or WebWasher like software? The only mention of "XHTML11" in the serendipity_editor.js file is this:

Code: Select all

if (XHTML11) ...
And then the file "serendipity_define.js.php" is called where XHTML11 variable is defined. Can you see if that file exists and what do you get when you call that file via HTTP?

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/
Guest

Post by Guest »

I'm not using any WebWasher like software.
I ddin't set proxy by myself, but I'm not sure if my ISP does.
The file "serendipity_define.js.php"does exist in my program folder.
I put
http://xxxxxxxx.net/cblog/serendipity_define.js.php
in my browser and I was asked if I need to open or download it.
Is that what you wanted me to try?

Another thing, I did get to put a picture on once, but just once.
All the settings are the same. Immediately before and after that
I couldn't do it. It sounds like something being updated all the time
is the culprit. I have no idea actually...

Thanks

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

Post by garvinhicking »

You should look at the contents of your serendipity_define.js.php (so download the file and open it with an editor). Or tell me the full URL to it and I'll look at it myself.

If the problem persists I might need a simple editor account to your s9y installation to look if I can reproduce it...

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/
Guest

Post by Guest »

This is my serendipity_define.js.php

<!-- // Hide from older browsers
// This page serves to carry through any variables without having to parse a complete .js file as .php

var XHTML11 = false;

// -->

Both of my home & office computer have this problem, so I guess it is not due to my browser settings?
Thanks.

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

Post by garvinhicking »

Hm, well...the JavaScript file is completely in order. This is very strange - would you be willing to give me a guest account on your s9y blog to check the image insertion? If you want to, please contact me via PM. You can remove my account once we're finished of course, and I can only give you my word to handle your data with care and do nothing else than to investigate the problem.

Else I'm a bit clueless on whya JS error pops up! :(

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/
stephenf

Cannot add image to entry

Post by stephenf »

Hi,
Did you find a fix for this error as I am experiencing the same thing.

Regards,
Stephen Faul
jerwarren

cant insert media

Post by jerwarren »

This just started happening on my friend Tim's blog as well.

The javascript error I get is:

Code: Select all

Error: self.opener.serendipity_imageSelector_addToBody is not a function
Source File: http://crapstack.net/blog/serendipity_admin_image_selector.php?serendipity[step]=1&serendipity[textarea]=body&serendipity[image]=25
Line: 132
He actually has user registration + instant insertion turned on, so you can troubleshoot if you'd like.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: cant insert media

Post by garvinhicking »

The error happens because your LJ update plugin is failing. Either uninstall it, or try to configure it with the proper LJ credentials.

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/
Dawn
Regular
Posts: 69
Joined: Thu May 04, 2006 11:46 am

Post by Dawn »

I've got exact the same XHTML11-Error as described.
The error happens because your LJ update plugin is failing. Either uninstall it, or try to configure it with the proper LJ credentials.
I really don't know what exactly you mean with LJ plugin. Can you please explain this a little bit more detailed?

Greets and best regards,
Dawn
azel
Regular
Posts: 265
Joined: Thu Apr 21, 2005 4:28 am
Contact:

Post by azel »

The error happens because your LJ update plugin is failing. Either uninstall it, or try to configure it with the proper LJ credentials.
That means the username/pass combination is probably incorrect.
Post Reply