Page 1 of 1
1.1 Multi Install Javascript Problem
Posted: Sat Jan 20, 2007 5:37 am
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.
Re: 1.1 Multi Install Javascript Problem
Posted: Mon Jan 22, 2007 2:02 pm
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
Posted: Mon Jan 22, 2007 2:16 pm
by axelseaa
I was searching around, and noticed the same problem with the image editing javascript. Can this file also be moved?
Posted: Mon Jan 22, 2007 2:18 pm
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
Posted: Wed Feb 07, 2007 12:31 pm
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.

[/quote]
Posted: Wed Feb 07, 2007 12:53 pm
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
Posted: Wed Feb 07, 2007 9:04 pm
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

Posted: Thu Feb 08, 2007 10:17 am
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