hybridauth's social_hub/login.php doesn't work - hybridauth

I install the hybridauth on windows IIS, and setup the hybridauth\config.php as below:
"base_url" => "http:///hybridauth/",
"providers" => array (
"Google" => array (
"enabled" => true,
"keys" => array ( "id" => "<myappkey>", "secret" => "<myappsecret>" ),
"scope" => "email"
But when I click "Sign-in with Google" in http:///examples/social_hub/login.php, it just redirect me to http:///hybridauth/?hauth.start=Google&hauth.time=1401608000 which show the files under "localhost - /hybridauth/"
Anyone know how to fix it?
Thank you!

1) i am not sure if your scope is properly set up (you should have probably set it to "https://www.googleapis.com/auth/userinfo.profile https://www.googleapis.com/auth/userinfo.email"
2) did you set up the return address in google api correct?


Expression Engine 3: Fieldtype settings - checkboxes

I'm working in Expression Engine 3 and I'm working on a custom field type, specifically the options for said field type. I've been following the docs along with how to build out the form for the settings, and everything is rendering correctly.
My question is with regard to checkboxes (and radio buttons), how do I determine which boxes should be pre-selected based on the currently saved settings?
The code I have for outputting the checkboxes is as follows:
$settings = array(
'title' => 'Select your option(s):',
'fields' => array(
'multi' => array(
'type' => 'checkbox',
'choices' => array(
'1' => 'Option 1',
'2' => 'Option 2'
Now, in the display_settings($data) function, if I do a var_dump($data) I can see the values being correctly pulled in. But the checkboxes will not automatically set themselves to selected if they should be.
Any advice would be lovely, thank you! Also, I'd be happy to provide more specific details if needed.

yii2 kartik-v/yii2-widgets installation

I'd like to use kartik sidenav widget.
I installed kartik-v/yii2-widgets extension via composer.
I can see it here: advanced\vendor\kartik-v\yii2-widget-sidenav and extensions.php has also been modified:
'kartik-v/yii2-widget-sidenav' =>
array (
'name' => 'kartik-v/yii2-widget-sidenav',
'version' => '9999999-dev',
'alias' =>
array (
'#kartik/sidenav' => $vendorDir . '/kartik-v/yii2-widget-sidenav',
However, when I try to use it in my view,
use kartik\widgets\SideNav;
echo SideNav::widget([
It shows Class 'kartik\widgets\SideNav' not found error
What is wrong ?
becuase author not update documentation, namespace become kartik\sidenav\SideNav,and you should use this.
You should use the kartik\sidenav\SideNav namespace, i recommend to use an IDE like JetBrains PhpStorm since it will auto detect the namespaces and add them when needed.
Finally it should be use kartik\sidenav\SideNav;
If you want to do it manually:
1) Download archive of needed version from Github.
2) Find PSR-4 autoload section and remember it, in your case: kartik/sidenav.
3) Extract files to corresponding folder in vendor: vendor/kartik/sidenav (not yiisoft!).
4) Add to vendor/composer/autoload_psr4.php:
'kartik\\sidenav\\' => array($vendorDir . '/kartik/sidenav'),
5) Add to vendor/yiisoft/extensions.php:
'kartik/sidenav' => array (
'name' => 'kartik/sidenav',
'version' => '2',
'alias' => array (
'#kartik/sidenav' => $vendorDir . '/kartik/sidenav',
docs have not yet been updated -
use kartik/sidenav/SideNav;
same conventions apply for all other kartik widgets e.g
use kartik\widgets\TypeaheadBasic
is now:
use kartik\typeahead\TypeaheadBasic
'kartik-v/yii2-widget-sidenav' => array(
'name' => 'kartik-v/yii2-widget-sidenav',
'version' => '',
'alias' => array(
'#kartik/sidenav' => $vendorDir . '/kartik-v/yii2-widget-sidenav',
If you installed it correctly, in the yii2 extension, it looks like the code above,So I think it is your installation error,install agin!

not getting email for custom field woocommerce

I am using woocommerce (free plugin).. I am trying to add one custom field to the billing fields..
here it is:
add_filter( 'woocommerce_checkout_fields' , 'About_Our_Service' );
// Our hooked in function - $fields is passed via the filter!
function About_Our_Service( $fields ) {
$fields['billing']['billing_meat'] = array(
'label' => __('How you Got to Know About Our Service?', 'woocommerce'),
'placeholder' => _x('', 'placeholder', 'woocommerce'),
'required' => false,
'clear' => false,
'type' => 'select',
'options' => array(
'google-ads' => __('Google', 'woocommerce' ),
'google-search' => __('Yahoo', 'woocommerce' ),
'warrior-forum' => __('Bing', 'woocommerce' ),
'facebook' => __('Facebook', 'woocommerce' ),
'other' => __('Other', 'woocommerce' ),
return $fields;
The problem is: I am not getting the value in my mail for the custom field which was added to the billing fields.. Anyone who already used woocommerce can help me on this... ?
I already created some more custom fields which was added to the checkout (BUT these're not added along with the core fields), for these fields i'm able to get values in my mail..
By the ay, i checked this thread: but didn't much info related to mail..
please kindly someone look into this..
For future readers, custom billing/shipping fields are saved as post meta for the order post. So in general, you can retrieve them with the typical WordPress get_post_meta() function.
But in WooCommerce 2.2, you don't need to as you can pass the field name directly to an array of fields that WC will show as a list in the email:
// pre-WooCommerce 2.3
function kia_email_order_meta_keys( $keys ) {
$keys['Some field'] = '_some_field';
return $keys;
add_filter('woocommerce_email_order_meta_keys', 'kia_email_order_meta_keys');
This method has been deprecated in version 2.3, probably so translation can be better. As of 2.3 you will need to target a different filter and send slightly different data.
// WooCommerce 2.3+
function kia_email_order_meta_fields( $fields, $sent_to_admin, $order ) {
$fields['some_field'] = array(
'label' => __( 'Some field', 'my-plugin-textdomain' ),
'value' => get_post_meta( $order->id, '_some_field', true );
return $fields;
add_filter('woocommerce_email_order_meta_fields', 'kia_email_order_meta_keys', 10, 3 );
I wrote a tutorial on Customizing WooCommerce Checkout Fields
I believe this answer, in the codex is specifically meant for this purpose:
I haven't implemented this myself but it's probably your best shot.

Zend Framework 2 ACL implementation

I have been integrating the Auth and Acl with ZF2 in my application. I have followed the tutorial. http://p0l0.binware.org/index.php/2012/02/18/zend-framework-2-authentication-acl-using-eventmanager/
But, i can't get the features of ACL.
I have the used the ACL in Auth module instead of Users.
How can i restrict the access for guest? How to allow the member for all pages access?
I have not changed anything. Please check the tutorial.
Can anyone please sort out my problem? or else guide me to do.
Just starting to explore ACL. your problem comes up first in google search result.
It is clear that the namespaces in use in the tutorial are wrong (use Zend\Acl\Acl as ZendAcl,).
The ACL namespace is:
namespace Zend\Permissions\Acl;
class Acl implements AclInterface
ACL Setup in five minutes this is quick and easy way of setting up acl in your zendframework 2 application
I've had the same problem to resolve auth+acl control issue and finnaly I've got it. It's simple:
1 - Create a global or a special module acl config file: ....module/Profil/config/acl.config.php
You can place it under the global config directory of the application
return array(
'acl' => array(
'roles' => array(
'guest' => null,
'member' => 'guest',
'admin' => 'member'
'resources' => array(
'Profil' => array(
'Index' => array(
'allow' => array(
// action => member
'signup' => 'guest',
'index' => 'guest', // signin ;)
'home' => 'member',
'signout' => 'member',
'all' => 'admin',
'deny' => array(
'home' => 'guest',
Here I've defined how my module "Profil" can work and the roles that can use it and the limits for each one of them.
A guest has no parent.A member inherits from the guest permissions.
The boss admin inherits from both member and guest.

Kohana 3 Auth in IE

I'm finding I can't log in to my Kohana site through IE. (just IE, works fine everywhere else)
It's validating, so much as, it knows if you get your username and password wrong, but its not creating the session.
I've added to: application/config/session.php
return array(
'cookie' => array(
'name' => 'session_cookie',
'encrypted' => TRUE,
'lifetime' => 43200,
'native' => array(
'name' => 'session_native',
'encrypted' => TRUE,
'lifetime' => 43200,
'database' => array(
'name' => 'session_database',
'group' => 'default',
'table' => 'sessions',
But I wouldn't expect it to do anything on its own.
Does anyone have any helpful pointers?
I want to re-instate this question as its not really answered in a way that will be helpful to others:
Kohana 3 Auth in IE
Ok, so it was the fact that there was an underscore in the url!!..
Who'd have thought!. IE can't handle cookies and sessions if there is an underscore in the url.
Don't we all just LOVE ie!! :)
Check your session/cookies options on your browser. (IE8 on XP)
Follow those steps:
Tools --> Internet Options --> Privacy --> Advanced.