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 »
  • Standalone Installations (Moderator: cap10morgan) »
  • Can't Login: OpenID Fatal error
Pages: [1]

Author Topic: Can't Login: OpenID Fatal error  (Read 10165 times)

scottg

  • I’m new here
  • *
  • Posts: 6
  • Karma: 1
Can't Login: OpenID Fatal error
February 16, 2009, 05:39:06 pm
New installation of 2.2.beta2...
Succeeded, however receive fatal error after trying to login with OpenID:

"Fatal error: Call to a member function getArg() on a non-object in /home/stclement/www/www/crmcivi/packages/Auth/OpenID/Consumer.php on line 655"

Can't get passed this error.  Any suggestions?

Is there any bypass/alternative to OpenID?  I'd like to be able to login offline.

Thanks!

Deepak Srivastava

  • Ask me questions
  • ****
  • Posts: 677
  • Karma: 65
Re: Can't Login: OpenID Fatal error
February 17, 2009, 12:18:57 am
In what format you providing the openid username ? Example of expected formats: http://xyz.myopenid.com, http://openid.aol.com/xyz ...

Currently there is no way to be able to login offline (or any alternative to openid).
« Last Edit: February 17, 2009, 01:28:19 am by Deepak Srivastava »
Found this reply helpful? Contribute NOW and help us improve CiviCRM with the Make it Happen! initiative.

scottg

  • I’m new here
  • *
  • Posts: 6
  • Karma: 1
Re: Can't Login: OpenID Fatal error
February 17, 2009, 03:31:16 am
I am using the format, http://xyx.myopenid.com/

System info: Linux OS with Apache web server, PHP 5.2.8, MySQL 5.0.67.

The myOpenID.com site says that I am logged in.  And, the authentication example at http://openidenabled.com/php-openid/trunk/examples/consumer/ shows my OpenID to work.

I tried starting over, deleting the installation and installing again.  It says it was installed successfully but I still can't login for the first time, getting the same error message.

I'd like to use CiviCRM, it looks like it would be terrific.  If it's not going to work, do you suggest any alternatives to CiviCRM?

Thanks!

Deepak Srivastava

  • Ask me questions
  • ****
  • Posts: 677
  • Karma: 65
Re: Can't Login: OpenID Fatal error
February 17, 2009, 04:01:51 am
Can you try login to demo (running 2.2.beta2) - http://standalone.demo.civicrm.org/ with same open-id and see how it goes ?

We too have been playing /w 2.2.beta2 but could not recreate/encounter any such type of error.

Jump on to IRC (http://embed.mibbit.com/?server=irc.freenode.net&channel=%23civicrm&forcePrompt=true) so that we could help figure out the problem.
« Last Edit: February 17, 2009, 04:09:18 am by Deepak Srivastava »
Found this reply helpful? Contribute NOW and help us improve CiviCRM with the Make it Happen! initiative.

Sunil

  • I post frequently
  • ***
  • Posts: 131
  • Karma: 23
  • The community around a product more important than the product itself?
    • CiviCRM
Re: Can't Login: OpenID Fatal error
February 17, 2009, 05:55:40 am
Hi,

Quote
"Fatal error: Call to a member function getArg() on a non-object in /home/stclement/www/www/crmcivi/packages/Auth/OpenID/Consumer.php on line 655"
check this link
http://trac.openidenabled.com/trac/ticket/270

sunil
The community around a product more important than the product itself?

scottg

  • I’m new here
  • *
  • Posts: 6
  • Karma: 1
Re: Can't Login: OpenID Fatal error
February 17, 2009, 06:45:07 am
I went to http://standalone.demo.civicrm.org/ and entered the OpenID I use: "You are signing in to standalone.demo.civicrm.org// as http://scottg.myopenid.com/."  After clicking Continue, it succeeded and the CiviCRM dashboard/main page appeared.

Strange that it doesn't work on my system.

I see that there is a bug ticket (#270) for the same error message: http://trac.openidenabled.com/trac/ticket/270

I'll jump on IRC.

scottg

  • I’m new here
  • *
  • Posts: 6
  • Karma: 1
Re: Can't Login: OpenID Fatal error
February 17, 2009, 09:46:34 am
Tried again... Deleted directory, downloaded civicrm-2.2.beta2-drupal.tar.gz, and extracted to server to civicrm directory.

Ran the installer at http://<localhost>/civicrm/install/index.php?mode=standalone.  Installation was successful.

First time login FAILED with error message, "Fatal error: Call to a member function getArg() on a non-object in /.../www/www/civicrm/packages/Auth/OpenID/Consumer.php on line 655".

 :'(

Tiggr

  • I post occasionally
  • **
  • Posts: 38
  • Karma: 1
    • Rodgauer Workshop
  • CiviCRM version: 4.7.beta3
  • CMS version: Drupal 7
Re: Can't Login: OpenID Fatal error
January 03, 2010, 11:37:22 am
Hi!

I have the same problem, using the standalone version 3.1 Beta 4. PHP is 5.2.1.

How did you resolve the problem?

Bye
Marcus (aka Tiggr)

scottg

  • I’m new here
  • *
  • Posts: 6
  • Karma: 1
Re: Can't Login: OpenID Fatal error
January 03, 2010, 02:50:39 pm
I was not able to find a solution or solve the problem, so I gave up and did not use CiviCRM.

Tiggr

  • I post occasionally
  • **
  • Posts: 38
  • Karma: 1
    • Rodgauer Workshop
  • CiviCRM version: 4.7.beta3
  • CMS version: Drupal 7
Re: Can't Login: OpenID Fatal error
January 03, 2010, 03:24:31 pm
Hi!

I've worked on this the whole evening, no solution until now!

If I change a bit inside of Message.php, the error is gone. Just change

Code: [Select]
            } else if (($ns_alias == Auth_OpenID_NULL_NAMESPACE) &&
                       ($ns_key == 'ns')) {
                // null namespace
                if ($this->setOpenIDNamespace($value, false) === false) {
                    return false;
                }
            } else {

to

Code: [Select]
            } else if (($ns_alias == Auth_OpenID_NULL_NAMESPACE) &&
                       ($ns_key == 'ns')) {
                // null namespace
                if ($this->setOpenIDNamespace(urldecode($value), false) === false) {
                    return false;
                }
            } else {

removes the error, but then other errors follow. (Hint: the urldecode($value)-part)

First CiviCRM complains about an "Unknow status", then about an "unsigned 'return_to'".

It must be something with the server config. On my local testsystem all things work well, but on the live server (a shared hosting), it breaks!

:-(

Maybe you can tell me via pm what you use instead of CiviCRM, I can't find any replacement.

Bye
Marcus (aka Tiggr)

scottg

  • I’m new here
  • *
  • Posts: 6
  • Karma: 1
Re: Can't Login: OpenID Fatal error
January 03, 2010, 03:34:34 pm
Thanks for that update.  I will see how that works with my host but it may be a while before I can get to it.

I could not find a similar alternative/replacement.  Rather, I settled on using a combination of MODx CMS and phpList.  If CiviCRM Standalone ever works, I would probably use it.  I'd like an alternative to using OpenID too.

-Scott

Tiggr

  • I post occasionally
  • **
  • Posts: 38
  • Karma: 1
    • Rodgauer Workshop
  • CiviCRM version: 4.7.beta3
  • CMS version: Drupal 7
Re: Can't Login: OpenID Fatal error
January 03, 2010, 03:43:32 pm
Hi!

I'm just played around with vtiger and shugarcrm, but (in the community/free edition) they are not as mature and feature complete as civicrm!

Quote
I'd like an alternative to using OpenID too.

Yes, that would be great! In my (and maybe many other) use cases OpenID just adds an unnecessary level of complexity!  :(

Bye
Marcus (aka Tiggr)

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Can't Login: OpenID Fatal error
January 03, 2010, 05:52:35 pm

if you dont want to use OpenID please consider using Drupal or Joomla as a wrapper around CiviCRM. you dont need to use most of the CMS functionality if you dont want to

Alternatively considering writing or sponsoring a developer to write an "user registration/plugin" system for civicrm that works independently of a CMS. You might want to consider checking what a good CMS does and replicate that (which means you are duplicating all that work/effort and now we are back to just use drupal/joomla as a wrapper)

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

Tiggr

  • I post occasionally
  • **
  • Posts: 38
  • Karma: 1
    • Rodgauer Workshop
  • CiviCRM version: 4.7.beta3
  • CMS version: Drupal 7
Re: Can't Login: OpenID Fatal error
January 04, 2010, 01:52:47 am
Hi!

Quote from: Donald Lobo on January 03, 2010, 05:52:35 pm
if you dont want to use OpenID please consider using Drupal or Joomla as a wrapper around CiviCRM. you dont need to use most of the CMS functionality if you dont want to

I realy don't want to install a huge system like Drupal or Joomla just for login in! I realy need NO CMS funcionality besides managing up to 3 users, which should use CiviCRM.

Quote
Alternatively considering writing or sponsoring a developer to write an "user registration/plugin" system for civicrm that works independently of a CMS.

I would love to do this, but we can't afford this! Sorry!

Best way for me, would be, to solve the problem with the OpenID-Login!

CiviCRM is realy great! It works very well on my development system, but not on the live server! :-( I had a look at many CRM-Systems and CiviCRM is the one for me! (But as standalone!)

Bye
Marcus (aka Tiggr)

Tiggr

  • I post occasionally
  • **
  • Posts: 38
  • Karma: 1
    • Rodgauer Workshop
  • CiviCRM version: 4.7.beta3
  • CMS version: Drupal 7
Re: Can't Login: OpenID Fatal error
January 04, 2010, 09:57:00 am
Hi!

Now it works!

On my server, the url-arguments where url-encoded.

I had to change the file packages/Auth/OpenID/Message.php. I've changed two functions:

Code: [Select]
    /**
     * Returns an array of (key, value) pairs in the mapping.
     */
    function items()
    {
        $temp = array();

        for ($i = 0; $i < count($this->keys); $i++) {
if ($this->keys[$i] != 'sig') {
$temp[] = array($this->keys[$i],
urldecode($this->values[$i]));
} else {
$temp[] = array($this->keys[$i],
$this->values[$i]);
}
        }
        return $temp;
    }

and

Code: [Select]
    /**
     * Gets a specified value from the mapping, associated with the
     * specified key.  If the key does not exist in the mapping,
     * $default is returned instead.
     */
    function get($key, $default = null)
    {
        $index = array_search($key, $this->keys);

        if ($index !== false) {
if ($key != 'sig') {
return urldecode($this->values[$index]);
} else {
return $this->values[$index];
}
        } else {
            return $default;
        }
    }

Now I can login and use CiviCRM!

Bye and thanks
Marcus (aka Tiggr)

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • Standalone Installations (Moderator: cap10morgan) »
  • Can't Login: OpenID Fatal error

This forum was archived on 2017-11-26.