Welcome Guest, Not a member yet? Register   Sign In
Freakauth_light and Modular Extensions
#1

[eluser]wiredesignz[/eluser]
I have successfully installed Freakauth_light with ME5.1 (Should be the same with ME4.2)

Note: No allowance has been made for installing the freakauth example files.

Copy all freakauth files except controllers into their respective applicaton/directories.

Move models in FreakAuth_light subdirectory up one level into models directory.

Create a freakauth module, add all of the controllers to freakauth/controllers/, the admin subdirectory is no longer used.

Configure routes:
Code:
$route['auth(.*)'] = 'freakauth/auth$1';
$route['admin'] = 'freakauth/adminhome';
$route['admin/(.*)'] = 'freakauth/$1';

$route['installer'] = 'freakauth/installer';

Autoload freakauth dependencies:
Code:
$autoload['libraries'] = array('database', 'validation', 'fal_validation', 'freakauth_light');

$autoload['helper'] = array('url', 'form', 'array', 'freakauth_light', 'html');

$autoload['config'] = array('freakauth_light');

I think thats about all there is to do, if I have missed something or you have other issues please let me know.
#2

[eluser]otn3m3m[/eluser]
Hi,

Do we ignore the config files suffix with _demo?

Thanks
#3

[eluser]otn3m3m[/eluser]
I tried ignoring the _demo config files and modified the files as stated in your example. When I navigate to installer page is says that DB_session OFF. How do I turn it on?

Thanks
#4

[eluser]wiredesignz[/eluser]
Read the FreakAuth installation guide.
#5

[eluser]otn3m3m[/eluser]
okay,

so i followed the install guide.
I copied the config files from freakAuth with the suffix _demo. I deleted the original files in the config folder on my local machine:
- system/application/config.php
- system/application/autoload.php

and renamed the _demo to the appropriate file name. I then followed your guide for the changes to be made to the config and autoload files.

I deviated from the install guide in that i left the original routes.php file and instead of using the _demo file i used your modification to the original routes file.

The install page says everything is working fine. But when i click on a tab in the installer page like login i get routed to the index.php page.

any help would be appreciated.

thanks
#6

[eluser]otn3m3m[/eluser]
so when i manage to logout. I can view the login page. unfortuntely when i try to login i get an error.

Undefined property: Auth::$UserModel
Filename: libraries/FAL_validation.php
#7

[eluser]otn3m3m[/eluser]
the line of code in the library that the error points to

line 70 : $query = $this->CI->UserModel->getUserByUsername($username_login);

i moved freakauth models up one level into application/models
#8

[eluser]Tony Nash[/eluser]
I had the same problem. Has anyone found a solutions for this issue?

@wiredesignz, How did you manage to get away with this...
#9

[eluser]Tony Nash[/eluser]
@wiredesignz

ME5.1.x seems awesome! However, I desperately need Freakauth_ligh with my project too. I am having a very hard time merging these two wonderful libs together. ME5.1.31 working fine when its along and when I follow above steps, I got whole page of errors as bellow. Will you be kind enough to tell us how you able to manage to add FreakAuth with ME5.1.31 successfully? See the error bellow, it looks like an error on ME Loader? or is it actually FreakAuth?

Code:
A PHP Error was encountered

Severity: 4096

Message: Object of class UserTemp could not be converted to string

Filename: libraries/Loader.php

Line Number: 1029

A PHP Error was encountered

Severity: Notice

Message: Object of class UserTemp to string conversion

Filename: libraries/Loader.php

Line Number: 1029

A PHP Error was encountered

Severity: Notice

Message: Undefined property: Installer::$Object

Filename: libraries/Loader.php

Line Number: 1029


Fatal error: Call to a member function _assign_libraries() on a non-object in C:\wamp\www\intranet2\system\libraries\Loader.php on line 1029


This error appear after I moved "usertemp.php" from app../model/FreakAuth_light to app../model/usertemp.php. before that it was as bellow.

Code:
An Error Was Encountered
Unable to locate the file: usertemp.php in: FreakAuth_light
#10

[eluser]wiredesignz[/eluser]
The error is from CI Loader not ME.

You only have one error there, the others are a byproduct of the first error.
Code:
Fatal error: Call to a member function _assign_libraries() on a non-object...

CI Loader cannot find the usertemp model, Check your filenames and locations again.

EDIT:
You may have to put the usertemp model back into the original subdirectory and try again.




Theme © iAndrew 2016 - Forum software by © MyBB