1.1 Multi Install Javascript Problem

Found a bug? Tell us!!
Post Reply
axelseaa
Regular
Posts: 49
Joined: Fri Dec 23, 2005 7:13 pm

1.1 Multi Install Javascript Problem

Post by axelseaa »

I just upgraded a multi-site install, and noticed the new javascript functions on the plugins page don't work.

Each multi-install blog has a .htaccess file with the following:
php_value include_path php_value include_path ".:/usr/local/lib/:/usr/local/lib/s9y/:/usr/local/lib/s9y/bundled-libs/"

The problem is that the script is included like this:
<script src="bundled-libs/dragdrop.js" type="text/javascript"></script>

Javascript obviously won't listen to the php_value include_path setting above.

One solution is to just symlink the bundled-libs folder in each directory. This probably isn't the best solution.

Any thoughts on the best way to solve this problem? Ideally, maybe the way that javascript file is included needs to be modified.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: 1.1 Multi Install Javascript Problem

Post by garvinhicking »

Hi!

That's very good catch. Indeed this would make problems and I'm sorry for that position of the file.

I just committed a fix to our SVN that moves this file to the templates/default/ folder, so you will be able use the scripts on shared installations without symlinks in the future.

HTH,
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/
axelseaa
Regular
Posts: 49
Joined: Fri Dec 23, 2005 7:13 pm

Post by axelseaa »

I was searching around, and noticed the same problem with the image editing javascript. Can this file also be moved?
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

Yes, I did move both of them. However the image editing is really only a stub for now and has no functionality yet :(

Best 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/
ane
Regular
Posts: 12
Joined: Sun Jan 07, 2007 12:27 pm

Post by ane »

Hi,

not entirely sure this is related, but it apeared after resolving the missing YAHOO-class:

I want to add a picture via the media chooser and nothing happens when clicking "done".

JS-Console onf Firefox complains about

Code: Select all

Error: self.opener has no properties
Source File: http://####/serendipity_editor.js
Line: 247
which is

Code: Select all

    if (typeof(self.opener.htmlarea_editors) != 'undefined' && typeof(self.opener.htmlarea_editors[textarea] != 'undefined')) {

S9y 1.1, shared Installation, tried with Firefox 2.0.0.1, Safarin and Camino as well.

:roll: [/quote]
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

If that happens, the popup window has lost its "opening" parent window.

How exactly did you proceed when opening the media popup? You are not allowed to change the page in the page from where you opened the popup...?

Best 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/
ane
Regular
Posts: 12
Joined: Sun Jan 07, 2007 12:27 pm

Post by ane »

Well,

1. Open (Browser), Firefox right now.
2. navigate to blog, edit entry...
3. click into text field
4. click Media-Button
5. click thumbnail
6. click done

(7. open JSConsole to read error msg)

I'm relatively sure I did not do anything bad to poor s9y :)
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi ane!

Hm, that's tough. Can you temporarily give me a s9y account to your blog so that I could try it?

Maybe the .js file is not loaded, can you check a tool like firebug or livehttpeheaders to see response codes?

Best 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