ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Freakauth_light and Modular Extensions

September 23, 2008 12:28am

Subscribe [2]
  • #16 / Oct 04, 2008 8:26am

    wiredesignz

    2882 posts

    @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 😉

  • #17 / Oct 04, 2008 11:13am

    Tony Nash

    42 posts

    Cool! it working like a charm

    wiredesignz, you are really like a code machine. Thank you very much. 😊

  • #18 / Oct 04, 2008 11:43am

    wiredesignz

    2882 posts

    You’re welcome Tony. Thanks for the help 😉

  • #19 / Oct 04, 2008 12:49pm

    Tony Nash

    42 posts

    Actually, you helped me and save hundreds of coding lines 😊. Thanks indeed!


    Okay, Maybe, I found another issue.

    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.

    $route[‘default_controller’] = “freakauth/freakauth_demo”;<br /> $route[‘scaffolding_trigger’] = “”;</p> <p>$route[‘auth(.*)’] = ‘freakauth/auth$1’;<br /> $route[‘admin’] = ‘admin/adminhome’;<br /> //$route[‘admin/(.*)’] = ‘admin/$1’;<br /> $route[‘admin/users/:num’] = “admin/users”;<br /> $route[‘admin/admins/:num’] = “admin/admins”;</p> <p>$route[‘example(.*)’] = “freakauth/example$1”;<br /> $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.

    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


    $this->fal_validation->set_error_delimiters($this->config->item(‘FAL_error_delimiter_open’), $this->config->item(‘FAL_error_delimiter_close’));

    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 / Oct 04, 2008 1:45pm

    wiredesignz

    2882 posts

    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.

    $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.

  • #21 / May 11, 2009 2:09am

    Madmartigan1

    160 posts

    @wiredesignz: Thank you so much for responding to my other post(s).

    I got everything running OK after reading this thread except for some problems with view files.

    Unable to load the requested file: FAL/content/login_anchor_user.php
    //where "FAL" is $config['FAL_template_dir'] = 'FAL/';

    ...and other view files as well. I’ve tried copying the view files all over the place to no avail, but for some reason it loads the login form fine and executes the log in/out actions correctly. All view files are in the default FAL locations.

    If the answer is elusive, I’m open to suggestions for another auth library that will work well with ME. Getting ME running with an auth library is top priority for me if I am going to continue using CI.

    Thank you!