Top Poster
#1 ramon fincken 386
#2 Site admin 3
#3 Ber|Art 2
#4 braddmark 1
#5 accentmedia 1
#6 Xarzu 1
#7 pEcosespedex 1
#8 khadish 1
#9 moxxx 1
#10 nistelrock 1
[wordpress][solution] Phpbb single signon phpbb_captcha_factory not found no object



Rating : 3 / 5

 
Post new topic   Reply to topic    Ramonfincken.com Forum Index -> CMS-ses (Joomla, WordPress, etc..)
Beta
Want to be notified by email when this topic gets a reply?  
View previous topic :: View next topic  
Author Message
ramon fincken
Site's programmer

Get a free globally recognized avatar
It's free!


Joined: 03 Aug 2007
Posts: 386
Location: A'dam/Diemen, The Netherlands

PostPosted: Sat Jan 02, 2010 10:10 pm    Post subject: [wordpress][solution] Phpbb single signon phpbb_captcha_factory not found no object Reply with quote

I client had the phpbb single signon plugin installed but he encountered an error when he had to many login tries on WordPress itself.
http://wordpress.org/extend/plugins/php...e-sign-on/

Code:
class or object phpbb_captcha_factory not found


Why?
Phpbb3 logs every login attempt. If you have too many failed logins you must enter a code (CAPTCHA). But this WP plugin does not facilitate in that.

Here is the solution:
OPEN
Code:
connect-phpbb.php


FIND
Code:
// AUTHENTICATE
add_action('wp_authenticate_user','op_login',10,2);
function op_login(&$userdata,$password){
 
    if(file_exists(ABSPATH.'/'.PHPBBPATH.'config.php')){ // check to see if phpBB exists
        if(defined('IN_PHPBB')){
         return $userdata; // return if we're already in phpBB (to avoid a loop)
      }


AFTER, ADD
Code:
     
     // FIX start, RamonFincken.com WebsiteFreelancers.nl
    // Fix for phpbb3 login attempts. If too many failed logins, phpbb demands you enter a visual code
      // So include ( but do not use ) the class to make phpbb happy :)
    define(IN_PHPBB,true);
     include_once('./'.PHPBBPATH.'includes/captcha/captcha_factory.php');
      // FIX end, RamonFincken.com WebsiteFreelancers.nl
     


This solution has been reported to the author and placed at http://wordpress.org/support/topic/347509?replies=1
Back to top
View user's profile Send private message Visit poster's website
Google adsense
Advertisement





PostPosted: Sat Jan 02, 2010 10:10 pm    Post subject: [wordpress][solution] Phpbb single signon phpbb_captcha_factory not found no object

Advertisement
Back to top
GravityForms
Advertisement





PostPosted: Sat Jan 02, 2010 10:10 pm    Post subject: [wordpress][solution] Phpbb single signon phpbb_captcha_factory not found no object

Advertisement
Gravity Forms Plugin for WordPress
Back to top
ramon fincken
Site's programmer

Get a free globally recognized avatar
It's free!


Joined: 03 Aug 2007
Posts: 386
Location: A'dam/Diemen, The Netherlands

PostPosted: Sat Feb 06, 2010 1:13 pm    Post subject: Re: [wordpress][solution] Phpbb single signon phpbb_captcha_factory not found no object Reply with quote

Solution has been slightly adapted but accepted by the author!

http://wordpress.org/extend/plugins/php...changelog/

http://www.onigoetz.ch/2010/01/18/new-v...on-plugin/

Quote:
Bugfix : Captcha problem if the user makes 3 errors in his password in phpbb (reported by Ramon Fincken http://www.ramonfincken.com/)
Back to top
View user's profile Send private message Visit poster's website
Post new topic   Reply to topic    Ramonfincken.com Forum Index -> CMS-ses (Joomla, WordPress, etc..) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
General forums
The world of freelance
Programming
Other projects
Poll
I love gifts

Yes goodies and presents! [3]
No but I love polls ! [1]

Related google ads