Hi,
First of all let me say great software.
I did a search with no luck.
Ok I get a very strange result when I try to upload an image that is bigger than the cap. I have the size cap set at 100kb. I get this header info printed at the the top of the page.
QuoteWarning: MAX_FILE_SIZE of 102400 bytes exceeded - file [userpicture=C:\My Documents\stuff\pic\big.JPG] not saved in
Uknown on line 0
Warning: Cannot modify header information - headers already sent in
D:\webspace\BottomLine\NORNET\nissanoffroad.net\www\image_gallery\themes\default\theme.php on line 772
Warning: Cannot modify header information - headers already sent in D:\webspace\BottomLine\NORNET\nissanoffroad.net\www\image_gallery\include\functions.inc.php on line 51
The end result is what I want, the image does not get upload but the error message is a little harsh.
Here is a link to my phpinfo
PHPinfo (http://www.nissanoffroad.net/test.php)
Here is a link to the gallery.
The Gallery (http://www.nissanoffroad.net/image_gallery/index.php)
It's a WIN2K server running IIS.
Thanks in advance
Kevin
Guess I stumped everyone?
where did you set the size limit? Coppermine config or php.ini?
What's the deal with "my documents"?
GauGau
P.S. Have I mentioned that I strongly suggest people not to run their own publicly available webserver until they really, really know what they're doing? No offense meant, just a suggestion...
My Documents was the source of the picture I was trying to upload. The size limit was set in config. PHP.ini upload is set at 2mb
This is not a personal server. I would never run a windows personal server. I have a linux server at home running coppermin quite happily.
I helping some friends with re-designing their site. Running windows was not my choice belive me.
please give us a test account of a user that has upload permissions for http://nissanoffroad.net/image_gallery/index.php
BTW: it may seem strange to you if you come from lunix: on iis, the file the server looks for when browsing a folder is "default.htm". If it's not found and you have set the Directory Listing set to now (which makes sense) you will get an error if you try to browse http://nissanoffroad.net/image_gallery/ . To avoid this error, add index.htm, index.html and index.php to the pages the webserver looks for by default in a folder (you can do this in IIS UI).
GauGau
user = test_user
pass = test_user
Thanks for the tip on the default.html, I will have to submit a trouble ticket to tech support to get that changed. I wondered why it was giving me unexpected results with index.php
Thanks
I confirm this is not expected behaviour - file upload under your limit works fine, above the limit returns a nasty error. As I only have a linux box to test on (and it seems to work there) I guess it's an IIS problem, so I'll hand this over to some other dev who has access to an IIS for testing.
GauGau
Just for the record: tracker no 836149
GauGau
Hmmm... this is what I get (note error at bottom)...
(https://coppermine-gallery.com/forum/proxy.php?request=http%3A%2F%2Fwww.lcounty.com%2Fasendorf%2Fupload_error.jpg&hash=40fa31fdbb2c1f30e5881e99054bb5ca740ef0dd)
As for the CPG error message, it's the same message I get on my linux box. I would think we'd have an error message which says, "You've exceeded the max filesize" or "This photo (filesize XX KB) is too large, it exceeds the max allowable size of YY KB."
So, other than the error message, the behavior is expected.
Which leads me to believe that this is a php.ini error reporting issue. I don't see how IIS would be the culprit here i think that the ini's are just different. I'll continue to look into this.
John
Alright... turning E_WARNING off in php.ini removes the main error (non-fatal runtime errors). so in error_reporting in your php.ini file you'll need to add
error_reporting = WHATEVER-IS-ALREADY-HERE & ~E_WARNING
Could someone with control of a linux box (I have no control over the php.ini on the linux server I use) see if this is the same for linux servers? (in other words, turn E_WARNING ON and see if you get the same error message)
Thanks, John
I can give it a shot on my linux server. Stay tuned.
edit to add:
My php.ini under my linux is set at this:
error_reporting = E_ALL & ~E_NOTICE
Which I belive will give me all errors EXCEPT Notice errors. E_Warning should be on right?
CPG upload cap is set at 100kb
Upload Results of Large image:
Standard CPG error (as above-no photo blah) no extra server errors reported or headers printed. Which is what we want.