Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 Programming Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 07-27-2003, 02:36 PM
Noel 4 DMB Noel 4 DMB is offline
 
Join Date: Apr 2002
Posts: 44
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Anyone know about GD 2.0? (Still having problems)

Hello,

This questions is about Velocd's photo gallery:
https://vborg.vbsupport.ru/showthrea...threadid=49565

This hack seems to be great, but im having a small problem here that I cant seem to fix. To view for yourself, register at www.amidreaming.org/dreamers and try to upload a photo:

PHP Code:
Fatal errorimagecreatetruecolor(): requires GD 2.0 or later in
 
/home/virtual/site1/fst/var/www/html/dreamers/gdresize.php on line 22 
I just downloaded the latest GD, and uploaded the files to the /etc/gd directory. I ran the commands in the install file and everything seemed to work fine. There weren't any errors and each command line (configure, make, make install) each apparently did what they were supposed to. But when i went back to try out the hack, the uploading didn't work.

Right now, everything but the uploading of the photo works. Do you guys have any idea what ive done wrong? Should I install GD into another directory? *clueless*
Reply With Quote
  #2  
Old 07-27-2003, 03:00 PM
filburt1 filburt1 is offline
 
Join Date: Feb 2002
Location: Maryland, US
Posts: 6,144
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Did you disable the previous GD library?
edit: you also need to recompile PHP every time you install a module when PHP is on *Nix.
Reply With Quote
  #3  
Old 07-27-2003, 03:01 PM
Noel 4 DMB Noel 4 DMB is offline
 
Join Date: Apr 2002
Posts: 44
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Today at 05:00 PM filburt1 said this in Post #2
Did you disable the previous GD library?
edit: you also need to recompile PHP every time you install a module when PHP is on *Nix.

Could you give me a brief rundown of how to do that? I am very technical illiterate I am a designer
Reply With Quote
  #4  
Old 07-27-2003, 04:57 PM
NTLDR's Avatar
NTLDR NTLDR is offline
Coder
 
Join Date: Apr 2002
Location: Bristol, UK
Posts: 3,644
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Upload a file with:

PHP Code:
<?php

phpinfo
();

?>
In it and search for GD, that will tell you what version you have, if any. If you have PHP 4.3.0 or above it comes with GD, see PHP.net for install instructions and make sure you use --with-gd in the ./configure step.
Reply With Quote
  #5  
Old 07-27-2003, 06:34 PM
Noel 4 DMB Noel 4 DMB is offline
 
Join Date: Apr 2002
Posts: 44
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Today at 06:57 PM NTLDR said this in Post #4
Upload a file with:

PHP Code:
<?php

phpinfo
();

?>
In it and search for GD, that will tell you what version you have, if any. If you have PHP 4.3.0 or above it comes with GD, see PHP.net for install instructions and make sure you use --with-gd in the ./configure step.

Thanks, I just installed the latest PHP. However, I went into the php.ini file and noticed that it calls for gd.so. When I went into the directory that it points to, it wasnt there. So i did an SLOCATE on gd.so, and all that exists is libgd.so. Should I edit the php.ini to point to libgd.so and copy that file into the right directory?

Im really lost lol
Reply With Quote
  #6  
Old 07-27-2003, 07:50 PM
Velocd's Avatar
Velocd Velocd is offline
 
Join Date: Mar 2002
Location: CA University
Posts: 1,696
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I've only configued GD2 on Windows platform, so I might be able to help you out there if you are on Windows.

I'm running the latest version of PHP, on my localhost, and these are the steps I took to enable GD2:

In php.ini, find:

Code:
;extension=php_gd2.dll
And remove the semicolon at the beginning of the line.

Now find:
Code:
; Directory in which the loadable extensions (modules) reside.
extension_dir = "c:\Network\Php\extensions"
And make sure the path points to your PHP 'extensions' folder.

php_gd2.dll should be located in that folder already, if you have PHP 4.3.0 or above.

Hope this info helps some.
Reply With Quote
  #7  
Old 07-27-2003, 08:52 PM
Noel 4 DMB Noel 4 DMB is offline
 
Join Date: Apr 2002
Posts: 44
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks for taking the time to post that Veloc, but im on a *NIX server.

My main problem is that i can't figure out what file i need to point the GD extension to... I looked around, and there are no gd.so files anywhere on my server, even after ive (config/make/make installed) GD. The only one that even looks like it might be right is a file called libgd.so, but for some reason that doesnt work.

Its so frustrating, because your hack is perfect for my site.
Reply With Quote
  #8  
Old 07-27-2003, 08:58 PM
NTLDR's Avatar
NTLDR NTLDR is offline
Coder
 
Join Date: Apr 2002
Location: Bristol, UK
Posts: 3,644
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Can you post the top part of that file which says the configure command. Does that have --with-gd or anything smiliar in it?
Reply With Quote
  #9  
Old 07-27-2003, 09:05 PM
Noel 4 DMB Noel 4 DMB is offline
 
Join Date: Apr 2002
Posts: 44
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

NTLDR:

I can show you detailed info if you can contact me at Noel4DMB on AIM. I ran the file you suggested and it still says im using PHP 4.1.1, even thought i untarred the newest PHP and ran the commands. But here's what you requested:

PHP Code:
'./configure' 'i386-redhat-linux' '--prefix=/usr' '--exec-prefix=/usr' '--bindir=/usr/bin' '-- 
That's the first line of the commands.
Reply With Quote
  #10  
Old 07-28-2003, 11:23 AM
Dean C's Avatar
Dean C Dean C is offline
 
Join Date: Jan 2002
Location: England
Posts: 9,071
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

*Moved to the appropriate forum*

- miSt
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 09:32 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04039 seconds
  • Memory Usage 2,257KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (2)bbcode_code
  • (4)bbcode_php
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete