Announcement

#1 2012-06-22 23:08:34

nomi00001
Member
2012-03-17
150

Error

when i uploading something i get this
The uploaded files exceed the post_max_size directive in php.ini: 8MB
Error on file "Intel_inside_hd_wallpaper.jpg" : The uploaded file was only partially uploaded



In your php.ini file, the upload_max_filesize (20MB) is bigger than post_max_size (8MB), you should change this setting


can you tell me where is php.ini and how to fix this

Offline

 

#2 2012-06-22 23:20:48

EdwinKort
Translation Team
Rhoon, the Netherlands
1970-01-01
95

Re: Error

I think you should ask your hosting company where to find php.ini. Not every hosting company will allow you to change settings in php.ini (mostly on shared servers).


My Gallery
Hosted with: Surpass Hosting since 2004

Offline

 

#3 2012-06-22 23:22:49

nomi00001
Member
2012-03-17
150

Re: Error

so i cant fix this errors without php.ini

Offline

 

#4 2012-06-23 00:43:10

pewe
Member
2012-03-16
439

Re: Error

I got over the problem by placing a file called php.ini with the following content in the Piwigo directory.

==========Content Begin======
upload_max_filesize = 200M
post_max_size = 200M
date.timezone = Europe/London
memory_limit = 400M
=========Content End========
(Ignore the content begin and end lines)

Some hosts allow the override of certain settings in the global server php.ini using this method - some don't, but you'll see straight away if it works.

Offline

 

#5 2012-06-23 00:47:07

nomi00001
Member
2012-03-17
150

Re: Error

sir i dont know about php can you tell me how can i do that i make i php.ini file and put this code in it and past it in piwigo directory ?
can you tell me step by step please

Offline

 

#6 2012-06-23 01:01:38

pewe
Member
2012-03-16
439

Re: Error

1. Open 'notepad' (or a similar text editing program).

2. Copy the following (between but excluding the ==== lines)

=======
upload_max_filesize = 200M
post_max_size = 200M
date.timezone = Europe/London
memory_limit = 400M
=======
(You may not need the date.timezone line (or use your local setting from here - http://php.net/manual/en/timezones.php by selecting your continent and then region from the next page)
You may also not need the memory_limit line - depends what you host has set for this in their php ini.)

3. Paste it into the empty notepad document.

4. Click File/Saveas and save the document as php.ini - choose the 'all files' file type in the save dailoguue otherwise notepad will save the file as a .txt file.

5. Upload the php.ini file using ftp to the 'Piwigo' (or whatever you called it if not piwigo) directory.

Now go to piwigo and try uploading an image - see what it says about file sizes.

Offline

 

#7 2012-06-23 20:37:46

nomi00001
Member
2012-03-17
150

Re: Error

sorry for late reply sir i am from pakistan and there is no pakistan in here can i use india
i use this code
upload_max_filesize = 200M
post_max_size = 200M
date.timezone = Europe/London
memory_limit = 400M

the error is remove but when i upload the wallpapers its not working

You are not authorized to access the requested page

Last edited by nomi00001 (2012-06-23 20:55:20)

Offline

 

#8 2012-06-23 20:46:25

nomi00001
Member
2012-03-17
150

Re: Error

when i delete the php.ini so i cant upload anything
Error on file "Aftab_Shivdasani_hd_wallpaper.jpg" : The uploaded file was only partially uploaded

Last edited by nomi00001 (2012-06-23 20:55:55)

Offline

 

#9 2012-06-23 23:34:19

pewe
Member
2012-03-16
439

Re: Error

If I understand you correctly, having the php.ini file in the Piwigo directory allows you to upload the jpg, but there is an access error.

I see no reason why the presence of the php.ini would cause access problems, but I have little knowledge of php and don't know anything about how your server  is set up.

I know the use of the php.ini resolved my problem with uploading larger file sizes than 8mb and I get no errors, so maybe you need to ask your hosting provider.

Offline

 

#10 2012-06-23 23:49:02

nomi00001
Member
2012-03-17
150

Re: Error

i have to site runing piwigo on it with same theme but in only one this problem have and the one which have the problem some days ago i change his hosting and again transfer to my old hosting they put
.listing file in my every folder dont know why now i have to site runing piwigo on it with same hosting the one is good but the other have this problem now i cant upload i single 200kb file

Offline

 

#11 2012-06-24 00:15:44

pewe
Member
2012-03-16
439

Re: Error

So - both sites are with the same host.
One piwigo installation works, the second does not.

In that situation I would ask the host to explain why they are different - he should make them operate the same.

Offline

 

#12 2012-06-24 00:19:09

nomi00001
Member
2012-03-17
150

Re: Error

i will ask the hosting company but i am not about the 20mb limit its about i cant upload any thing to my one site is there any thing to clear temp file in piwigo

i get this error now

Sunny_Leone_with_puppies_hd_wallpaper.jpg, IO Error
Error on file "Sunny_Leone_with_puppies_hd_wallpaper.jpg" : The uploaded file was only partially uploaded

Last edited by nomi00001 (2012-06-24 00:21:30)

Offline

 

#13 2012-06-24 00:30:06

pewe
Member
2012-03-16
439

Re: Error

I am not familiar with how Piwigo is developed, but if you have a problem with one installation, but the other works and they are both on the same host, it sounds to me that the second installation could be corrupt.

Try deleting the whole Piwigo directory, and (as long as you have no images uploaded already) if you have access to MYSql on the server, empty the database using PHPMyadmin, then re upload and install Piwigo again and see if that helps.

Offline

 

#14 2012-06-24 00:38:21

nomi00001
Member
2012-03-17
150

Re: Error

i am runing my site from 4 months i can efford to lose all my data the problem i have to its because i change my hosting and come back to old hosting in my new hosting the php version is new thats why i think is there any other way please i cant upload a single file now

http://i1188.photobucket.com/albums/z414/ayan00001/3.jpg

Last edited by nomi00001 (2012-06-24 00:47:39)

Offline

 

#15 2012-06-24 04:15:49

pewe
Member
2012-03-16
439

Re: Error

Not sure what to advise here - you probably are now in need of some support from a Piwigo developer.

However, one final thing I can suggest you could try.

Upload Piwigo to a new directory, then copy the contents of the 'upload' directory from the old to the new installation (these are the images).
Also copy the file 'database.inc.php' from the 'local/config' directory on the old to the new installation.

Run piwigo from the new directory and see what happens.

Offline

 

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2024 · Contact