forum.coppermine-gallery.net

Support => cpg1.4.x Support => Older/other versions => cpg1.4 upload => Topic started by: heyimkay on June 21, 2006, 01:19:47 am

Title: Uploading Big files... HELP
Post by: heyimkay on June 21, 2006, 01:19:47 am
For some reason the version cpg1.4.8 won't let me upload big files. Like 1000x1000. It says something about the file include/picmgmt.inc.php

HELP PLEASE!
Title: Re: Uploading Big files... HELP
Post by: Vargha on June 21, 2006, 04:04:48 am
if u want to upload a big file
u have to get access to ur php.ini
and find
post_max_size
and
upload_max_filesize
and set the values to higher
try and see if that works for u  :)
Title: Re: Uploading Big files... HELP
Post by: Paver on June 21, 2006, 04:19:00 am
@Vargha: That's not the first thing to do.  It may be necessary, but there are a few other things to check first.

@heyimkay: Post the error message here.  And check your configuration settings for "Files and Thumbnails" - ensure you that you are allowing large files in the configuration.  A link to your site with a test user account (with upload privileges) may be helpful as well.
Title: Re: Uploading Big files... HELP
Post by: Joachim Müller on June 21, 2006, 06:42:28 am
In fact you should read the sticky thread on this sub-board (http://forum.coppermine-gallery.net/index.php?topic=24088.0) and do as suggested in the upload troubleshooting section of the docs (http://coppermine-gallery.net/demo/cpg14x/docs/index.htm#upload_trouble).
Title: Re: Uploading Big files... HELP
Post by: heyimkay on June 21, 2006, 07:28:23 pm
thanks for your help! i'm still confused... this is what i get when i try uploading big files:

Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 6528 bytes) in /home/heyimkay/public_html/brendasong/pictures/include/picmgmt.inc.php on line 262
Title: Re: Uploading Big files... HELP
Post by: Joachim Müller on June 21, 2006, 07:53:13 pm
Re-read the sticky I told you about - it contains details on your particular error message.
Title: Re: Uploading Big files... HELP
Post by: heyimkay on June 21, 2006, 08:23:41 pm
where is the php.ini?
Title: Re: Uploading Big files... HELP
Post by: Paver on June 21, 2006, 08:50:12 pm
where is the php.ini?

If you are asking that question, you most likely cannot edit it.  It is the PHP server configuration file.  You only have access to it if you are the server administrator, as the sticky thread says.
Title: Re: Uploading Big files... HELP
Post by: heyimkay on June 21, 2006, 09:09:48 pm
i am the server administrator.
Title: Re: Uploading Big files... HELP
Post by: Paver on June 21, 2006, 09:20:16 pm
Then it should be in the main PHP directory.
Title: Re: Uploading Big files... HELP
Post by: heyimkay on June 21, 2006, 09:22:37 pm
would i find it in my files or like the actual place where my gallery is?
Title: Re: Uploading Big files... HELP
Post by: Paver on June 21, 2006, 09:32:59 pm
Are you sure you are the server administrator? 

I think you are thinking that being the Coppermine administrator is the same thing - it's not.

If I'm wrong, then you should know where your PHP directory is.  I cannot tell you for certain where it is on your server.
Title: Re: Uploading Big files... HELP
Post by: heyimkay on June 21, 2006, 09:38:53 pm
okay. my mistake. Is the server administrator have anything to do with whos hosting the site and such?
Title: Re: Uploading Big files... HELP
Post by: Paver on June 21, 2006, 09:53:51 pm
Yes.  PHP is run as an extension or module on the webserver, which is run by your webhost.
Title: Re: Uploading Big files... HELP
Post by: heyimkay on June 23, 2006, 05:24:10 am
i'm so sorry for my stupidity, but i never had this problem before. and I do host the gallery and such. i'm still unclear.
Title: Re: Uploading Big files... HELP
Post by: Joachim Müller on June 23, 2006, 07:50:51 am
So you're self-hosted? The server is yours to administer? Then you should know where php.ini resides. If you don't, then I strongly suggest reviewing the whole concept of self-hosting. It's not recommended to run your own webserver publicly if you have little idea what you're actually doing.
Title: Re: Uploading Big files... HELP
Post by: Sami on June 23, 2006, 09:21:35 am
- if you are not self hosted , there is a option chance for you
you can create a php.ini file and copy it to your gallery folder


[edit]:as GauGau suggested below
Title: Re: Uploading Big files... HELP
Post by: Joachim Müller on June 23, 2006, 09:22:39 am
This only applies if your webhost allows you to do that. Most webhosts don't.
Title: Re: Uploading Big files... HELP
Post by: Paver on June 23, 2006, 01:36:28 pm
@heyimkay: You mentioned this didn't happen before.  If you are sure files of this size were fine before, then something happened to increase the memory footprint of Coppermine.  I'm not sure what would do this.  Have you installed any plugins?  You could try the classic theme, although I don't think the theme would create a much larger footprint unless you define a lot of user variables.

If you mean that this didn't happen in earlier versions before 1.4.8, then I'm also not sure what would have changed in 1.4.8 to give this larger memory footprint.  The changes are small - although they are large in impact having to do with security fixes - but I cannot think of one change that would do this.