Let us know!
SSO Error for Single sign on

Hi. I am newly started to use Codoforum for my project and loved it. However, I countred with an error.

Although my login successfully work, I take these errors.

    array (size=4)
      'file' => string 'C:\wamp\www\codoforum\sites\default\plugins\sso\sso.php' (length=55)
      'line' => int 68
      'function' => string 'add_js' (length=6)
      'args' => 
        array (size=2)
          0 => &string 'http://localhost/codoforum/sites/default/plugins/sso/assets/js/sso.js' (length=69)
          1 => &
            array (size=2)
              'name' => string 'sso.js' (length=6)
              'type' => string 'defer' (length=5)
  1 => 
    array (size=2)
      'function' => string 'add_sso_js' (length=10)
      'args' => 
        array (size=2)
          0 => &
            array (size=0)
              empty
          1 => &
            array (size=0)
              empty
  2 => 
    array (size=4)
      'file' => string 'C:\wamp\www\codoforum\sys\CODOF\Hook.php' (length=40)
      'line' => int 65
      'function' => string 'call_user_func_array' (length=20)
      'args' => 
        array (size=2)
          0 => &string 'add_sso_js' (length=10)
          1 => &
            array (size=2)
              0 => 
                array (size=0)
                  empty
              1 => 
                array (size=0)
                  empty
  3 => 
    array (size=6)
      'file' => string 'C:\wamp\www\codoforum\sys\CODOF\Smarty\Layout.php' (length=49)
      'line' => int 20
      'function' => string 'call' (length=4)
      'class' => string 'CODOF\Hook' (length=10)
      'type' => string '::' (length=2)
      'args' => 
        array (size=1)
          0 => &string 'before_site_head' (length=16)
  4 => 
    array (size=6)
      'file' => string 'C:\wamp\www\codoforum\routes.php' (length=32)
      'line' => int 719
      'function' => string 'load' (length=4)
      'class' => string 'CODOF\Smarty\Layout' (length=19)
      'type' => string '::' (length=2)
      'args' => 
        array (size=3)
          0 => &string 'forum/topics' (length=12)
          1 => &
            array (size=1)
              0 => string 'topics' (length=6)
          2 => &
            array (size=1)
              0 => 
                array (size=2)
                  0 => string 'topics/topics.js' (length=16)
                  1 => 
                    array (size=1)
                      'type' => string 'defer' (length=5)
  5 => 
    array (size=2)
      'function' => string '{closure}' (length=9)
      'args' => 
        array (size=0)
          empty
  6 => 
    array (size=4)
      'file' => string 'C:\wamp\www\codoforum\sys\Ext\limonade\limonade.php' (length=51)
      'line' => int 429
      'function' => string 'call_user_func_array' (length=20)
      'args' => 
        array (size=2)
          0 => 
            object(Closure)[92]
          1 => &
            array (size=0)
              empty
  7 => 
    array (size=4)
      'file' => string 'C:\wamp\www\codoforum\sys\CODOF\Access\Request.php' (length=50)
      'line' => int 96
      'function' => string 'run' (length=3)
      'args' => 
        array (size=0)
          empty
  8 => 
    array (size=6)
      'file' => string 'C:\wamp\www\codoforum\routes.php' (length=32)
      'line' => int 727
      'function' => string 'start' (length=5)
      'class' => string 'CODOF\Access\Request' (length=20)
      'type' => string '::' (length=2)
      'args' => 
        array (size=0)
          empty
  9 => 
    array (size=4)
      'file' => string 'C:\wamp\www\codoforum\index.php' (length=31)
      'line' => int 23
      'args' => 
        array (size=1)
          0 => string 'C:\wamp\www\codoforum\routes.php' (length=32)
      'function' => string 'require' (length=7)


( ! ) Warning: Illegal string offset 'position' in C:\wamp\www\codoforum\sys\globals\global.php on line 131
Call Stack
#    Time    Memory    Function    Location
1    0.0004    241224    {main}( )    ..\index.php:0
2    0.0573    4014624    require( 'C:\wamp\www\codoforum\routes.php' )    ..\index.php:23
3    0.0795    5263984    CODOF\Access\Request::start( )    ..\routes.php:727
4    0.0795    5264592    run( )    ..\Request.php:96
5    0.0818    5278752    call_user_func_array:{C:\wamp\www\codoforum\sys\Ext\limonade\limonade.php:429} ( )    ..\limonade.php:429
6    0.0819    5278912    {closure:C:\wamp\www\codoforum\routes.php:708-720}( )    ..\limonade.php:429
7    0.1294    6335496    CODOF\Smarty\Layout::load( )    ..\routes.php:719
8    0.1657    6753536    CODOF\Hook::call( )    ..\Layout.php:20
9    0.1658    6754672    call_user_func_array:{C:\wamp\www\codoforum\sys\CODOF\Hook.php:65} ( )    ..\Hook.php:65
10    0.1658    6754752    add_sso_js( )    ..\Hook.php:65
11    0.1658    6755480    add_js( )    ..\sso.php:68
Hi. I am newly started to use Codoforum for my project and loved it. However, I countred with an error. Although my login successfully work, I take these errors. ```` array (size=4) 'file' => string 'C:\wamp\www\codoforum\sites\default\plugins\sso\sso.php' (length=55) 'line' => int 68 'function' => string 'add_js' (length=6) 'args' => array (size=2) 0 => &string 'http://localhost/codoforum/sites/default/plugins/sso/assets/js/sso.js' (length=69) 1 => & array (size=2) 'name' => string 'sso.js' (length=6) 'type' => string 'defer' (length=5) 1 => array (size=2) 'function' => string 'add_sso_js' (length=10) 'args' => array (size=2) 0 => & array (size=0) empty 1 => & array (size=0) empty 2 => array (size=4) 'file' => string 'C:\wamp\www\codoforum\sys\CODOF\Hook.php' (length=40) 'line' => int 65 'function' => string 'call_user_func_array' (length=20) 'args' => array (size=2) 0 => &string 'add_sso_js' (length=10) 1 => & array (size=2) 0 => array (size=0) empty 1 => array (size=0) empty 3 => array (size=6) 'file' => string 'C:\wamp\www\codoforum\sys\CODOF\Smarty\Layout.php' (length=49) 'line' => int 20 'function' => string 'call' (length=4) 'class' => string 'CODOF\Hook' (length=10) 'type' => string '::' (length=2) 'args' => array (size=1) 0 => &string 'before_site_head' (length=16) 4 => array (size=6) 'file' => string 'C:\wamp\www\codoforum\routes.php' (length=32) 'line' => int 719 'function' => string 'load' (length=4) 'class' => string 'CODOF\Smarty\Layout' (length=19) 'type' => string '::' (length=2) 'args' => array (size=3) 0 => &string 'forum/topics' (length=12) 1 => & array (size=1) 0 => string 'topics' (length=6) 2 => & array (size=1) 0 => array (size=2) 0 => string 'topics/topics.js' (length=16) 1 => array (size=1) 'type' => string 'defer' (length=5) 5 => array (size=2) 'function' => string '{closure}' (length=9) 'args' => array (size=0) empty 6 => array (size=4) 'file' => string 'C:\wamp\www\codoforum\sys\Ext\limonade\limonade.php' (length=51) 'line' => int 429 'function' => string 'call_user_func_array' (length=20) 'args' => array (size=2) 0 => object(Closure)[92] 1 => & array (size=0) empty 7 => array (size=4) 'file' => string 'C:\wamp\www\codoforum\sys\CODOF\Access\Request.php' (length=50) 'line' => int 96 'function' => string 'run' (length=3) 'args' => array (size=0) empty 8 => array (size=6) 'file' => string 'C:\wamp\www\codoforum\routes.php' (length=32) 'line' => int 727 'function' => string 'start' (length=5) 'class' => string 'CODOF\Access\Request' (length=20) 'type' => string '::' (length=2) 'args' => array (size=0) empty 9 => array (size=4) 'file' => string 'C:\wamp\www\codoforum\index.php' (length=31) 'line' => int 23 'args' => array (size=1) 0 => string 'C:\wamp\www\codoforum\routes.php' (length=32) 'function' => string 'require' (length=7) ( ! ) Warning: Illegal string offset 'position' in C:\wamp\www\codoforum\sys\globals\global.php on line 131 Call Stack # Time Memory Function Location 1 0.0004 241224 {main}( ) ..\index.php:0 2 0.0573 4014624 require( 'C:\wamp\www\codoforum\routes.php' ) ..\index.php:23 3 0.0795 5263984 CODOF\Access\Request::start( ) ..\routes.php:727 4 0.0795 5264592 run( ) ..\Request.php:96 5 0.0818 5278752 call_user_func_array:{C:\wamp\www\codoforum\sys\Ext\limonade\limonade.php:429} ( ) ..\limonade.php:429 6 0.0819 5278912 {closure:C:\wamp\www\codoforum\routes.php:708-720}( ) ..\limonade.php:429 7 0.1294 6335496 CODOF\Smarty\Layout::load( ) ..\routes.php:719 8 0.1657 6753536 CODOF\Hook::call( ) ..\Layout.php:20 9 0.1658 6754672 call_user_func_array:{C:\wamp\www\codoforum\sys\CODOF\Hook.php:65} ( ) ..\Hook.php:65 10 0.1658 6754752 add_sso_js( ) ..\Hook.php:65 11 0.1658 6755480 add_js( ) ..\sso.php:68 ````

I fixed this problem by using,

I changed this in sso.php(plugins\sso):

add_js(PLUGIN_PATH . 'sso/assets/js/sso.js', array('name' => 'sso.js', 'type' => 'defer'));

to This,

$asset = new \CODOF\Asset\Stream();
$col = new \CODOF\Asset\Collection('head_col');
$col->addJS(PLUGIN_PATH . 'sso/assets/js/sso.js', array('name' => 'sso.js', 'type' => 'defer'));
$asset->addCollection($col);
I fixed this problem by using, I changed this in sso.php(plugins\sso): > add_js(PLUGIN_PATH . 'sso/assets/js/sso.js', array('name' => 'sso.js', 'type' => 'defer')); to This, > $asset = new \CODOF\Asset\Stream(); $col = new \CODOF\Asset\Collection('head_col'); $col->addJS(PLUGIN_PATH . 'sso/assets/js/sso.js', array('name' => 'sso.js', 'type' => 'defer')); $asset->addCollection($col);
edited Jan 27 '15 at 10:06 pm
298
1
1
live preview
enter atleast 10 characters
WARNING: You mentioned %MENTIONS%, but they cannot see this message and will not be notified
Saving...
Saved
With selected deselect posts show selected posts
All posts under this topic will be deleted ?
Pending draft ... Click to resume editing
Discard draft