1
Jynxter
Xoops 2.3 Module Profile 1.5 - New Reg: xoopsformcaptcha issue
  • 2008/10/2 17:10

  • Jynxter

  • Just popping in

  • Posts: 3

  • Since: 2007/6/25


Upgrade XOOPS from 2.0 to 2.3.
After I enabled Profile, new users are unable to register.

xoops/modules/profile/register.php Yields the following error

Fatal error: Cannot instantiate non-existent class: xoopsformcaptcha in /home/public_html/xoops/modules/profile/include/forms.php on line 338

I would like to keep the captcha, rather then disable it, but I have no idea why this is happening.

Any thoughts?

2
Marco
Re: Xoops 2.3 Module Profile 1.5 - New Reg: xoopsformcaptcha issue
  • 2008/10/2 17:47

  • Marco

  • Home away from home

  • Posts: 1256

  • Since: 2004/3/15


do you have the GD PHP extension installed on your server?
can you see the capcha image?
Do synergy or die.

3
Jynxter
Re: Xoops 2.3 Module Profile 1.5 - New Reg: xoopsformcaptcha issue
  • 2008/10/2 18:12

  • Jynxter

  • Just popping in

  • Posts: 3

  • Since: 2007/6/25


I could have swore I replied to this thread already...

To (I think) answer your Question:
ImageMagicK: Not available
NetPBM: Not available
GD1 library: Not available
GD2 library: Autodetected: bundled (2.0.28 compatible)

Here is what I did to fix the problem.

I looked at the core 2.3 Register.php file, and then opened the register.php and forms.php found in the profile module, and made the following updates:

modules/profile/register.php
line 126-130
xoops_load("captcha");
        
$xoopsCaptcha XoopsCaptcha::getInstance();
        if (! 
$xoopsCaptcha->verify() ) {
            
$stop .= $xoopsCaptcha->getMessage();
        }


modules/profile/include/forms.php
lines 337-340
if ($step_no == 1) {
        
xoops_load("XoopsFormCaptcha");
        
$reg_form->addElement(new XoopsFormCaptcha());
    }


And this resolved the problem.

Login

Who's Online

193 user(s) are online (100 user(s) are browsing Support Forums)


Members: 0


Guests: 193


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits