Only -1 bytes written error Only -1 bytes written error
 

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

Main Menu

Only -1 bytes written error

Started by thebestonealways, May 01, 2006, 09:58:43 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

thebestonealways

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?

thebestonealways

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

Joachim Müller


thebestonealways

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.

Tranz

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

thebestonealways

#5
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)

Joachim Müller

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:
Quote4.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.

thebestonealways

#7
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

Joachim Müller

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

thebestonealways


Joachim Müller

#10
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.

thebestonealways

#11
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)

thebestonealways

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