1
reumert
I can´t upload images in XOOPS 2.2.3
  • 2005/12/10 15:00

  • reumert

  • Just popping in

  • Posts: 11

  • Since: 2003/7/3 1


Hi.

I can´t upload images in XOOPS 2.2.3
Can anyone help me ?
Following message appears on my site,

Could not get uploaded file 0
Invalid file content

Xoops 2.2.2 works fin.

Is there a special place to se the permissions in XOOPS2.2.3
I have given the uploads folder permission: 777,
I´ve given permission to upload avatar, I got the same message this time, so XOOPS image manager don´t work for me, but the module myalbum works perfectly.

The picture I use is: 8K 80x80
and it functions in XOOPS 2.2.2
You can see the problem here
http://www.reumert.biz/log/
Log in is
User: test
Password: test

2
jdseymour
Re: I can´t upload images in XOOPS 2.2.3

Looks like the problem has to do with these two errors listed as the same file:

Warning [PHP]: getimagesize(): open_basedir restriction in effect. File(/***/***/phpba6FXF) is not within the allowed path(s): (/***/***/reumert.biz/) in file class/uploader.php line 194
Warning [PHP]: getimagesize(/***/***/phpba6FXF): failed to open stream: Operation not permitted in file class/uploader.php line 194

First try reuploading that file. See if that fixes the problem.

3
reumert
Re: I can´t upload images in XOOPS 2.2.3
  • 2005/12/10 16:04

  • reumert

  • Just popping in

  • Posts: 11

  • Since: 2003/7/3 1


Thank you for your help, jdseymour
I tried with a 2.2 class/ upload.php and now it works.
I experimented with 2.2.3 again and it did not work, so I think it must have a defect.

4
jdseymour
Re: I can´t upload images in XOOPS 2.2.3

Perhaps your copy of the file is corrupt. My 2.2.3 site works as expected.

Glad you got it working.

5
reumert
Re: I can´t upload images in XOOPS 2.2.3
  • 2005/12/10 16:26

  • reumert

  • Just popping in

  • Posts: 11

  • Since: 2003/7/3 1


I have downloaded a new xoops-2.2.3a-Final, and I hoped it would work for me but the upload.php.still was not working. Do you have any suggestions ?
Do yuo think it might be a XOOPS or server problem ?

6
jdseymour
Re: I can´t upload images in XOOPS 2.2.3

I would say if one is working, and the other isn't, no.

Make sure you upload the PHP file in binary mode. I don't know why mine works and yours dosn't.

7
cmagana
Re: I can´t upload images in XOOPS 2.2.3
  • 2005/12/21 4:34

  • cmagana

  • Not too shy to talk

  • Posts: 131

  • Since: 2003/11/8


I have the same problem, I've tried all options and i can't upload the image, my image in jpg 60 x 35.
I receive this message: "Invalid file content"
the image works fine. i don't believe it´s invalid i've tried with few images and i get the same error.

8
m0nty
Re: I can´t upload images in XOOPS 2.2.3
  • 2005/12/21 4:59

  • m0nty

  • XOOPS is my life!

  • Posts: 3337

  • Since: 2003/10/24


xoops 2.2 uploader.php doesn't contain the imagesize check for invalid content, that's y it works for you..

it seems this is all dependant on server configuration, with open_basedir or some other server issue.. not a XOOPS problem!!!

it works perfectly on all the servers i have access to..


to resolve the issue if your server host is configured differently

open class/uploader.php

find & remove/comment out the lines below

if ( $ext && in_array$ext, array( 'gif''jpg''jpeg''png''bmp''xbm' ) ) ) {
               
// Prevent sending of invalid images that would crash IE
            
if ( ! ( $info getimagesize$this->mediaTmpName ) ) ) {
                
$this->setErrors'Invalid file content' );
                return 
false;
            }
        }

9
cmagana
Re: I can´t upload images in XOOPS 2.2.3
  • 2005/12/22 9:28

  • cmagana

  • Not too shy to talk

  • Posts: 131

  • Since: 2003/11/8


thanks, it works fine, but, is it secure??

10
m0nty
Re: I can´t upload images in XOOPS 2.2.3
  • 2005/12/22 11:16

  • m0nty

  • XOOPS is my life!

  • Posts: 3337

  • Since: 2003/10/24


it's as secure as probability is.

unfortunately there isn't much else you can do if your server has safe mode & open_basedir restrictions on it.. (tho they are meant to improve security, they more often than not cause more hassle than it's worth)

Login

Who's Online

170 user(s) are online (135 user(s) are browsing Support Forums)


Members: 0


Guests: 170


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Apr 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits