Previous Thread
Next Thread
Print Thread
Hop To
#253196 07/14/2013 2:34 PM
Joined: Jan 2010
Posts: 84
journeyman
journeyman
Joined: Jan 2010
Posts: 84
I get the below when I try to add an image to the photo gallery.

Fatal error: Call to undefined function resize_image_() in /home/urbanleg/public_html/taphophilia.net/forum/libs/image.inc.php on line 40

Joined: Dec 2003
Posts: 6,560
Likes: 78
Joined: Dec 2003
Posts: 6,560
Likes: 78
Not sure of the line number because it used to be line 66.
But this error is usually caused by not having a defined Image library program in the ubb control panel.
There are several placed to declare either GD2 or imagemagick.

Couple questions:
What version UBB are you using?
Has this been working before or is this the first attempt to use the gallery?



Blue Man Group
There is no such thing as stupid questions. Just stupid answers
Joined: Jan 2010
Posts: 84
journeyman
journeyman
Joined: Jan 2010
Posts: 84
Using current version 7.5.7 and no it's been working fine.

Joined: Dec 2003
Posts: 6,560
Likes: 78
Joined: Dec 2003
Posts: 6,560
Likes: 78
A quick look, it appears t could be a problem with the actual upload file itself.
It could be missing a file extension.
What is the actual file, path you used.


Blue Man Group
There is no such thing as stupid questions. Just stupid answers
Joined: Jan 2010
Posts: 84
journeyman
journeyman
Joined: Jan 2010
Posts: 84
Originally Posted by Ruben
A quick look, it appears t could be a problem with the actual upload file itself.
It could be missing a file extension.
What is the actual file, path you used.

Quote
What is the actual file, path you used.

It's one off my computer not sure what the file path is.

Joined: Dec 2003
Posts: 6,560
Likes: 78
Joined: Dec 2003
Posts: 6,560
Likes: 78
Okay what is the complete file name as it is saved on your computer?
You also could try it out on this sites gallery.


Blue Man Group
There is no such thing as stupid questions. Just stupid answers
Joined: Jan 2010
Posts: 84
journeyman
journeyman
Joined: Jan 2010
Posts: 84
Originally Posted by Ruben
Okay what is the complete file name as it is saved on your computer?
You also could try it out on this sites gallery.

Seems it exceeds the maximum of 1M....to big I guess. It's 2.31KBs and its 4.00 on the disk....how do I up the size? Could that be causing the problem?

Joined: Dec 2003
Posts: 6,560
Likes: 78
Joined: Dec 2003
Posts: 6,560
Likes: 78
Well it could be another issue not addressed yet.
But anyway you need to decide how big a file to allow by user group.
Then the entry is in bytes.

So I assume you are a admin and to allow a admin larger file sizes.

GOTO Control Panel » Group Management
scroll across to the right from administrators and click on Forum under edit permissions.
Select
Maximum size of gallery images
Note the max size in the note section which is the max size set by your host.
If this forum is a gallery forum, this setting dictates how large each image may be. Max size set in php.ini is xxM, so you may not exceed this size.

Enter a value in the gallery forum or forums in bytes.
So to allow a 1mb file the value would be 1048576

And select update.
Now if you desire to upsize other groups just do the same for them

Also while you are there another field called
Total # of gallery images
will limit the number of files they can upload at a time.

We also have some limited nfo on the WIKI at:
http://www.ubbwiki.com/wiki/view/81/gallery.html


Blue Man Group
There is no such thing as stupid questions. Just stupid answers
Joined: Jan 2010
Posts: 84
journeyman
journeyman
Joined: Jan 2010
Posts: 84
Did all that and it's still giving the same error. Apparently my host does not have GD2 installed and I do not know if they will install it or not. Is there a way to get around this?

Joined: Dec 2003
Posts: 6,560
Likes: 78
Joined: Dec 2003
Posts: 6,560
Likes: 78
I just registered and tried your site
http://taphophilia.net
I don't see any posts at all in the gallery.
So I am back to you need to verify what graphics library you are using and set it correctly.
Normally GD2 is by default by your host.
So set it to that at least to start with in
Control Panel » Gallery Settings
Or you can run php info and figure out what you have.



Blue Man Group
There is no such thing as stupid questions. Just stupid answers
Joined: Jan 2010
Posts: 84
journeyman
journeyman
Joined: Jan 2010
Posts: 84
It's using GD2. It's the only option it gives me.... From php info:

GD Support enabled
GD Version bundled (2.1.0 compatible)
FreeType Support enabled
FreeType Linkage with freetype
FreeType Version 2.3.11
GIF Read Support enabled
GIF Create Support enabled
JPEG Support enabled
libJPEG Version 6b
PNG Support enabled
libPNG Version 1.2.49
WBMP Support enabled
XPM Support enabled
libXpm Version 30411
XBM Support enabled

Last edited by elijahone; 07/14/2013 4:39 PM.
Joined: Dec 2003
Posts: 6,560
Likes: 78
Joined: Dec 2003
Posts: 6,560
Likes: 78
But what does:
Control Panel » Gallery Settings
What Graphics Library do you want to use?
Have?
It should have:
Use GD2


Blue Man Group
There is no such thing as stupid questions. Just stupid answers
Joined: Jun 2006
Posts: 16,292
Likes: 116
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,292
Likes: 116
a resize_image error usually means that an image library hasn't been selected from the CP which is a pretty easy fix of going to the graphics section and submitting the page...


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!

Link Copied to Clipboard
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
spam issues
by ECNet - 03/19/2024 11:45 PM
Looking for a forum
by azr - 03/15/2024 11:26 PM
Editing Links in Post
by Outdoorking - 03/15/2024 9:31 AM
Question on barkrowler and the like
by Mors - 02/29/2024 6:51 PM
Member Permissions Help
by domspeak - 02/27/2024 6:31 PM
Who's Online Now
2 members (Havenofsobriety, rootman), 624 guests, and 106 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 20230217)