non-object Error |
Hi,
I'm new on the forum and I don't know I'm writing in correct place I passed Ubuntu yesterday and my Codeigniter projects give a lot of errors. (I'm using PHP 5.5.6) I clean some of that but I'm getting an error and I can't clean it. (It's on the attachment) Can you help me? Thanks...
03-12-2017, 04:00 AM
(This post was last modified: 03-12-2017, 04:00 AM by InsiteFX. Edit Reason: version error fixed )
The CodeIgniter recommends PHP version 5.6 or above.
Try upgrading your PHP version. I'am running PHP version 7.1.1 What did you Try? What did you Get? What did you Expect?
Joined CodeIgniter Community 2009. ( Skype: insitfx )
(03-12-2017, 01:59 AM)UygarDemirKoç Wrote: Hi, Does your Start controller extend CI_Controller, e.g: PHP Code: class Start extends CI_Controller
Make sure that you have a constructor also.
PHP Code: class Start extends CI_Controller What did you Try? What did you Get? What did you Expect?
Joined CodeIgniter Community 2009. ( Skype: insitfx )
Maybe you are calling on a property that is not defined, you may be do some verification before calling a property something like
PHP Code: property_exists(__CLASS__, 'propertyName') for example you have your MY_Autoloader that extends to you CI_Controller and your controller extends to MY_Autoloader or it depends how you name it. In this case the property has been set automatically before your controller has been loaded. Goodluck. Just take note, using $this and static are different instance.
God Bless CI Contributors
I tried to install PHP7 with Apache2. It's working right now. Thanks, the problem is solved
|
Welcome Guest, Not a member yet? Register Sign In |