Previous Thread
Next Thread
Print Thread
Hop To
#245389 09/06/2011 12:46 PM
Joined: Aug 2006
Posts: 1,649
Likes: 1
Pooh-Bah
Pooh-Bah
Joined: Aug 2006
Posts: 1,649
Likes: 1

Hi guys -

My registration CAPTCHA (GD2) became a broken image recently. My host migrated our sites to a new server, so the first issue was needing to change /usr/bin/convert to /usr/local/bin/convert in the settings, but that just now gives me this error when trying to view the image directly:

Quote
PHP error: convert: memory allocation failed `/home/gbb/public_html/threads/cache/7503d665439354a456e8935a51239d3e.gif' @ error/quantize.c/QuantizeImage/2661. convert: memory allocation failed `/home/gbb/public_html/threads/cache/7503d665439354a456e8935a51239d3e.gif' @ error/gif.c/WriteGIFImage/1619.

Tech support had to escalate the issue and I'm waiting on that. She tried increasing my account's personal PHP memory limit, checked the logs, and checked the previous server's configuration.

Any suggestions?

Thanks!

JG


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
Joined: Aug 2006
Posts: 1,649
Likes: 1
Pooh-Bah
Pooh-Bah
Joined: Aug 2006
Posts: 1,649
Likes: 1

PS - Clearing all the *.gif images from the cache didn't help...


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
Joined: Jun 2006
Posts: 16,292
Likes: 116
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,292
Likes: 116
Well, GD2 doesn't even use convert or mogrify; ImageMagick does; try turning GD on as the image processor and see if it works.

As for the error you're having it says it's due to memory allocation, and unfortunately you really can't give it love there...

They could try a different version of IM, or you could try GD, or they could add more ram to the machine...


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 2006
Posts: 1,649
Likes: 1
Pooh-Bah
Pooh-Bah
Joined: Aug 2006
Posts: 1,649
Likes: 1

The only options that show in CP > Gallery Settings are GD2 and IM. And that is where it asks for paths to convert/mogrify, in Threads.

Everything seemed just fine until they migrated us all to "more powerful" servers (and they are, with 16 cpus and I'm sure more than enough RAM. Memory Used has been less than 25%). According to PHP Info, gd is version "bundled (2.0.34 compatible)" -- there's no mention of ImageMagick (would there be if it was installed?)

Still waiting word from the Senior Technician at ASO...


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
Joined: Aug 2006
Posts: 1,649
Likes: 1
Pooh-Bah
Pooh-Bah
Joined: Aug 2006
Posts: 1,649
Likes: 1

Still working it out w/ Snr Tech, who installed ImageMagick, and now I'm getting this:

"PHP error: convert: MemoryAllocationFailed `' @ fatal/cache.c/AcquirePixelCacheNexus/261."

Just keeping you updated - maybe it'll be helpful down the road... wink


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
Joined: Aug 2006
Posts: 1,649
Likes: 1
Pooh-Bah
Pooh-Bah
Joined: Aug 2006
Posts: 1,649
Likes: 1

Hey guys - It's been a week since I noticed this, and I'm still having issues. I haven't had any new registrations since Aug 20.

ASO Tech Support Supervisor says, "I'm still looking into this and trying to figure out exactly how to resolve this. Have you contacted UBB support yet, on the offchance that there's an environment issue?"

Any clues would be appreciated - thanks!


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
Joined: Aug 2006
Posts: 1,649
Likes: 1
Pooh-Bah
Pooh-Bah
Joined: Aug 2006
Posts: 1,649
Likes: 1

It was set to GD2 all along, and just stopped working. I tried ImageMagick later, and that didn't work, either, so switched back. The host and I are both at a loss, though I think it's something on the host's side.


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
Joined: Jun 2006
Posts: 16,292
Likes: 116
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,292
Likes: 116
Originally Posted by jgeoff
It was set to GD2 all along, and just stopped working. I tried ImageMagick later, and that didn't work, either, so switched back. The host and I are both at a loss, though I think it's something on the host's side.
if it worked before the move, it's definitely something in the new server; did you try having them use a different version of imagemagick? is gd compiled with FreeType support?


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 2006
Posts: 1,649
Likes: 1
Pooh-Bah
Pooh-Bah
Joined: Aug 2006
Posts: 1,649
Likes: 1
Here the gd info from php info:

Quote
gd

GD Support enabled
GD Version bundled (2.0.34 compatible)
FreeType Support enabled
FreeType Linkage with freetype
FreeType Version 2.2.1
GIF Read Support enabled
GIF Create Support enabled
JPG Support enabled
PNG Support enabled
WBMP Support enabled
XPM Support enabled
XBM Support enabled

Is there a preferred version of IM?


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
Joined: Aug 2006
Posts: 1,649
Likes: 1
Pooh-Bah
Pooh-Bah
Joined: Aug 2006
Posts: 1,649
Likes: 1

Same as mine, Ruben, thanks...


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
Joined: Dec 2003
Posts: 6,560
Likes: 78
Joined: Dec 2003
Posts: 6,560
Likes: 78
Check your threads/images/captcha/
folders.
I peeked and see nothing in the folders.
But check to see if your images and ttf files are there and no other files. Such as ftp logs etc.

Last edited by Ruben; 09/12/2011 3:45 PM.

Blue Man Group
There is no such thing as stupid questions. Just stupid answers
Joined: Aug 2006
Posts: 1,649
Likes: 1
Pooh-Bah
Pooh-Bah
Joined: Aug 2006
Posts: 1,649
Likes: 1
This is all I have in there:
Quote
/threads/images/captcha/index.html

/threads/images/captcha/backgrounds/background1.jpg
/threads/images/captcha/backgrounds/background2.jpg
/threads/images/captcha/backgrounds/index.html

/threads/images/captcha/fonts/bullpen_.ttf
/threads/images/captcha/fonts/eflb.ttf
/threads/images/captcha/fonts/index.html

When I look in /threads/cache/ there are a bunch of 10-byte gifs with names like 2ad1673ef91ae1237dce569622afff72.gif -- but I cannot open them (they're apparently corrupt). I can delete them, but they just come back when someone goes to the registration page.






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
Joined: Aug 2006
Posts: 1,649
Likes: 1
Pooh-Bah
Pooh-Bah
Joined: Aug 2006
Posts: 1,649
Likes: 1
Originally Posted by Ruben
Well then I am at a loss...

Same boat as me and others... but thanks for trying! wink


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
Joined: Aug 2006
Posts: 1,649
Likes: 1
Pooh-Bah
Pooh-Bah
Joined: Aug 2006
Posts: 1,649
Likes: 1

No other ideas? :/

Quote
I would definitely contact UBB support, and see if they can figure out what's going on. We've exhausted our resources; without input from the developers, this issue will not be able to be resolved as we haven't gotten any other complaints regarding PHP, GD2, or ImageMagick on your host. We can try migrating you to a different host if you'd like.


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
Joined: Dec 2003
Posts: 6,560
Likes: 78
Joined: Dec 2003
Posts: 6,560
Likes: 78
I think I would follow that advise and open a support ticket with UBB.

It also could be possible you have a corrupted script file in ubb.


Blue Man Group
There is no such thing as stupid questions. Just stupid answers
Joined: Dec 2003
Posts: 6,560
Likes: 78
Joined: Dec 2003
Posts: 6,560
Likes: 78
Humm,
I was cruising through the scripts and there is some type of test mode embedded in the captcha scripts by Rick.
Not to sure on how to enable it nor use the test nor what you get out of it.
Maybe someone else here has used it.


Blue Man Group
There is no such thing as stupid questions. Just stupid answers
Joined: Aug 2006
Posts: 1,649
Likes: 1
Pooh-Bah
Pooh-Bah
Joined: Aug 2006
Posts: 1,649
Likes: 1

I feel like such a moron!

While the captcha image did stop working w/o my doing anything, when I was troubleshooting I was changing the Gallery setting "What Graphics Library do you want to use?" thinking it was global. Just noticed in Registration Settings (where I was gonna turn off captcha in the meantime), and there it was set to ImageMagick. Changed it to GD2 and now the image shows. I just want to slap myself for being an idiot!!

But thanks, guys blush


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
Joined: Jun 2006
Posts: 16,292
Likes: 116
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,292
Likes: 116
Lol


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 2006
Posts: 1,649
Likes: 1
Pooh-Bah
Pooh-Bah
Joined: Aug 2006
Posts: 1,649
Likes: 1

Keep laughing, Giz... :lol: wink

But here's a vote for making "What Graphics Library do you want to use?" a global setting, and irrespective of gallery/captcha! Too confusing for some of us drunk azzes sometimes... tongue wink



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
Joined: Jun 2006
Posts: 16,292
Likes: 116
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,292
Likes: 116
Maybe I should have taken you up on your offer from FB... Coulda used the $ just to change the setting haha...


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: Dec 2003
Posts: 6,560
Likes: 78
Joined: Dec 2003
Posts: 6,560
Likes: 78
Just to throw you under the bus.
Originally Posted by Ruben
Did you not try Gizmos suggestion?
For captcha goto:
Control Panel » Registration Settings
Change CAPTCHA verification to GD2.
But don't feel like a moron.
I have done the same complaining here and at the same time that I have checked everything.
But then to find out I did not. crazy


Blue Man Group
There is no such thing as stupid questions. Just stupid answers

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
1 members (Ruben), 476 guests, and 111 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)