Previous Thread
Next Thread
Print Thread
Hop To
Page 1 of 2 1 2
#174291 01/18/2007 7:12 PM
Joined: Sep 2006
Posts: 165
L
Member
Member
L Offline
Joined: Sep 2006
Posts: 165
When I turn CAPCHA on I get the red x for a missing image. Is CAPCHA working?

Thanks

Larry Miller #174292 01/18/2007 7:16 PM
Joined: Jun 2006
Posts: 1,344
G
veteran
veteran
G Offline
Joined: Jun 2006
Posts: 1,344
what path did you set for the convert and mogrify? Are you pointing it to the bianary

gliderdad #174293 01/18/2007 7:25 PM
Joined: Dec 2006
Posts: 1,235
veteran
veteran
Joined: Dec 2006
Posts: 1,235
I get the red x for a few seconds then the characters appears. Where to you set this "convert and mogrify" path thingy?

ScriptKeeper #174294 01/18/2007 7:31 PM
Joined: Jun 2006
Posts: 1,344
G
veteran
veteran
G Offline
Joined: Jun 2006
Posts: 1,344
control panel--> paths and urls. should be set to /usr/bin/mogrify and /usr/bin/convert

gliderdad #174296 01/18/2007 7:36 PM
Joined: Jun 2006
Posts: 9,242
Likes: 1
R
Former Developer
Former Developer
R Offline
Joined: Jun 2006
Posts: 9,242
Likes: 1
There are a couple of ways to test if it's working as well, if you're logged in as an admin.

If you're using ImageMagick, then you'd use

ubbthreads.php?ubb=captcha&test=1&type=im

If you're using GD2, then you'd use

ubbthreads.php?ubb=captcha&test=1&type=gd

Rick #174302 01/18/2007 7:51 PM
Joined: Jun 2006
Posts: 16,289
Likes: 115
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,289
Likes: 115
I think when 7.1 is finalized we really need to let people know to set their paths for ImageMagick lol... Perhaps have the steps in the upgrade.php file?



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!
Rick #174336 01/18/2007 8:57 PM
Joined: Nov 2006
Posts: 3,095
Likes: 1
Carpal Tunnel
Carpal Tunnel
Joined: Nov 2006
Posts: 3,095
Likes: 1
is "convert and mogrify" the actual name or are people just mis typing the name?

ntdoc #174342 01/18/2007 9:01 PM
Joined: Jun 2006
Posts: 1,344
G
veteran
veteran
G Offline
Joined: Jun 2006
Posts: 1,344
actual names lol

gliderdad #174348 01/18/2007 9:17 PM
Joined: Jun 2006
Posts: 16,289
Likes: 115
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,289
Likes: 115
cool names arent they wink


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!
Rick #174353 01/18/2007 9:24 PM
Joined: Sep 2006
Posts: 165
L
Member
Member
L Offline
Joined: Sep 2006
Posts: 165
Originally Posted by Rick
There are a couple of ways to test if it's working as well, if you're logged in as an admin.

If you're using ImageMagick, then you'd use

ubbthreads.php?ubb=captcha&test=1&type=im

If you're using GD2, then you'd use

ubbthreads.php?ubb=captcha&test=1&type=gd

OK, Mogrify? Ok, so I'm old smile

That is a new word. I saw the GD2 in the drop down. That was the only choice beside disable so I clicked that.

Where do I put this? ubbthreads.php?ubb=captcha&test=1&type=gd

Wow do I feel old and helpless smile

Larry Miller #174357 01/18/2007 9:30 PM
Joined: Jun 2006
Posts: 16,289
Likes: 115
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,289
Likes: 115
Morgify and convert are named by the creators of ImageMagick; before them they weren't tools.

As for where you put it, load up your forum, replace ubbthreads.php and everything after it (in your address bar) with that provided above.


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!
Gizmo #174388 01/19/2007 2:00 AM
Joined: Sep 2006
Posts: 165
L
Member
Member
L Offline
Joined: Sep 2006
Posts: 165
Originally Posted by Gizmo
Morgify and convert are named by the creators of ImageMagick; before them they weren't tools.

As for where you put it, load up your forum, replace ubbthreads.php and everything after it (in your address bar) with that provided above.


Yes, I did that and a blank page each time. I do not think I have ImageMagick but I see CAPTCHA in my images directory. What do I do now?

Rick #174389 01/19/2007 2:14 AM
Joined: Sep 2006
Posts: 165
L
Member
Member
L Offline
Joined: Sep 2006
Posts: 165
When I put Where do I put this? ubbthreads.php?ubb=captcha&test=1&type=gd in the address bar I get the following error

<br />
<b>Fatal error</b>: Call to undefined function: imagegif() in <b>/home/virtual/site3/fst/var/www/html/libs/captcha.inc.php</b> on line <b>263</b><br />

I see a captcha folder in my images directory. What am I missing (again)?

Larry Miller #174391 01/19/2007 2:58 AM
Joined: Jun 2006
Posts: 16,289
Likes: 115
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,289
Likes: 115
ImageMagick does not come *standard* on servers; if you're in a shared hosting environment, make sure the path to mortify and convert are set properly (in your paths section of your control panel). If it isn't installed, your webhost will need to install it for you.

GD itself has to be compiled into PHP; again, if your webhost does not have this you'll have to have them install it for you. You can see if it is installed by creating a phpinfo page:

phpinfo.php:
Code
<?php phpinfo(); ?>

Look for a heading of "GD" and post the result; if you don't see one, then it isn't installed.


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!
Gizmo #174464 01/19/2007 11:55 AM
Joined: Dec 2006
Posts: 1,235
veteran
veteran
Joined: Dec 2006
Posts: 1,235
The reason I get the red X before the image loads is that the source code reads "/images/blank.gif" and there isn't a blank.gif in that directory. When I put one in there it solves it.

ScriptKeeper #174467 01/19/2007 11:59 AM
Joined: Jun 2006
Posts: 9,242
Likes: 1
R
Former Developer
Former Developer
R Offline
Joined: Jun 2006
Posts: 9,242
Likes: 1
Will get that fixed for the next beta ScriptKeeper.

Rick #174493 01/19/2007 3:59 PM
Joined: Aug 2006
Posts: 1,649
Likes: 1
Pooh-Bah
Pooh-Bah
Joined: Aug 2006
Posts: 1,649
Likes: 1

Between ImageMagick and GD2, is there a preferred tool?


GangsterBB.NET (Ver. 7.6.1.1)
PHP Version 5.6.40 / MySQL 5.7.23-23 (was 5.6.41-84.1) / Apache 2.4.54
2007 Content Rulez Contest - Hon Mention
UBB.classic 6.7.2 - RIP
jgeoff #174494 01/19/2007 4:04 PM
Joined: Jun 2006
Posts: 9,242
Likes: 1
R
Former Developer
Former Developer
R Offline
Joined: Jun 2006
Posts: 9,242
Likes: 1
ImageMagick seems to have the most flexibility and available options. For example, the slight blurring that's done to the images takes quite a bit of work in GD2, while in ImageMagick it's very simple.

Gizmo #174519 01/19/2007 7:29 PM
Joined: Sep 2006
Posts: 165
L
Member
Member
L Offline
Joined: Sep 2006
Posts: 165
Originally Posted by Gizmo
ImageMagick does not come *standard* on servers; if you're in a shared hosting environment, make sure the path to mortify and convert are set properly (in your paths section of your control panel). If it isn't installed, your webhost will need to install it for you.

GD itself has to be compiled into PHP; again, if your webhost does not have this you'll have to have them install it for you. You can see if it is installed by creating a phpinfo page:

phpinfo.php:
Code
<?php phpinfo(); ?>

Look for a heading of "GD" and post the result; if you don't see one, then it isn't installed.

I maintain 2 dedicated servers. I understand that ImageMagick is on the server. Thanks for all your help and suggestions. Another challenge smile

ScriptKeeper #174520 01/19/2007 7:37 PM
Joined: Sep 2006
Posts: 165
L
Member
Member
L Offline
Joined: Sep 2006
Posts: 165
Originally Posted by ScriptKeeper
The reason I get the red X before the image loads is that the source code reads "/images/blank.gif" and there isn't a blank.gif in that directory. When I put one in there it solves it.

Thanks..I will try that

Larry Miller #174538 01/19/2007 9:08 PM
Joined: Jun 2006
Posts: 16,289
Likes: 115
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,289
Likes: 115
BTW, between ImageMagick and GD, I totally prefer and recommend ImageMagick (in fact, ImageMagick was my request when i finally got Rick to say he'd integrate a CAPTCHA)


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!
Larry Miller #174641 01/20/2007 8:58 AM
Joined: Sep 2006
Posts: 165
L
Member
Member
L Offline
Joined: Sep 2006
Posts: 165
Originally Posted by Larry Miller
Originally Posted by ScriptKeeper
The reason I get the red X before the image loads is that the source code reads "/images/blank.gif" and there isn't a blank.gif in that directory. When I put one in there it solves it.

Thanks..I will try that


That didn't work. same problem

Larry Miller #174642 01/20/2007 9:19 AM
Joined: Jun 2006
Posts: 16,289
Likes: 115
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,289
Likes: 115
Well, afaik, if you enter the test urls in and they come up blank, it means that the server you're attempting either isn't installed or it isn't working right.

Which would mean that either the path to your imagemagick binaries isn't properly set, that it isn't installled, or something is broken. For GD it means that PHP wasn't compiled with GD Support (if it was installed via yum then you may need to download the appropriate module).


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!
Gizmo #174643 01/20/2007 9:36 AM
Joined: Sep 2006
Posts: 165
L
Member
Member
L Offline
Joined: Sep 2006
Posts: 165
Originally Posted by Gizmo
Well, afaik, if you enter the test urls in and they come up blank, it means that the server you're attempting either isn't installed or it isn't working right.

Which would mean that either the path to your imagemagick binaries isn't properly set, that it isn't installled, or something is broken. For GD it means that PHP wasn't compiled with GD Support (if it was installed via yum then you may need to download the appropriate module).


I am told the imagemagik is installed, that the paths that were suggested above are correct. I am very confused

Larry Miller #174645 01/20/2007 10:19 AM
Joined: Oct 2006
Posts: 128
member
member
Joined: Oct 2006
Posts: 128
Godaddy asks me if its Image Magick version 5 or 6...does it matter?

Last edited by tonto69; 01/20/2007 10:24 AM.
tonto69 #174647 01/20/2007 10:30 AM
Joined: Jun 2006
Posts: 1,344
G
veteran
veteran
G Offline
Joined: Jun 2006
Posts: 1,344
imagemagick 6 I believe.

gliderdad #174648 01/20/2007 10:31 AM
Joined: Jun 2006
Posts: 1,344
G
veteran
veteran
G Offline
Joined: Jun 2006
Posts: 1,344
Larry what Paths to IM do you have set?

gliderdad #174652 01/20/2007 11:43 AM
Joined: Jun 2006
Posts: 9,242
Likes: 1
R
Former Developer
Former Developer
R Offline
Joined: Jun 2006
Posts: 9,242
Likes: 1
If your on a linux box, normally the paths to convert and mogrify will either be /usr/bin or /usr/local/bin

If you have ssh/telnet access to the server you can find out the path by typing 'which convert'

Rick #174655 01/20/2007 1:25 PM
Joined: Jul 2006
Posts: 4,057
Joined: Jul 2006
Posts: 4,057
Originally Posted by Rick
There are a couple of ways to test if it's working as well, if you're logged in as an admin.

If you're using ImageMagick, then you'd use

ubbthreads.php?ubb=captcha&test=1&type=im

If you're using GD2, then you'd use

ubbthreads.php?ubb=captcha&test=1&type=gd

I'm having a nightmare day / night now....

Ive ran both the commands above and all i get is
blank white screen for either.

In the control pannel / forums settings / Forum Permissions

"It doesn't appear you have GD2 or Imagemagick available. "
I have GD2 when i phpinfo()

GD Support enabled
GD Version bundled (2.0.28 compatible)
GIF Read Support enabled
GIF Create Support enabled
JPG Support enabled
PNG Support enabled
WBMP Support enabled
XBM Support enabled

Paths only listed the image shack stuff,
i'm mentioning that as its been a pain this upgrade. Topic click Me

Last edited by Mark S; 01/20/2007 1:28 PM.

BOOM !! Version v7.6.1.1
People who inspire me Isaac ME Gizmo
gliderdad #174661 01/20/2007 1:54 PM
Joined: Sep 2006
Posts: 165
L
Member
Member
L Offline
Joined: Sep 2006
Posts: 165
Originally Posted by gliderdad
Larry what Paths to IM do you have set?

The default ones and they are correct. I have a linux box

I have image magick 5.56

and GD2 2.015

neither works. I get a blank white screen when checking the url's you give to test

Larry Miller #174662 01/20/2007 2:09 PM
Joined: Sep 2006
Posts: 165
L
Member
Member
L Offline
Joined: Sep 2006
Posts: 165
Question...safe mode and globals ... should they be turned on or off?

Larry Miller #174663 01/20/2007 3:05 PM
Joined: Jun 2006
Posts: 1,344
G
veteran
veteran
G Offline
Joined: Jun 2006
Posts: 1,344
I think you need imagemagick 6 for this.

Larry Miller #174675 01/20/2007 6:48 PM
Joined: Jun 2006
Posts: 9,242
Likes: 1
R
Former Developer
Former Developer
R Offline
Joined: Jun 2006
Posts: 9,242
Likes: 1
Larry, In order to use ImageMagick you'll need to have ImageMagick 6 installed. Imagemagick 5 does not support enough of the needed functions.

Looking back at the error you posted earlier:

Call to undefined function: imagegif()

It doesn't look like your PHP is compiled with the gif options. The easiest would probably be to upgrade your imagemagick to version 6.

Mark S #174676 01/20/2007 6:50 PM
Joined: Jun 2006
Posts: 9,242
Likes: 1
R
Former Developer
Former Developer
R Offline
Joined: Jun 2006
Posts: 9,242
Likes: 1
Mark. You'll need to check and see if you have truetype support compiled into PHP as well. Basically, for GD2 you need: GD2, truetype support and the gif extensions. Or you can install ImageMagick6.

Rick #174678 01/20/2007 6:53 PM
Joined: Jun 2006
Posts: 16,289
Likes: 115
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,289
Likes: 115
I much prefer IM, everything looks a lot better. Also, someone sad that you could get precompiled binaries for it (as to instlal it as a user vs root on the machine) but I don't know that forcertain (as I compile my own utilities).


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!
Gizmo #174684 01/20/2007 7:17 PM
Joined: Jun 2006
Posts: 9,242
Likes: 1
R
Former Developer
Former Developer
R Offline
Joined: Jun 2006
Posts: 9,242
Likes: 1
Yes, you don't actually need root privileges on the server in order to install it, just shell level access.

Rick #174685 01/20/2007 7:25 PM
Joined: Sep 2006
Posts: 165
L
Member
Member
L Offline
Joined: Sep 2006
Posts: 165
Originally Posted by Rick
Larry, In order to use ImageMagick you'll need to have ImageMagick 6 installed. Imagemagick 5 does not support enough of the needed functions.

Looking back at the error you posted earlier:

Call to undefined function: imagegif()

It doesn't look like your PHP is compiled with the gif options. The easiest would probably be to upgrade your imagemagick to version 6.

Thanks Rick We are doingthat. Question, did we miss this in the install instructions?

Larry Miller #174686 01/20/2007 7:27 PM
Joined: Jun 2006
Posts: 9,242
Likes: 1
R
Former Developer
Former Developer
R Offline
Joined: Jun 2006
Posts: 9,242
Likes: 1
All of this wasn't in the original 7.0 version so when you installed, there would have been no mention of it. Will probably need to do some type of brief doc for those upgrading to this version and want to take advantage of the captcha feature.

Rick #174687 01/20/2007 7:46 PM
Joined: Nov 2006
Posts: 3,095
Likes: 1
Carpal Tunnel
Carpal Tunnel
Joined: Nov 2006
Posts: 3,095
Likes: 1
I have convert in /usr/bin

-rwxr-xr-x 1 root root 13492 Aug 24 08:25 convert


How do I know if I have ImageMagick or GD2 installed ?

I don't see any executable like that in my bin folder

.

Last edited by ntdoc; 01/20/2007 7:51 PM.
ntdoc #174696 01/20/2007 9:06 PM
Joined: Jun 2006
Posts: 9,242
Likes: 1
R
Former Developer
Former Developer
R Offline
Joined: Jun 2006
Posts: 9,242
Likes: 1
If you have convert then you can find out which version of convert you have just by running 'convert -version'. That will tell you the version you have.

As for if you have GD2 installed, and truetype, gif, etc. Those you'd need to look at your phpinfo() and you'll get the details in there. GD2 will have it's own section, tyuetype should be in with the compile options I believe.

Page 1 of 2 1 2

Link Copied to Clipboard
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
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
Forum Privacy Policy
by ECNet - 02/26/2024 11:58 AM
Who's Online Now
2 members (Nightcrawler, Ruben), 322 guests, and 160 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)