Notifications
Clear all

New User/ not logged form not loading, error message.

5 Posts
2 Users
0 Reactions
7,416 Views
(@simplysylvan)
New Member
Joined: 9 years ago
Posts: 3
Topic starter  

I couldn't find this particular issue on the forum.

I just installed the plugin looking for this exact solution to my comment system on a clients site. However when a new user or someone not logged in clicks to add a comment the form below breaks and calls a fatal error.

Fatal error: Call to undefined function imagettftext() in/home/hardwareuk/public_html/wp-content/plugins/wpdiscuz/utils/class.WpdiscuzHelper.php on line 512

Thanks for any help with this issue. 

Capture 287

   
Quote
 Tom
(@tomson)
Famed Member Admin
Joined: 10 years ago
Posts: 4214
 

This error says your server PHP doesn't have GD Library extension. This is  default extension, and it available on 99% of servers. Please contact to your hosting and ask for enabling PHP GD library. This is an essential extension. The GD library is a graphics drawing library that provides tools for creating simple CAPTCHA in wpDiscuz.

Known Causes

If your web hosting does not have GD support you have a limited amount of options:

  • Contact your web hosting technical support and request support for the GD library in PHP. This is not always successful. Some hosts may be resistant to adding new software due to support costs (maintaining updates) and fear of security threats. This is just a warning that your mileage may vary. Our recommendation… ask really nicely.
  • Find a new web hosting company that you can be sure fits all the requirements for Shopp.

Troubleshooting

If you are running your own server, you have other options available depending on your operating system:

  • On Windows servers, php_gd2.dll is included in a standard PHP installation, but is not enabled by default. To enable it, uncomment the extension=php_gd2.dll line in your php.ini file (remove the # from the beginning of that line) and restart the PHP extension.
  • Linux distributions that have package managers can usually find easy installs. For example: yum install php-gd or apt-get install php5-gd Be sure to restart your web server daemon after installing the library.
  • Compile from source into PHP (meaning you’ll have to re-compile PHP).

   
ReplyQuote
(@simplysylvan)
New Member
Joined: 9 years ago
Posts: 3
Topic starter  

Hey there, Thanks for the swift reply. I had actually ad this issue a while back and gone and turned GD on via WHM. I went back today and double checked, recompiled etc. Sadly the error still exists. I have no issue with captchas usually on my server so I have no idea what's going on with this one. I would love to use this plugin, so any help getting this resolved is gratefully received.


   
ReplyQuote
(@simplysylvan)
New Member
Joined: 9 years ago
Posts: 3
Topic starter  

I managed to fix the issues thanks to the details you gave in the first reply. Adding to this thread so others may find it useful.

Turns out the Captcha also require 'Freetype Library' as well as the GD one. Googled the error message on it's own. For anyone useing WHM, this is on the same options as enabling GD Library with Easy Apache. 'TTF FreeType'

Thanks a lot and I am glad I now get to use WPDiscuz!


   
ReplyQuote
 Tom
(@tomson)
Famed Member Admin
Joined: 10 years ago
Posts: 4214
 

Great!

Thank you very much for sharing this information.


   
ReplyQuote
Share:
Scroll to top