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

[eluser]Tony Nash[/eluser]
Well.. I am pulling my hire now... Sorry I can't seems to find the exact problem here! files and folders seems to be in right place. See my PM screen shot.

Yet I get following error message
Code:
An Error Was Encountered
Unable to locate the file: usertemp.php in: FreakAuth_light


If I move usertemp.php to above from /app../mode../FreakAuth_light to app../models/usertemp.php then only I get that huge error message.

hummm... still not sure why I get "Unable to locate the file: usertemp.php" :-(. In fact, both ME and FA working fine when they not togather.
#12

[eluser]wiredesignz[/eluser]
They both work fine together too Tony.

I'll take a look at the screenshot and post back.

EDIT:
Actually looking further ME doesnt allow loading from model subdirectories, which is why I said to move them in my original post, and is something I might need to change in the next update of ME5.

Until then you need to move the usertemp model up one level and find where the freakauth libraries load the usertemp model and alter the path accordingly.

Good luck
#13

[eluser]Tony Nash[/eluser]
Thanks for the tip wiredesignz. But no luck so far...

Well I move the usertemp.php and change the following code in FA (freakAuth_light.php)

Code:
Line 86) $this->CI->load->model('FreakAuth_light/usertemp', 'UserTemp');

to
$this->CI->load->model('usertemp', 'UserTemp');

But still get the long error page..

I then tested with ME5.1.32 (with model inside sub directly and then above) and still get the same old error..

I now feel this is some kind of bug in CI loader class? If so, that would be a very interesting case.

Code:
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
#14

[eluser]wiredesignz[/eluser]
Tony, One thing that I just realised is, with ME installed properly, CI Loader is never used to load models, so why is it causing the error?

I'm thinking you don't have ME installed correctly or you are using a MY_Controller extension which bypasses ME completely.
#15

[eluser]Tony Nash[/eluser]
Trust me, I just tested with complete new instance of CI (1.7 SVN), ME5.1.32, FA 1.1 and (PHP 5.2.5). But still I get the same error. I am 100% sure that ME is working fine and it has passed all your test cases on wiki. But I don't know why it load CI loader. However, I noticed ME is not calling the proper module with following FA libraries on on autoload.php. it simply display that long error.

$autoload['libraries'] = array('database', 'validation', 'fal_validation', 'freakauth_light');

If I remove FA libraries (last 2) from autoload.php then ME display the correct module output (ex: welcome, test). Otherwise its the same long error.

NOTE: I noticed CI 1.7 is having a new validation lib. since fal_validaion extending CI validation, will it be the issues here?

Is there anything I can send you to help to identify this issue for me?

I know you are busy guy and really appreciate all your help so far.. Thanks indeed!
#16

[eluser]wiredesignz[/eluser]
@tony, When I autoload a library which loads a model I get the same error.

I will investigate this and post back.


EDIT:
ME5.1 has been updated to fix this error. Thanks Tony Wink
#17

[eluser]Tony Nash[/eluser]
Cool! it working like a charm

wiredesignz, you are really like a code machine. Thank you very much. :-)
#18

[eluser]wiredesignz[/eluser]
You're welcome Tony. Thanks for the help Wink
#19

[eluser]Tony Nash[/eluser]
Actually, you helped me and save hundreds of coding lines :-). Thanks indeed!


Okay, Maybe, I found another issue.

Quote:the admin subdirectory is no longer used.

I might be stupid. But I moved admin folder to modules and thought building my site admin section top on FA admin. Everything went pretty well with following routes.

Code:
$route['default_controller'] = "freakauth/freakauth_demo";
$route['scaffolding_trigger'] = "";

$route['auth(.*)'] = 'freakauth/auth$1';
$route['admin'] = 'admin/adminhome';
//$route['admin/(.*)'] = 'admin/$1';
$route['admin/users/:num'] = "admin/users";
$route['admin/admins/:num'] = "admin/admins";

$route['example(.*)'] = "freakauth/example$1";
$route['installer'] = 'freakauth/installer';

Admin page loaded properly. However, when I go to .../index.php/admin/admins page or /index.php/admin/users, I get following error.

Code:
Fatal error: Call to a member function set_error_delimiters() on a non-object in C:\wamp\www\intranet2\system\application\modules\admin\controllers\admins.php on line 58

The set_error_delimiters() available on CI validation and FA (admins.php) line as bellow

[CODE]
$this->fal_validation->set_error_delimiters($this->config->item('FAL_error_delimiter_open'), $this->config->item('FAL_error_delimiter_close'));
[CODE]

Maybe i am wrong, but I feel this is something to do with ME. For some reason FAL_validation.php cannot instance CI_validation? Dose this make any sense to you?
#20

[eluser]wiredesignz[/eluser]
Honestly, these errors are not ME related. Your routes need fixing and maybe other things too.

Routes must capture the segment you wish to pass: ie: use brackets.
Code:
$route['admin/users/(:num)'] = "admin/users/$1";
$route['admin/admins/(:num)'] = "admin/admins/$1";
I really can't debug your app for you. Good luck.




Theme © iAndrew 2016 - Forum software by © MyBB