Troubles installing the reCAPTCHA plugin on phpBB 2.0.22
A few days ago I was trying to install the reCAPTCHA plugin for phpBB2 to stop the increasing number of spam registrations on one phpbb forum. I’ve followed the instructions, but the usercp_register.patch was failing:
patching file usercp_register.php
Hunk #2 FAILED at 278.
1 out of 4 hunks FAILED -- saving rejects to file usercp_register.php.rej
The phpbb installation was the latest version available of the 2.0.x stable branch at this time (2.0.22) with no custom changes or modifications done on the core phpbb files. I have even tried to install the reCAPTCHA phpBB MOD that required to install easymod 0.3.0 but that failed also. I could not find any useful information anywhere on the phpBB forums or recaptcha ones.
In the end I had to fix the patch myself and change the following 2 lines in order for it to apply cleanly (basically just removing ”, from those lines as they were not present in the default phpbb usercp_register.php file):
42c42
< - message_die(GENERAL_ERROR, 'Could not obtain confirmation code', __LINE__, __FILE__, $sql);
---
> - message_die(GENERAL_ERROR, 'Could not obtain confirmation code', '', __LINE__, __FILE__, $sql);
59c59
< - message_die(GENERAL_ERROR, 'Could not delete confirmation code', __LINE__, __FILE__, $sql);
---
> - message_die(GENERAL_ERROR, 'Could not delete confirmation code', '', __LINE__, __FILE__, $sql);Hopefully this information will help other peoples trying the same thing, at least until recaptcha fixes the patch.
>
Tags: phpbb







4th March 2008, 04:43
yes!
it helped me patch the files.
thanks
30th August 2008, 01:48
Hello Everybody
Just wanted to share my new experience.
If your system denies to run due to an error related to lost HAL.DLL, invalid Boot.ini or any other critical system boot files you can repair this by using the XP installation CD. Just boot from your XP Setup CD and enter the Recovery Console. Then run “attrib -H -R -S” on the C:\Boot.ini file and delete it. Run “Bootcfg /Rebuild” and then Fixboot
Cheers,
Carl
4th November 2008, 08:06
Hey guys, Im new here so Im gonna get straight to the point and hope to get some good replys
Im getting a lot of popups when Im browsing the internet, sometimes even when Im not at the computer, I leave it on for
an hour and when I get back I have 2-3 popups that have appeared from nowhere. How can I remove this? Im really not intrested
in finding adult friends or downloading a new screen saver
Well thats it, stupid problem and I hope that it has a nice easy solution that you can come up with, Im getting all your replays to my email
so I´ll keep an eye on the topic, take care.
15th November 2008, 23:20
I have a flash website
i’m looking for the script who shows google ads in flash.
how can i get it?
15th June 2009, 07:28
Just saying hello to you all .. Still a bit confused about the goings on here, but I guess I’ll keep poking around.