Advanced search  

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Pages: [1]   Go Down

Author Topic: Strange Results when Uploading Big Image  (Read 5470 times)

0 Members and 1 Guest are viewing this topic.

kclark0153

  • Coppermine newbie
  • Offline Offline
  • Posts: 11
Strange Results when Uploading Big Image
« on: November 03, 2003, 05:31:07 pm »

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.


Quote

Warning:  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

Here is a link to the gallery.

The Gallery

It's a WIN2K server running IIS.

Thanks in advance
Kevin
Logged

kclark0153

  • Coppermine newbie
  • Offline Offline
  • Posts: 11
Strange Results when Uploading Big Image
« Reply #1 on: November 04, 2003, 03:33:37 pm »

Guess I stumped everyone?
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Strange Results when Uploading Big Image
« Reply #2 on: November 04, 2003, 06:47:50 pm »

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...
Logged

kclark0153

  • Coppermine newbie
  • Offline Offline
  • Posts: 11
Strange Results when Uploading Big Image
« Reply #3 on: November 04, 2003, 07:11:09 pm »

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.
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Strange Results when Uploading Big Image
« Reply #4 on: November 04, 2003, 11:37:41 pm »

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
Logged

kclark0153

  • Coppermine newbie
  • Offline Offline
  • Posts: 11
Strange Results when Uploading Big Image
« Reply #5 on: November 05, 2003, 12:22:13 am »

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
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Strange Results when Uploading Big Image
« Reply #6 on: November 05, 2003, 12:37:05 am »

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
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Strange Results when Uploading Big Image
« Reply #7 on: November 05, 2003, 12:42:23 am »

Just for the record: tracker no 836149

GauGau
Logged

jasendorf

  • VIP
  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 350
    • http://www.338tharmyband.com
Strange Results when Uploading Big Image
« Reply #8 on: November 05, 2003, 03:40:18 pm »

Hmmm...   this is what I get (note error at bottom)...

(http://www.lcounty.com/asendorf/upload_error.jpg)

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
Logged
Read the Online DOCs,FAQ, and SEARCH the board BEFORE posting questions for help.

jasendorf

  • VIP
  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 350
    • http://www.338tharmyband.com
Strange Results when Uploading Big Image
« Reply #9 on: November 05, 2003, 03:50:39 pm »

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
Code: [Select]

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
Logged
Read the Online DOCs,FAQ, and SEARCH the board BEFORE posting questions for help.

kclark0153

  • Coppermine newbie
  • Offline Offline
  • Posts: 11
Strange Results when Uploading Big Image
« Reply #10 on: November 06, 2003, 03:26:44 am »

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:

Code: [Select]

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.
Logged
Pages: [1]   Go Up
 

Page created in 0.023 seconds with 18 queries.