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 »
  • Installing CiviCRM »
  • Joomla! Installations (Moderator: Deepak Srivastava) »
  • Civi Authenticate Plugin Issue
Pages: [1]

Author Topic: Civi Authenticate Plugin Issue  (Read 1442 times)

RGA UK

  • I’m new here
  • *
  • Posts: 5
  • Karma: 0
    • Restricted Growth Association
  • CiviCRM version: 3.3.5
  • CMS version: Joomla 1.5
  • MySQL version: 5.2.?
  • PHP version: 5.?
Civi Authenticate Plugin Issue
April 24, 2011, 01:55:14 pm
Hi,

J1.5 - Civi 3.3.5

I have installed the Civi Authenticate plugin to check the status of memberships when logging into the front end and disabled all other authenticate plugins. I did have an issue with the admin backend login but found the post on here to add a line into the php which worked.

I have set up the three different options for where to redirect to depending on the status and get the following results:

Admin users - bypasses check - log in successful (as expected)
No account on Joomla - redirects to a temporary page saying 'No Account' (Seems to be working)
Registered users with current record in Civi - takes user to 'Expired or no membership' (****should log them in****)
Registered users with expired record in Civi - takes user to 'Expired or no membership'  (not sure if this is working right or just doing the same as for users with 'current' memberships?)

I'm sure I've missed something obvious so any ideas would be gratefully received!

Thanks

Stephen

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: Civi Authenticate Plugin Issue
April 24, 2011, 06:10:42 pm
what version of the plugin are you using?
support CiviCRM through 'make it happen' initiatives!
http://civicrm.org/mih

RGA UK

  • I’m new here
  • *
  • Posts: 5
  • Karma: 0
    • Restricted Growth Association
  • CiviCRM version: 3.3.5
  • CMS version: Joomla 1.5
  • MySQL version: 5.2.?
  • PHP version: 5.?
Re: Civi Authenticate Plugin Issue
April 25, 2011, 04:45:38 am
looking through civicrm.php in the plugin directory it seems to be 1.0.5.
Quote
* version 1.0.5 by Brian Shaughnessy
 * brian@lcdservices.biz // www.lcdservices.biz
 */
Is there anywhere in Joomla to check this?

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: Civi Authenticate Plugin Issue
April 25, 2011, 05:24:03 am
the file comments are kept up to date, so that's fine. though you can also get versions from the extension installer listing

i'm using this for several clients and it seems to be working correctly; and you are running the latest version. so i suggest the following troubleshooting steps:

* disable this plugin and reenable the standard joomla authentication plugin
* setup a menu link for "civicrm dashboard". that page allows you to see any memberships on file for the logged in user
* login as your second and third users, respectively, visit the dashboard page, and note what you see. confirm that for each user you see the expected membership record/status
* disable core joomla authentication and reenable civiauthenticate
* try logging in again with those users

the one piece of civiauthenticate which can create some issues is that it does a lookup of the user and its corresponding civi contact record. but if the connection between the J user and C contact has not been created, it won't attempt to match the user to a contact. in other words -- the connection must already exist. the connection is created if people constructed their joomla user via a civi form (through the profile option); it can also be created if someone logs in and visits a civi resource. however, because this plugin doesn't allow people to login unless the contact and current membership exists, the second method won't kick in.

anyway -- try the troubleshooting steps above and post back what you saw.
support CiviCRM through 'make it happen' initiatives!
http://civicrm.org/mih

RGA UK

  • I’m new here
  • *
  • Posts: 5
  • Karma: 0
    • Restricted Growth Association
  • CiviCRM version: 3.3.5
  • CMS version: Joomla 1.5
  • MySQL version: 5.2.?
  • PHP version: 5.?
Re: Civi Authenticate Plugin Issue
April 25, 2011, 07:04:14 am
I followed the steps through and at first it was not showing up any records - when I checked in Civi there seemed to be a load of blank contacts - I deleted these and tried again (using Joomla Authentication) and the CiviCRM profile showed correctly (showed current status for both expired members and current members).

I disabled the Joomla Authentication and re-enabled Civi Authenticate and the same happened again - took login to 'Expired Member' page.

I have checked in the back end and it has also created another blank contact (no username, e-mail or anything - just a blank individual contact). The blank record does show up on custom search for 'CMS User? Yes'.

Hope this helps to narrow it down!

I am assuming it doesn't have anything to do with the extra line I put in the civicrm.php file? I got this from:

Quote
Re: Get locked out of Joomla back end with plg_civiauthenticate_v1.0.5
« Reply #6 on: 10-02-2011, 10:35:11 »Quotea 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.

Thanks

Stephen

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: Civi Authenticate Plugin Issue
April 25, 2011, 07:47:27 am
just to be clear --

after the various cleanup, and with J authentication --
you logged in, went to your user dashboard, and saw your membership record listed with a current status?
support CiviCRM through 'make it happen' initiatives!
http://civicrm.org/mih

RGA UK

  • I’m new here
  • *
  • Posts: 5
  • Karma: 0
    • Restricted Growth Association
  • CiviCRM version: 3.3.5
  • CMS version: Joomla 1.5
  • MySQL version: 5.2.?
  • PHP version: 5.?
Re: Civi Authenticate Plugin Issue
April 25, 2011, 08:17:04 am
Yes, that's right, the correct record was showing on the civi profile page at the front end with the status shown as current.

But when I re-enable civicrm authenticate (disabling joomla authenticate as well) it goes back to the same problem when I try to log in with that user.

I have to do the clean up again and go through the sequence again in order to see the record again.
« Last Edit: April 25, 2011, 12:28:06 pm by RGA UK »

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • Joomla! Installations (Moderator: Deepak Srivastava) »
  • Civi Authenticate Plugin Issue

This forum was archived on 2017-11-26.