| Author |
Message |
sullust
Nuke Cadet


Joined: Apr 02, 2003
Posts: 4
|
Posted:
Wed Apr 02, 2003 2:07 pm |
  |
I've had this problem with PHPNuke versions 6.0 and 6.5. I'm running the verion of My_eGallery for 6.5 now (and the older version with 6.0). Whenever I try to create a category or file I get the error:
| Code: |
| The media you try to upload exceeds the maximum file size in 'General Settings' or in 'php.ini'. |
I have restrict upload size set to "NO" in the general settings section, and the upload section of my php.ini file looks like this:
| Code: |
;;;;;;;;;;;;;;;;
; File Uploads ;
;;;;;;;;;;;;;;;;
; Whether to allow HTTP file uploads.
file_uploads = On
; Temporary directory for HTTP uploaded files (will use system default if not
; specified).
upload_tmp_dir = /tmp
; Maximum allowed size for uploaded files.
upload_max_filesize = 50M
|
I only started getting this error (as best I know) when I started using php 4.3.* so perhaps there is a problem with that.
The error is thrown from admin/modules/gallery/fileFunctions.php in the block:
| Code: |
if ($userfile_size!=0)
{$taille_ko=$userfile_size/1024;}
else
{$taille_ko=0; $err=1; return _GALUPLOADERROR; }
|
in the UploadFile function which is called from so many places I'm not sure where to trace the error back to. I also don't know how file uploading in php works so odds are if I did trace things back to the cause of the problem I wouldn't know what I was looking at.
Thanks for any help you can give me. |
|
|
    |
 |
ArtificialIntel

Joined: Jan 31, 2004
Posts: -88
|
Posted:
Wed Apr 02, 2003 2:52 pm |
  |
make sure the Gallery folder inside the My_eGallery module folder has a CHMOD of 777
AI |
|
|
   |
 |
beebar
Private


Joined: Apr 07, 2003
Posts: 45
|
Posted:
Tue Apr 08, 2003 6:18 am |
  |
OK Found and Fixed my problem. I am using mandrake 9.1 and apache 2, I guess Mandrake doesn't install php.ini by default, after I added it and checked the config to verify that uploads are ok (default is yes) it worked like a dream. I am not the best web guy so if this sounds crazy it just may be, but I did a search for php.ini and it was not there, checked the rpm database and checked the cd's and seen a php.ini rpm on cd1, installed it and it worked. Ofcourse I also tweaked the perms but just the perms did not do it. One other problem I realized was my fault, well sort of anyway, I read that it would be wise to change the directory to which people upload pics to for security, so I did it in the My_eGallery config screen. My uploads and approval process was then very querkie and didn't work, I guess the scripts still looked to the old dir for info, when I changed it back it also started to work as expected. |
|
|
   |
 |
sullust
Nuke Cadet


Joined: Apr 02, 2003
Posts: 4
|
Posted:
Tue Apr 08, 2003 10:24 am |
  |
Yep, everything is 777'd
And I have a php.ini and php seems to be finding it.
Any other ideas? This one's really got me stumped... |
|
|
    |
 |
ArtificialIntel

Joined: Jan 31, 2004
Posts: -88
|
Posted:
Wed Apr 09, 2003 4:52 am |
  |
I got fed up with Mandrake after about half hour of playing round with PHP. I'm now a Red Hat 8.0 user through and through. It doesn't have some of the same configuration tools as Mandrake, but I don't use most of them anyway, so it makes no nevermind to me.
True red hat doesn't have the latest PHP packages etc. but it doesn't take too much effort to configure PHP and Apache manually for Linux
Thanks for pointing me at the manually installed php.ini RPM for Mandrake though, I'll make sure I keep that in mind in the future. (the lack of php.ini by default wasn't the only thing to make me change linux versions btw.)
As for the further problems that sullust is having. can you post an analyzer.php link plz??
Thanks
AI |
|
|
   |
 |
beebar
Private


Joined: Apr 07, 2003
Posts: 45
|
Posted:
Wed Apr 09, 2003 5:01 am |
  |
may be stupid but check on who owns your dirs, if root owns them and you create a catagory, it will be created as the apache user, that maybe www, apache, nobody etc. chown so everything is owned by the same user. |
|
|
   |
 |
sullust
Nuke Cadet


Joined: Apr 02, 2003
Posts: 4
|
Posted:
Thu Apr 10, 2003 7:28 am |
  |
No dice, same error  |
|
|
    |
 |
ArtificialIntel

Joined: Jan 31, 2004
Posts: -88
|
Posted:
Thu Apr 10, 2003 7:58 am |
  |
|
   |
 |
nirre
Nuke Cadet


Joined: Apr 10, 2003
Posts: 5
|
Posted:
Fri Apr 11, 2003 5:48 am |
  |
u can have mine if u want .. im having exactly the same problem..
here's the link for analyser..
http://nirre.rack.cx/analyze.php
everything is freshly installed ..etc.. etc
 |
|
|
   |
 |
ArtificialIntel

Joined: Jan 31, 2004
Posts: -88
|
Posted:
Fri Apr 11, 2003 7:06 am |
  |
| nirre wrote: |
u can have mine if u want .. im having exactly the same problem..
here's the link for analyser..
http://nirre.rack.cx/analyze.php
everything is freshly installed ..etc.. etc
 |
you're problem is that safe mode is active on your server. this mode stops directories & files being created through PHP Scripts.
Contact your host to see if there's any possibility of them disabling safe mode (there probably isn't though.)
YGWYPF (You Get What You Pay For)
AI |
|
|
   |
 |
sullust
Nuke Cadet


Joined: Apr 02, 2003
Posts: 4
|
Posted:
Fri Apr 11, 2003 1:14 pm |
  |
|
    |
 |
nirre
Nuke Cadet


Joined: Apr 10, 2003
Posts: 5
|
Posted:
Mon Apr 14, 2003 6:55 am |
  |
dang... ok
Is there anything i can do to make 'me egallaery' to work with a safe server setting ??  |
|
|
   |
 |
jimmyc
Nuke Cadet


Joined: Apr 27, 2003
Posts: 4
|
Posted:
Sun Apr 27, 2003 5:42 pm |
  |
I am having the same problem. I actually tried the installation thru the admin page, but after i select continue on the check chmod page it just sends me back to the license agreement page, where i click next and then it sends me right back to chmod check, where everything is correct. It ends up being an endless loop. Like everyone else here I can't add categories, I get the file size error, but when i try to add same category it says it already exists. I am not running safe mode either, at least thats what php.ini says. Has anyone resolved this?
thnx,
jimmyc |
|
|
   |
 |
natmjones
Nuke Cadet


Joined: May 11, 2003
Posts: 2
|
Posted:
Mon May 12, 2003 4:57 am |
  |
What about the poor Window XP users? I am having the same issue and I have removed the "read only" premission from the directory. I try and and it fails again. When I open the directory properties up I see that Read-only is back on, and a new directory was created for the gallery i.e. test. Is there another way to set premissions for the directory in Windows? |
|
|
   |
 |
ArtificialIntel

Joined: Jan 31, 2004
Posts: -88
|
Posted:
Mon May 12, 2003 7:23 am |
  |
open the IIS configure console.
Browse to the Gallery directory
Open the Security tab (right-click on it, click properties, then security)
assign IUSR_****** where ***** is the name of ur PC, the FULL CONTROL access privilege.
AI |
|
|
   |
 |
|
|