Announcement

#1 2011-04-28 21:50:06

Gust
Member
2010-06-02
77

error in php.ini file

when I want to upload a picture, I see this message in the header:
In your php.ini file, the upload_max_filesize (10MB) is bigger than post_max_size (8MB), you should change this settings

Then, I see this error:
Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 3200 bytes) in /pad/to/my/website/photo_album/admin/include/functions_upload.inc.php on line 254

What should I do?

Offline

 

#2 2011-04-28 21:53:28

plg
Piwigo Team
Nantes, France, Europe
2002-04-05
13786

Re: error in php.ini file

Gust wrote:

when I want to upload a picture, I see this message in the header:
In your php.ini file, the upload_max_filesize (10MB) is bigger than post_max_size (8MB), you should change this settings

The PHP configuration should be changed. post_max_size should be bigger than upload_max_filesize

Gust wrote:

Then, I see this error:
Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 3200 bytes) in /pad/to/my/website/photo_album/admin/include/functions_upload.inc.php on line 254

What is your Piwigo version?

Offline

 

#3 2011-04-29 16:24:48

Gust
Member
2010-06-02
77

Re: error in php.ini file

plg wrote:

The PHP configuration should be changed. post_max_size should be bigger than upload_max_filesize

I can 't find a php.ini file

plg wrote:

What is your Piwigo version?

Piwigo 2.1.2

Offline

 

#4 2011-04-29 17:21:01

NWS
Member
Seattle, WA
2011-04-02
175

Re: error in php.ini file

I had exactly the same problem. The PHP.INI file is something that your webhost controls with the version of PHP that they use.


MY host is 1and1 (using PHP 5) and I couldn't get access (shared hosting) to the php.ini file. Through their help files and contact with their tech support they told me how to write a new php file that would bypass the original php.ini file.  Then I was suppose to put it in every folder that Piwigo uses that needs the php file.

After hours of attempting to fix the issue all it managed to do was create more problems, to the point I couldn't even upload any images at all. Even after deleting the php file I wrote from all the folders, it was still a mess.

My solution was to use ploader instead. I've had no issues uploading any size file (up to 10 megs so far).

Last edited by NWS (2011-04-29 17:23:10)

Offline

 

#5 2011-04-29 17:41:55

P@t
Piwigo Team
Nice
2007-06-13
4098

Re: error in php.ini file

NWS wrote:

MY host is 1and1 (using PHP 5).

If you try to upload photos bigger than 3000px (width), you will get a memory error.
Try this plugin: [extension by P@t] External ImageMagick, it's work perfectly on 1and1.


P@t

Offline

 

#6 2011-04-29 17:55:52

Gust
Member
2010-06-02
77

Re: error in php.ini file

I have installed the plugin too, for 2.1.2 and I see this error:

Warning: array_push() [function.array-push]: First argument should be an array in /pad/to/my/fotoalbum/plugins/external_ImageMagick/main.inc.php on line 24

Warning: Cannot modify header information - headers already sent by (output started at /pad/to/my/fotoalbum/plugins/external_ImageMagick/main.inc.php:24) in /pad/to/my/fotoalbum/include/page_header.php on line 98

Last edited by Gust (2011-04-29 17:56:22)

Offline

 

#7 2011-04-30 19:02:17

NWS
Member
Seattle, WA
2011-04-02
175

Re: error in php.ini file

P@t wrote:

NWS wrote:

MY host is 1and1 (using PHP 5).

If you try to upload photos bigger than 3000px (width), you will get a memory error.
Try this plugin: [extension by P@t] External ImageMagick, it's work perfectly on 1and1.

Mine are 3872 and was getting a memory error. 1and1 told me how to write the php.ini file so I wouldn't have that problem but it didn't work. With ploader I have no problems, BUT, sometimes it would be nicer to upload through the Piwigo interface.

I'll give the plugin a shot and see how that works. Thanks!

Offline

 

#8 2011-04-30 21:57:06

P@t
Piwigo Team
Nice
2007-06-13
4098

Re: error in php.ini file

Gust wrote:

I have installed the plugin too, for 2.1.2 and I see this error:

Warning: array_push() [function.array-push]: First argument should be an array in /pad/to/my/fotoalbum/plugins/external_ImageMagick/main.inc.php on line 24

I will check that... but this error significate that piwigo is not able to locate ImageMagick installation.


P@t

Offline

 

#9 2011-07-06 13:28:37

guest2011
Guest

Re: error in php.ini file

plg wrote:

Gust wrote:

when I want to upload a picture, I see this message in the header:
In your php.ini file, the upload_max_filesize (10MB) is bigger than post_max_size (8MB), you should change this settings

The PHP configuration should be changed. post_max_size should be bigger than upload_max_filesize

Gust wrote:

Then, I see this error:
Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 3200 bytes) in /pad/to/my/website/photo_album/admin/include/functions_upload.inc.php on line 254

What is your Piwigo version?

Hi, i'm just finding my feet with this but i'm new to it all.
Could you please tell me where i can change the post_max_size so that it's bigger than upload size?

Piwigo is great BTW! best i've tried.

 

#10 2011-07-07 11:06:44

P@t
Piwigo Team
Nice
2007-06-13
4098

Re: error in php.ini file

guest2011 wrote:

Hi, i'm just finding my feet with this but i'm new to it all.
Could you please tell me where i can change the post_max_size so that it's bigger than upload size?

Piwigo is great BTW! best i've tried.

If your hoster is 1and1, you can create a php.ini file a the root of piwigo installation, and write something like that inside:

Code:

upload_max_filesize = 40M
post_max_size = 40M

P@t

Offline

 

#11 2011-10-07 07:57:00

mohananil
Guest

Re: error in php.ini file

VDaemon Error: Group Validator must contain at least one Validator

      </td>
      <td>
        <vlgroup size="1" name="age">
            <option selected value="age">Age</option>
            <option value="1">1</option>

"VDaemon Error: Validator referenced by Validators attribute not found"

    <tr>
      <td>
        <vllabel errclass="error" validators="Age" for="Value" cerrclass="controlerror">Age</vllabel>
      </td>
      <td>





please any body can help me what is this error...............

 

#12 2011-10-07 07:59:33

mohananil
Guest

Re: error in php.ini file

hai,

    i am creating a new website almost it is over with some errors.....



  In my home page i want code in javascript how to insert a photo dynamically by user .

 

Board footer

Powered by FluxBB

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