Announcement

Do not use the forums to submit bug reports, feature requests or patches, submit a New Ticket instead.

#1 2005-09-28 12:41:18

c0
Xinha Community Member
Registered: 2005-09-01
Posts: 25
Website

ImageManager: all is well, except no uploading / create new folder

When creating a new folder, the popup window appears, but already it has a javascript error (you have to resize the popup window to see the warning icon):

Line: 28
Char: 3
Error: Object expected
Code: 0
URL: ...../xinha/plugins/ImageManager/newFolder.html

Also, uploading files doesn't work.  I can tell something's happening, but when the operation completes, there is no file.  I expect the basedir restrictions are causing problems, as my Apache configuration does not allow operations outside of the webroot (i.e. /tmp or similar).

Any ideas/suggestions anyone ?

The only way of troubleshooting PHP stuff I know is 'print $var;'.  Doesn't really do it for me with combined javascript stuff.

Line 28 in newFolder.html contains:        __dlg_init();
Somehow, I don't think this is the correct line number, is it ?

Offline

#2 2005-09-29 04:38:23

niko
Xinha Authority
From: Salzburg/Austria
Registered: 2005-02-14
Posts: 338

Re: ImageManager: all is well, except no uploading / create new folder

try it in Firefox, you will get much more meaningfull error-messages
(you have to open the JavaScript-Console)


Niko

Offline

#3 2005-09-29 08:35:29

henke
Xinha Community Member
From: Sweden
Registered: 2005-09-22
Posts: 12

Re: ImageManager: all is well, except no uploading / create new folder

c0, is the Image Manager working properly when you use the included xinha-example fle?

No config is needed to get the example to work... besides checking Image Manager of course that is. wink

Offline

#4 2005-09-29 10:59:49

ray
Xinha Administrator
From: Germany
Registered: 2005-03-23
Posts: 521
Website

Re: ImageManager: all is well, except no uploading / create new folder

Isn't workin in example either. Error message:

Fehler: __dlg_init is not defined
Quelldatei: http://xinha.gogo.co.nz/xinha-nightly/p … older.html
Zeile: 28

Fehler: __dlg_close is not defined
Quelldatei: http://xinha.gogo.co.nz/xinha-nightly/p … older.html
Zeile: 49

Offline

#5 2005-09-29 11:16:20

ray
Xinha Administrator
From: Germany
Registered: 2005-03-23
Posts: 521
Website

Re: ImageManager: all is well, except no uploading / create new folder

inserting

<script type="text/javascript" src="../../popups/popup.js"></script>

on line 19 in /plugins/ImageManager/newFolder.html does the the trick because since Changeset 256 these functions are not defined in /plugins/ImageManager/assets/popup.js anymore

Offline

#6 2005-10-03 13:03:54

c0
Xinha Community Member
Registered: 2005-09-01
Posts: 25
Website

Re: ImageManager: all is well, except no uploading / create new folder

Create New folder is now 100% ok (except window dimensions are a bit to small on my evil iexplore).
Upload isn't working yet, but will look into this myself.  Shouldn't be a problem.

Many thanks for your very helpful contribution Ray.
Wouldn't have found this myself in years probably, to be honest. :-)

Offline

#7 2005-10-04 05:56:52

c0
Xinha Community Member
Registered: 2005-09-01
Posts: 25
Website

Re: ImageManager: all is well, except no uploading / create new folder

Hmm...create new folder only works if my site is installed in the webroot.
> A copy of my (test) site in a subsir of the webroot is not functioning properly.
> Xinha + the ImageManager itself are untouched and functioning properly.

Offline

#8 2005-10-04 11:51:18

eLoC
New member
Registered: 2005-10-04
Posts: 2

Re: ImageManager: all is well, except no uploading / create new folder

Hello!
I can't upload an image too... don't know why!
Can anybody help? I have no error using the Javascript Console. I can create a folder, but the image upload doesn't works!

Can anybody Help?

Offline

#9 2005-10-05 08:13:07

ray
Xinha Administrator
From: Germany
Registered: 2005-03-23
Posts: 521
Website

Re: ImageManager: all is well, except no uploading / create new folder

all write rights for php set?

Offline

#10 2005-10-05 09:40:49

eLoC
New member
Registered: 2005-10-04
Posts: 2

Re: ImageManager: all is well, except no uploading / create new folder

Yes Ray!
I'm testing it locally.
I have the GD2 library and uploads using the common PHP codes work fine!

But maybe i need any other right to do this... can you tell me what do i need to try it?

Offline

Board footer

Powered by FluxBB