Welcome Guest, Not a member yet? Register   Sign In
EasyOpenID Library
#21

[eluser]UberError[/eluser]
Tried getting it working on CI 1.7.2 today.

Copied files to correct dirs...
Code:
class Siteauth extends Controller
{
    function Siteauth()
    {
        parent::Controller();
        $this->load->library('EasyOpenID');
    }
    
    function index()
    {
        echo "hello";
  } ...

results in

Quote:A PHP Error was encountered

Severity: Warning

Message: Cannot modify header information - headers already sent by (output started at /application/language/english/general_lang.php:16)

Filename: libraries/Session.php

Line Number: 662


Gunna look more into it tomorrow.
#22

[eluser]kbjr[/eluser]
[quote author="UberError" date="1287044030"]Tried getting it working on CI 1.7.2 today.

Copied files to correct dirs...
Code:
class Siteauth extends Controller
{
    function Siteauth()
    {
        parent::Controller();
        $this->load->library('EasyOpenID');
    }
    
    function index()
    {
        echo "hello";
  } ...

results in

Quote:A PHP Error was encountered

Severity: Warning

Message: Cannot modify header information - headers already sent by (output started at /application/language/english/general_lang.php:16)

Filename: libraries/Session.php

Line Number: 662


Gunna look more into it tomorrow.[/quote]

All testing and development of this library was done in CI 1.7.2 and I have never seen this error before. What else have you done with this application? This looks like something that is wrong elsewhere in your application, not in the library. Does it work for you in a fresh copy of CI?
#23

[eluser]quasiperfect[/eluser]
use LightOpenID is smaller faster easyer and it works great with ci1.7 and 2
#24

[eluser]UberError[/eluser]
I found the issue. I had a line break (face-palm) in a languages file.
#25

[eluser]kbjr[/eluser]
[quote author="UberError" date="1287554903"]I found the issue. I had a line break (face-palm) in a languages file.[/quote]

haha, don't you love those Tongue
#26

[eluser]UberError[/eluser]
Sure do. Right now I have it working so that the site redirects properly, however, upon returning to my site, CI does not like the querystring value (The URI you submitted has disallowed characters.). I'm assuming relating to the uri_protocol in CI's config.php... not sure what to change it to though, right now I just have it set to AUTO.

I also noticed on your github that facebook and twitter were finished. An updated an example on the site for these would be worlds of help.
#27

[eluser]kbjr[/eluser]
yes, i was going to add a note about that in the docs, i guess i just forgot to Tongue
the needed config settings are:
Code:
$config['uri_protocol'] = "PATH_INFO";
$config['enable_query_strings'] = TRUE;
#28

[eluser]UberError[/eluser]
Tried that earlier as well but it makes me use

www.mydomain.com/index.php/mycontroller/function
instead of
www.mydomain.com/mycontroller/function

I dont think its my .htaccess:

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /index.php/$1 [L]
</IfModule>
<IfModule !mod_rewrite.c>
ErrorDocument 404 /index.php
</IfModule>
#29

[eluser]kbjr[/eluser]
i've never had any trouble with my file paths. the .htaccess that i use looks like this:
Code:
#
# .htaccess
#
# This file contains directory specific configuration
# information for Apache
#

# use mod_rewrite to silently redirect
RewriteEngine on

# website pages
RewriteCond $1 !^(index\.php|favicon\.ico|robots\.txt|static)
RewriteRule ^(.*)$ index.php/$1 [L]
#30

[eluser]UberError[/eluser]
My suggestion...

In application\config\config.php:

Code:
$config['enable_query_strings'] = FALSE;

... because
Quote:... some of the helpers won't work as expected when
this feature [query strings] is enabled, since CodeIgniter is designed primarily to
use segment based URLs.

Then in your controller class, use this in the constructor:

Code:
parse_str($_SERVER['QUERY_STRING'],$_GET);




Theme © iAndrew 2016 - Forum software by © MyBB