Hybridauth - You cannot access this page directly

629 views
Skip to first unread message

Makso

unread,
Nov 23, 2016, 6:26:06 AM11/23/16
to HybridAuth
Hello all,

I getting following error:
Endpoint: Error while trying to init Hybrid_Auth: You cannot access this page directly.

The URL ends up as:

Problem is in Endpoint.php, on line 117:

if (!$storage->config("CONFIG")) {
    throw new Hybrid_Exception("You cannot access this page directly.");
}

How to fix this ? What are server requirements for hybridauth ?

Can someone help ?

Scott Bowers

unread,
Nov 23, 2016, 9:21:37 AM11/23/16
to hybri...@googlegroups.com
That looks like a configuration error, and you have never made it work before, right? I would suggest finding the closest example code to what you're trying to do, and make sure you can get that to work first. Then compare the differences.

--
You received this message because you are subscribed to the Google Groups "HybridAuth" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hybridauth+unsubscribe@googlegroups.com.
Visit this group at https://groups.google.com/group/hybridauth.
For more options, visit https://groups.google.com/d/optout.

Makso

unread,
Nov 23, 2016, 9:44:25 AM11/23/16
to HybridAuth
Thanks for advice.
Right, I'm doing this first time. I work in pimcore CMS. Pimcore has hybridauth.php configuration file. I put some providers in that file, with correct keys. 
I think I have problems with sessions. When I do <?=var_dump(unserialize($_SESSION["HA::CONFIG"]["config"])); ?> I get array from configuration file, but when I do <?=var_dump($storage->config("CONFIG")); ?> I get NULL altought it's the same thing. 
I can't figure out what the problem is. I read all topics, all similar issues and nothing. 
 

Makso

unread,
Nov 24, 2016, 8:47:56 AM11/24/16
to HybridAuth
I found the cause of the problem. This is the real error:

PHP Fatal error:  Uncaught Zend_Session_Exception: session has already been started by session.auto-start or session_start().


Reply all
Reply to author
Forward
0 new messages