Author Topic: Fatal error: Allowed memory size of 25165824 bytes exhausted  (Read 15573 times)

0 Members and 1 Guest are viewing this topic.

Offline nhat_lang0000

  • Pre-Newbie
  • Posts: 4
    • View Profile
Fatal error: Allowed memory size of 25165824 bytes exhausted (tried to allocate 13056 bytes) in /home2/choadaoo/public_html/lienhoa/gallery/includes/image_utils.php on line 80
 
this is the error i got from 1.7.4 upgraded...
i unstalled the check new images... when i went in there to add (check for new images) then added... but then this error always shown... can't add the images
please help

Offline thunderstrike

  • 4images Guru
  • *******
  • Posts: 2.327
    • View Profile
Re: Fatal error: Allowed memory size of 25165824 bytes exhausted
« Reply #1 on: January 13, 2008, 12:50:19 AM »
Please report message to host. Is server error - no 4images.
8 steps need when ask question -

- PHP version (ACP - > phpinfo())
- mySQL version (ACP - > phpinfo())
- 4images version
- Post screenshot / URL
- Post code in BB Code (no need full file for code) or post attach file
- It doesn't work. What is say - what is do for no work
- Install MOD ? If so - please say (troubleshooting)
- Read FAQ ? Install Bug fixes ?

Offline ladyoz

  • Newbie
  • *
  • Posts: 15
    • View Profile
Re: Fatal error: Allowed memory size of 25165824 bytes exhausted
« Reply #2 on: January 29, 2008, 11:05:12 PM »
I had the same problem, so I contacted my host's Help Desk.  Their reply was:

"Your scripts are attempting to use more than php's default memory limit for scripts. Accounts on our shared servers are not allowed to use an excessive amount of system resources. If your scripts need to use more than what is currently available, you should either try optimizing your scripts and databases or look for a dedicated server."

They doubled the limit temporarily, which allowed me to restore my database.  It runs fine now.

Hope this helps.
Oz.
Despite the cost of living, it's still popular ...

Offline nikitaspj

  • Newbie
  • *
  • Posts: 10
    • View Profile
Re: Fatal error: Allowed memory size of 25165824 bytes exhausted
« Reply #3 on: February 16, 2008, 05:36:58 PM »
Yesterday this was not happening.What we should do to optimize the script for that .Somebody can say ?

Offline EdwinK

  • Pre-Newbie
  • Posts: 8
    • View Profile
Re: Fatal error: Allowed memory size of 25165824 bytes exhausted
« Reply #4 on: September 02, 2008, 07:56:20 AM »
Contacted my host about the same problem

'Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 40000 bytes) in /home/*****/public_html/gallery/includes/image_utils.php on line 80"

Got the following answer:

Quote

The memory limit is 128Mb, and 40000 bytes is well within that limit. This may be due to your script, which we cannot support.

Regards,


Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: Fatal error: Allowed memory size of 25165824 bytes exhausted
« Reply #5 on: September 02, 2008, 08:12:00 AM »
Hello and welcome to 4images forum.

128Mb = 134217728 bytes
The script used up all 134217728 bytes but needed more 40000 bytes to complete the task.

There is nothing you can do about it, except maybe don't use GD library to create thumbnails / resize images, try use ImageMagick instead.
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline EdwinK

  • Pre-Newbie
  • Posts: 8
    • View Profile
Re: Fatal error: Allowed memory size of 25165824 bytes exhausted
« Reply #6 on: September 02, 2008, 09:42:00 AM »
Will try that. If I can figure out what the path to ImageMagick is ;)