You are missing our premiere tool bar navigation system! Register and use it for FREE!

NukeCops  
•  Home •  Downloads •  Gallery •  Your Account •  Forums • 
Readme First
- Readme First! -

Read and follow the rules, otherwise your posts will be closed
Modules
· Home
· FAQ
· Buy a Theme
· Advertising
· AvantGo
· Bookmarks
· Columbia
· Community
· Donations
· Downloads
· Feedback
· Forums
· PHP-Nuke HOWTO
· Private Messages
· Search
· Statistics
· Stories Archive
· Submit News
· Surveys
· Theme Gallery
· Top
· Topics
· Your Account
Who's Online
There are currently, 62 guest(s) and 0 member(s) that are online.

You are Anonymous user. You can register for free by clicking here
Nuke Cops :: View topic - My_eGallery media/category creation error [ ]
 Forum FAQ  •  Search  •   •  Memberlist  •  Usergroups   •  Register  •  Profile •    •  Log in to check your private messages  •  Log in

 
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
Author Message
sullust
Nuke Cadet
Nuke Cadet


Joined: Apr 02, 2003
Posts: 4


PostPosted: Wed Apr 02, 2003 2:07 pm Reply with quoteBack to top

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.
Find all posts by sullustView user's profileSend private messageVisit poster's website
ArtificialIntel



Joined: Jan 31, 2004
Posts: -88


PostPosted: Wed Apr 02, 2003 2:52 pm Reply with quoteBack to top

make sure the Gallery folder inside the My_eGallery module folder has a CHMOD of 777

AI
Find all posts by ArtificialIntelView user's profileSend private message
beebar
Private
Private


Joined: Apr 07, 2003
Posts: 45


PostPosted: Tue Apr 08, 2003 6:18 am Reply with quoteBack to top

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.
Find all posts by beebarView user's profileSend private message
sullust
Nuke Cadet
Nuke Cadet


Joined: Apr 02, 2003
Posts: 4


PostPosted: Tue Apr 08, 2003 10:24 am Reply with quoteBack to top

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...
Find all posts by sullustView user's profileSend private messageVisit poster's website
ArtificialIntel



Joined: Jan 31, 2004
Posts: -88


PostPosted: Wed Apr 09, 2003 4:52 am Reply with quoteBack to top

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
Find all posts by ArtificialIntelView user's profileSend private message
beebar
Private
Private


Joined: Apr 07, 2003
Posts: 45


PostPosted: Wed Apr 09, 2003 5:01 am Reply with quoteBack to top

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.
Find all posts by beebarView user's profileSend private message
sullust
Nuke Cadet
Nuke Cadet


Joined: Apr 02, 2003
Posts: 4


PostPosted: Thu Apr 10, 2003 7:28 am Reply with quoteBack to top

No dice, same error Sad
Find all posts by sullustView user's profileSend private messageVisit poster's website
ArtificialIntel



Joined: Jan 31, 2004
Posts: -88


PostPosted: Thu Apr 10, 2003 7:58 am Reply with quoteBack to top

analyzer link Plz

AI
Find all posts by ArtificialIntelView user's profileSend private message
nirre
Nuke Cadet
Nuke Cadet


Joined: Apr 10, 2003
Posts: 5


PostPosted: Fri Apr 11, 2003 5:48 am Reply with quoteBack to top

u can have mine if u want Wink .. im having exactly the same problem..
here's the link for analyser..

http://nirre.rack.cx/analyze.php

everything is freshly installed ..etc.. etc

Crying or Very sad
Find all posts by nirreView user's profileSend private message
ArtificialIntel



Joined: Jan 31, 2004
Posts: -88


PostPosted: Fri Apr 11, 2003 7:06 am Reply with quoteBack to top

nirre wrote:
u can have mine if u want Wink .. im having exactly the same problem..
here's the link for analyser..

http://nirre.rack.cx/analyze.php

everything is freshly installed ..etc.. etc

Crying or Very sad


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
Find all posts by ArtificialIntelView user's profileSend private message
sullust
Nuke Cadet
Nuke Cadet


Joined: Apr 02, 2003
Posts: 4


PostPosted: Fri Apr 11, 2003 1:14 pm Reply with quoteBack to top

Nope, I had safe mode turned off.

http://www.sullust.org/analyze.php

Hope that helps.
Find all posts by sullustView user's profileSend private messageVisit poster's website
nirre
Nuke Cadet
Nuke Cadet


Joined: Apr 10, 2003
Posts: 5


PostPosted: Mon Apr 14, 2003 6:55 am Reply with quoteBack to top

dang... Sad ok

Is there anything i can do to make 'me egallaery' to work with a safe server setting ?? Shocked
Find all posts by nirreView user's profileSend private message
jimmyc
Nuke Cadet
Nuke Cadet


Joined: Apr 27, 2003
Posts: 4


PostPosted: Sun Apr 27, 2003 5:42 pm Reply with quoteBack to top

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
Find all posts by jimmycView user's profileSend private message
natmjones
Nuke Cadet
Nuke Cadet


Joined: May 11, 2003
Posts: 2


PostPosted: Mon May 12, 2003 4:57 am Reply with quoteBack to top

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?
Find all posts by natmjonesView user's profileSend private message
ArtificialIntel



Joined: Jan 31, 2004
Posts: -88


PostPosted: Mon May 12, 2003 7:23 am Reply with quoteBack to top

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
Find all posts by ArtificialIntelView user's profileSend private message
Display posts from previous:      
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



Powered by phpBB © 2001, 2005 phpBB Group

Ported by Nuke Cops © 2003 www.nukecops.com
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::
Powered by · TOGETHER TEAM srl ITALY http://www.togetherteam.it · DONDELEO E-COMMERCE http://www.DonDeLeo.com
Web site engine's code is Copyright © 2002 by PHP-Nuke. All Rights Reserved. PHP-Nuke is Free Software released under the GNU/GPL license.
Page Generation: 0.421 Seconds - 153 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::