Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5947025
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T16:54:22+00:00 2026-05-22T16:54:22+00:00

when i call this- $o = new Order(); codeigniter gives me this error- A

  • 0

when i call this-

$o = new Order();

codeigniter gives me this error-

A PHP Error was encountered

Severity: Notice

Message: Undefined property: order::$ion_auth_model

Filename: libraries/Loader.php

Line Number: 1035


Fatal error: Call to a member function _assign_libraries() on a non-object in C:\xampplite\htdocs\portraits\system\libraries\Loader.php on line 1035

At the minute the order model isnt doing anything other than whats in the _template from datamapper 1.8

here is the db schema for the order table

CREATE TABLE IF NOT EXISTS `orders` (
  `order_id` int(11) NOT NULL AUTO_INCREMENT,
  `user_id` int(11) NOT NULL,
  `image_path` int(11) NOT NULL,
  `status` enum('new','progress','completed','sent') NOT NULL,
  `placed` date NOT NULL,
  `updated_date` date NOT NULL,
  `will_send` int(1) NOT NULL,
  PRIMARY KEY (`order_id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;

This is what i was trying to do..

$o->user_id = $user->id;
            $o->status = 'new';
            $o->placed = unix_to_human(time(), TRUE, 'eu');;
            $o->will_send = 1;

any guidance on why CI is trying to load the auth model to the user class? or what am i missing here?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T16:54:23+00:00Added an answer on May 22, 2026 at 4:54 pm
    • Where is the Order class?
    • How do you include it to your code?
    • Does Order class standalone? or integrated to CodeIgniter?
    • Did you check/change your Ion_Auth config?
    • Did you ever tried to change the codes in Ion_Auth?
    • Did you try to call a variable from ion_auth that is not exists? (Eg: $this->ion_auth->order; or $this->ion_auth_model->order; )
    • Did you call CI superclass in Order class? If you trying to do access CodeIgniter’s classes and functions, you have to get the CI instance inside Order class. Eg;

      Class Order
      {
          public function __construct()
          {
              //Calling CI superclass to use libraries, models, helpers, views etc...
              $this->ci =& get_instance();
      
              //using CI's libraries:
              if ($this->ci->ion_auth->logged_in())
              {
                  //Do stuff here...
              }
          }
      }
      
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've got this code: Expect.Call(factory.CreateOrder()) .Return(new Order()) .Repeat.Times(4); When this is called four times,
Is it possible to call functions from class like this: $class = new class;
If you call a web service from Silverlight like this: MyServiceClient serviceClient = new
In my C++ program, I need to call this c API: GConn* gnet_conn_new (const
This code works fine: $result = $client->__call(optionalInfo, array( new SoapParam(..., client), new SoapParam(..., add_code))
I call this a flash meeting, but maybe there is another more appropriate name.
Every time I call this method my NSMutableData is leaking and I cannot figure
When I call this function, everything works, as long as I don't try to
I want to call this WS http://www.webservicex.net/country.asmx?op=GetCountries What is the best possible way to
I want to call this procedure that sends one value that can be NULL

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.