Previous Thread
Next Thread
Print Thread
Hop To
Joined: Aug 2008
Posts: 12
M
stranger
stranger
M Offline
Joined: Aug 2008
Posts: 12
At first, when trying to add images to my gallery, I was getting the following error
Quote
Fatal error: Call to undefined function resize_image_()in /hermes/web09/b1159/mysite/htdocs/domain/forums/libs/image.inc.php on line 66

so I followed the instructions on simply going to my Gallery settings and saving them. I did not need to make changes.

Now I'm getting this error
Quote
Fatal error: Allowed memory size of 16777216 bytes exhausted (tried to allocate 2512 bytes) in /hermes/web09/b1159/mysite/htdocs/domain/forums/libs/image.inc.php on line 78
What could be the issue? Max File attachment size is 3 megs. I was able to successfully upload a 47kb picture, but not a 233kb picture.

Joined: Mar 2008
Posts: 326
D
Enthusiast
Enthusiast
D Offline
Joined: Mar 2008
Posts: 326
You said you fixed the first error? That error means you either don't have ImageMagick installed or are pointing to the wrong place in your config.

I'm not sure why you're getting that second error, but adding this line near the top of your image.inc.php file will work as a short-term fix until you can correct the underlying problem:
PHP Code
ini_set('memory_limit', '48'); 
Keep in mind it's only for a temporary fix. It adjusts the memory limit for that file; however, it would probably be a good idea to find the cause of the problem so you can nip it in the bud. You can adjust the '48' up or down to your liking. If you have access to your php.ini file, you can change this setting in there for all php files. Look for the line "memory_limit ="

Joined: Jun 2006
Posts: 16,301
Likes: 116
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,301
Likes: 116
the first error is due to a blank setting on the config file for the graphics processor; by simply submitting the page once it chooses a default processor.

As for the second limit, dl pointed it out, the memory size in your php.ini is too small, his fix actually will fix this for the ubb (as long as your host allows you to chance such things) otheriwse a setting in the php.ini will fix it.


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum, Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Joined: Aug 2008
Posts: 12
M
stranger
stranger
M Offline
Joined: Aug 2008
Posts: 12
The first suggestion didn't work. Got an error as soon as I clicked on the Image Manager link saying....
Quote
The server encountered an unexpected condition which prevented it from fulfilling the request.
The script had an error or it did not produce any output. If there was an error, you should be able to see it in the error log.

So I'm going to try editing the php.ini file

Joined: Aug 2008
Posts: 12
M
stranger
stranger
M Offline
Joined: Aug 2008
Posts: 12
the php.ini file says...
Quote
memory_limit = 18M ; Maximum amount of memory a script may consume (8MB)

It seems I really shouldn't be having this problem


Link Copied to Clipboard
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
Version 7.7.5 Images suddenly not displaying
by Stovebolt - 05/04/2024 11:19 AM
Bots
by Outdoorking - 04/13/2024 5:08 PM
Do I need to rebuild my database?
by Baldeagle - 04/07/2024 2:58 AM
Who's Online Now
1 members (Geoff), 865 guests, and 153 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Los Angeles
Los Angeles
by isaac, August 6
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Stones
Stones
by isaac, August 19
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20240506)