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: Only -1 bytes written error  (Read 4906 times)

0 Members and 1 Guest are viewing this topic.

thebestonealways

  • Coppermine newbie
  • Offline Offline
  • Posts: 8
Only -1 bytes written error
« on: May 01, 2006, 09:58:43 pm »

Whenever I try to upload an image I get the following error:

Warning: Only -1 bytes were written, expected to write 5119 in Unknown on line 0

I have coppermine version 1.4.5.

The odd thing is when I first installed it I uploaded an image to test and it worked. Then I changed some settings and did other things e.g themes, and then tried to upload another image and it didn't work.

So I deleted everything and re-installed it from scratch. Same problem though. I have tried files of various sizes: 4 KB to 500 KB and they all return the same error message

Any suggestions?
« Last Edit: May 03, 2006, 10:38:30 pm by GauGau »
Logged

thebestonealways

  • Coppermine newbie
  • Offline Offline
  • Posts: 8
Re: Only -1 bytes written error
« Reply #1 on: May 01, 2006, 11:00:30 pm »

I also forgot to add that the permissions of the required folders and sub folders are 777 so permissions shouldn't be an issue.
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Logged

thebestonealways

  • Coppermine newbie
  • Offline Offline
  • Posts: 8
Re: Only -1 bytes written error
« Reply #3 on: May 02, 2006, 12:36:07 am »

Thanks

However I would like my users to upload images as well. Most users wouldn't have the technical ability to upload files via that procedure. Using the upload feature on the website would be easier for them.

Don't know what could be causing this error  ??? Sometimes if I wait for a couple of hours and then try to upload a small file it works..

It's not like my user account is full or anything either - I'm only using a fraction of the space and bandwidth available.
Logged

Tranz

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Female
  • Posts: 6149
Re: Only -1 bytes written error
« Reply #4 on: May 02, 2006, 05:41:02 am »

You need to READ the link that GauGau posted and follow the instructions or supporters can't help..
Logged

thebestonealways

  • Coppermine newbie
  • Offline Offline
  • Posts: 8
Re: Only -1 bytes written error
« Reply #5 on: May 02, 2006, 08:52:31 am »

Oh oops, haha I did read the link, but for some reason it took me to:

4.11.3.2 XP Web Publishing Wizard: Uploading pictures
The process of uploading pictures is a matter of following a simple dialog. It takes much longer to describe the process than do it.

so I read that section thought it was a link for an alternative upload method! I must have scrolled within the page accidentally...

I'd like to add that I've experienced the same error with and without the bridge with phpbb
ok here's my debug information:


The error I received now was:
Warning: Only 2070 bytes were written, expected to write 5119 in Unknown on line 0

(it keeps fluctuating - sometimes its -1, at others its a number)

Whenever I try to upload a file via URI/URL, it always works:

Successful Uploads
1 uploads were successful.


So I've only included the debug info for when I try to upload my own files (have tried in different browsers and operating systems):



**debug info removed** (unneccessary)
« Last Edit: May 02, 2006, 09:39:21 am by thebestonealways »
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Only -1 bytes written error
« Reply #6 on: May 02, 2006, 08:56:56 am »

you are suppossed NOT to post the debug_output! Is reading the section I refered to and doing exactly as you're being told there so hard ::)? For your ease of use, I'll quote it for you here:
Quote
4.11.4 Upload troubleshooting

If you are experiencing issues with coppermine's upload process, temporarily change your coppermine settings as suggested below to get more detailed error messages:

    * Go to your coppermine page and log in as admin
    * Go to the config screen
    * Scroll to the bottom of the page
    * Expand the "Maintenance settings" section by clicking on it
    * Enable debug mode for everyone
    * Leave display of notices switched off
    * Save the new settings by clicking on "Save new configuration"
    * Go to the "groups" panel
    * Set the upload form configuration for all groups to "Single file uploads only" (set File upload boxes to "1", URI upload boxes to "0" and No. of boxes to "fixed")
    * Save your new settings

Then try to upload (using http uploads, even if you experienced troubles using another upload method) - you should get a more detailed error message that tells you what exactly goes wrong with your uploads. If the error message doesn't mean anything to you, search the support board for the error message you get.
When asking for support on the coppermine forum, post a link to your site and a test user account (the test user mustn't be in the admin group!) with upload privileges, with the above mentioned settings in place - this way, supporters can see the error messages as well. Do not post debug_output unless requested.
Logged

thebestonealways

  • Coppermine newbie
  • Offline Offline
  • Posts: 8
Re: Only -1 bytes written error
« Reply #7 on: May 02, 2006, 09:36:23 am »

Sorry GauGau,

here's the test account

***

if you're lucky enough to be able to upload a file (it sometimes works), try it again, chances are there'll be an error message
« Last Edit: May 03, 2006, 07:12:32 pm by thebestonealways »
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Only -1 bytes written error
« Reply #8 on: May 02, 2006, 09:40:01 am »

turn off admin approval if you want me to look into this ::)
Logged

thebestonealways

  • Coppermine newbie
  • Offline Offline
  • Posts: 8
Re: Only -1 bytes written error
« Reply #9 on: May 02, 2006, 09:55:52 am »

Ok turned it off,

thanks
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Only -1 bytes written error
« Reply #10 on: May 02, 2006, 10:00:56 am »

uploading works as expected for me (see http://yourdomain.tld/integrated/gallery/displayimage.php?pos=-4). What error message did you get for the files that failed to upload. Post more details on the files that failed.
« Last Edit: May 04, 2006, 06:57:44 am by GauGau »
Logged

thebestonealways

  • Coppermine newbie
  • Offline Offline
  • Posts: 8
Re: Only -1 bytes written error
« Reply #11 on: May 02, 2006, 10:10:25 am »

I just tried it again (using the same test account you're using) and this is the message I get at the very top of my page:

Warning: Only 2090 bytes were written, expected to write 5119 in Unknown on line 0

then the upload page appears, and it says:

Error
No file was uploaded !

If you have really selected a file to upload, check that the server allows file uploads...

File: /home/www/***/db_input.php - Line: 300

The file I am trying to upload is a jpeg, 640 * 480 and 224 KB

p.s.: I just checked my servers tested software list to see if they supported coppermine, and it said they've tested and support Coppermine 1.4.3 (they probably just havent tested 1.4.5 yet)
« Last Edit: May 03, 2006, 07:13:08 pm by thebestonealways »
Logged

thebestonealways

  • Coppermine newbie
  • Offline Offline
  • Posts: 8
Re: Only -1 bytes written error
« Reply #12 on: May 03, 2006, 07:16:35 pm »

Ok it seems to be working for now so I'm keeping my fingers crossed!

will let you know if it doesnt work again!

thanks
Logged
Pages: [1]   Go Up
 

Page created in 0.03 seconds with 20 queries.