Facebook  Twitter 

SMFHacks.com

+-

SMFHacks.com

+- User Information

Welcome, Guest.
Please login or register.
 
 
 
Forgot your password?

+- Forum Stats

Members
Total Members: 4255
Latest: andreios
New This Month: 3
New This Week: 1
New Today: 0
Stats
Total Posts: 43259
Total Topics: 7518
Most Online Today: 177
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 187
Total: 187

Author Topic: Help:Fatal error: Allowed memory size of 50331648  (Read 28758 times)

0 Members and 1 Guest are viewing this topic.

Offline skip

  • Member
  • *
  • Posts: 16
    • View Profile
Re: Help:Fatal error: Allowed memory size of 50331648
« Reply #30 on: March 07, 2009, 06:19:57 am »
The change to gallery.php and subs-graphics.php doesn't seem to have worked. I tried a bulk upload of 9 images total size 2.17MB

similar memory error message as the others.
Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 4096 bytes) in /Sources/Subs-Graphics.php on line 315


My hosting provider said:

Php SUEXEC is enabled on the server
php.ini copied to my home directory

I checked both the upload_file_size and post_size which seem to be above the default

upload_max_filesize = 16M
post_max_size = 8M

Any ideas to resolve would be most appreciated


Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16436
    • View Profile
Re: Help:Fatal error: Allowed memory size of 50331648
« Reply #31 on: March 07, 2009, 09:39:12 am »
Right now it looks like your php settings limit it to 32mb

http://www.wallpaperama.com/forums/how-to-change-memory-limit-php-apache-server-t53.html

I would set it around 64mb to 128mb
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline skip

  • Member
  • *
  • Posts: 16
    • View Profile
Re: Help:Fatal error: Allowed memory size of 50331648
« Reply #32 on: March 07, 2009, 10:10:13 am »
Thanks for the guidance.

Have just done the change now and phpinfo is now showing 128MB instead of 32MB.

The article in the link you kindly posted, says to restart Apache

As I don't think I have control over that I will need to ask my hosting provider to do it. But what's strange is that the value returned now shows 128MB even though it hasn't been restarted.

Offline skip

  • Member
  • *
  • Posts: 16
    • View Profile
Re: Help:Fatal error: Allowed memory size of 50331648
« Reply #33 on: March 07, 2009, 12:14:37 pm »
btw is there no way to parse the memory?

I had no problems before so it seems like it's built up after the gallery got to a certain size. is this possible?

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16436
    • View Profile
Re: Help:Fatal error: Allowed memory size of 50331648
« Reply #34 on: March 07, 2009, 12:48:47 pm »
This part of the php images libraries. Does not make much sense to be either how they use so much memory for a small task of resizing a picture.

The memory usage goes up briefly for when the image is resized then goes back down to normal
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline Cepheus

  • Member
  • *
  • Posts: 11
    • View Profile
Re: Help:Fatal error: Allowed memory size of 50331648
« Reply #35 on: April 11, 2009, 04:34:11 pm »
I'm getting the error:

Fatal error: Allowed memory size of 31457280 bytes exhausted (tried to allocate 7776 bytes) in /home/?????/public_html/forum/Sources/Gallery.php on line 4610

I have upped the @ini value to 128Mb but still getting the error. Anything else I can try?



EDIT: Ignore me, I;d missed one of the @ini values out. Now changed and all working again :D
« Last Edit: April 11, 2009, 04:47:50 pm by Cepheus »

 

Related Topics

  Subject / Started by Replies Last post
2 Replies
4018 Views
Last post July 03, 2007, 11:32:53 pm
by djrichards
2 Replies
22275 Views
Last post January 07, 2008, 02:36:45 am
by Arie.
3 Replies
4628 Views
Last post February 06, 2008, 02:07:58 pm
by MoreBloodWine
2 Replies
6087 Views
Last post May 09, 2009, 10:58:39 am
by SMFHacks
4 Replies
3024 Views
Last post November 22, 2011, 12:13:11 pm
by jstop

+- Recent Topics

No thumbnails on new uploads by SMFHacks
March 27, 2024, 02:10:41 pm

Display the Contact Page for guests by SMFHacks
March 27, 2024, 10:55:43 am

is it possible to add support for odysee.com by fvlog19
March 21, 2024, 08:47:51 am

Request for admin notification by davejo
March 10, 2024, 01:31:59 am

I need help with torrent upload by Ineedsmfhelp
March 09, 2024, 10:01:13 pm

an idea for new mod (( content type with different display )) by SMFHacks
February 27, 2024, 01:36:27 pm

[Mod] RSS Feed Poster by SMFHacks
February 27, 2024, 11:57:18 am

find duplicate pictures by fvlog19
February 14, 2024, 02:22:40 pm

Error uploading video. by SMFHacks
February 08, 2024, 02:04:16 pm

Gallery icon as last added image by fvlog19
February 01, 2024, 01:04:56 pm

Powered by EzPortal