CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Joomla Extensions (Moderator: lcdweb) »
  • Get locked out of Joomla back end with plg_civiauthenticate_v1.0.5
Pages: [1]

Author Topic: Get locked out of Joomla back end with plg_civiauthenticate_v1.0.5  (Read 2149 times)

riceng

  • I’m new here
  • *
  • Posts: 1
  • Karma: 0
  • CiviCRM version: 3.32
  • CMS version: joomla 5.22
  • MySQL version: 5.0.88
  • PHP version: 5.2.11
Get locked out of Joomla back end with plg_civiauthenticate_v1.0.5
January 14, 2011, 09:20:09 pm
I am using Civicrm3.32 and I am tring to install Civi Authenticate it locks me out of joomla backend.  I have to start over with a new install.  I have sucessfully installed Com_civiuser and plg_civi user and it works fine.  Also Civi Authenticate works great on the front end.  I can limit users and register members only but when I try to log into the back end it errors out with 500.  on my live site it would just not let me in.  Has anyone experienced this or have any ideas that would help me correct this.
thanks

lcdweb

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1620
  • Karma: 116
    • www.lcdservices.biz
  • CiviCRM version: many versions...
  • CMS version: Joomla/Drupal
  • MySQL version: 5.1+
  • PHP version: 5.2+
Re: Get locked out of Joomla back end with plg_civiauthenticate_v1.0.5
January 21, 2011, 10:40:02 am
are you a super administrator user? or administrator? it should skip you if you are and authenticate based solely on your joomla account.

also -- you don't need to reinstall. just go to your db, to the plugins table, deactivate this plugin and reactivate the joomla authentication

support CiviCRM through 'make it happen' initiatives!
http://civicrm.org/mih

gladiator

  • I’m new here
  • *
  • Posts: 12
  • Karma: 0
  • CiviCRM version: 3.3.6
  • CMS version: J1.5.23
  • MySQL version: 5.1.44
  • PHP version: 5.3.2
Re: Get locked out of Joomla back end with plg_civiauthenticate_v1.0.5
February 01, 2011, 05:37:54 am
Same issue here. Logging in as Super Admin does not work !!

I am new here and am trying to setup joomla/civi for an org who require member only logins.

The civiauthenticate works very well in the frontend and allows super-admins to login even if not member but for backend everyone seems to be blocked out until DB changes are made and civiauthenicate is disabled.

Please help.  ???

lcdweb

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1620
  • Karma: 116
    • www.lcdservices.biz
  • CiviCRM version: many versions...
  • CMS version: Joomla/Drupal
  • MySQL version: 5.1+
  • PHP version: 5.2+
Re: Get locked out of Joomla back end with plg_civiauthenticate_v1.0.5
February 01, 2011, 05:48:02 am
what version of civiauthenticate are you using?
support CiviCRM through 'make it happen' initiatives!
http://civicrm.org/mih

gladiator

  • I’m new here
  • *
  • Posts: 12
  • Karma: 0
  • CiviCRM version: 3.3.6
  • CMS version: J1.5.23
  • MySQL version: 5.1.44
  • PHP version: 5.3.2
Re: Get locked out of Joomla back end with plg_civiauthenticate_v1.0.5
February 01, 2011, 06:26:01 am
v1.0.5

This is the error that comes up:

Fatal error: Class 'JSite' not found in .../plugins/authentication/civicrm.php on line 87
« Last Edit: February 01, 2011, 08:17:54 am by gladiator »

gladiator

  • I’m new here
  • *
  • Posts: 12
  • Karma: 0
  • CiviCRM version: 3.3.6
  • CMS version: J1.5.23
  • MySQL version: 5.1.44
  • PHP version: 5.3.2
Re: Get locked out of Joomla back end with plg_civiauthenticate_v1.0.5
February 01, 2011, 09:12:32 am
ok..for the backend it seems the code is unable to fetch the menu item id as it does not exist!

I tried this to skip the lines dealing with fetching menu items if url contains 'administrator'

Code: [Select]
$uri = strpos(JURI::current(),'administrator');
if($uri === false) {
line 87 to 103
}

May not be the best way but worked for me and now can login to the backend with the front-end still working as expected.

Hope this helps. Any other solutions welcome.

lcdweb

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1620
  • Karma: 116
    • www.lcdservices.biz
  • CiviCRM version: many versions...
  • CMS version: Joomla/Drupal
  • MySQL version: 5.1+
  • PHP version: 5.2+
Re: Get locked out of Joomla back end with plg_civiauthenticate_v1.0.5
February 09, 2011, 06:35:11 pm
a better fix is to add the following after line 65:
Code: [Select]
require_once( JPATH_SITE.DS.'includes'.DS.'application.php' );
you're using a later revision of Joomla which now requires we explicitly include the application class.

if you disabled that block and was still able to login, it likely means that you have both the civicrm authentication and the native joomla authentication enabled. understand that when multiple authentication plugins are enabled, joomla will go through each in order and try to authenticate with your credentials. which means it is likely bypassing your current-membership based check. i.e. -- if someone has a valid login, it will authenticate using the joomla plugin even if the civicrm plugin rejects it. you should disable the joomla plugin.
support CiviCRM through 'make it happen' initiatives!
http://civicrm.org/mih

gladiator

  • I’m new here
  • *
  • Posts: 12
  • Karma: 0
  • CiviCRM version: 3.3.6
  • CMS version: J1.5.23
  • MySQL version: 5.1.44
  • PHP version: 5.3.2
Re: Get locked out of Joomla back end with plg_civiauthenticate_v1.0.5
February 11, 2011, 02:43:01 pm
Thanks a lot for the suggestion. I will try it out.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Joomla Extensions (Moderator: lcdweb) »
  • Get locked out of Joomla back end with plg_civiauthenticate_v1.0.5

This forum was archived on 2017-11-26.