Welcome Guest, Not a member yet? Register   Sign In
Error logs for Codeigniter 2.0 HMVC and $this->load->library('upload');
#1

[eluser]Unknown[/eluser]
I have this code to upload image in codeiginter 2.0 HMVC
Code:
/* IMAGE UPLOADING */
            /* Create the config for upload library */
            $config['upload_path'] = './media/property_images/'; /* NB! create this dir! */
            $config['allowed_types'] = 'gif|jpg|png|jpeg';
            $config['encrypt_name'] = true; //Encryt the name

            /* Load the upload library */
            $this->load->library('upload', $config);

and it giving this error in the error logs
Code:
[Thu Feb 24 00:09:38 2011] [error] [client ::1] PHP Fatal error:  Call to a member function library() on a non-object in /var/www/adsoko/application/modules/property/controllers/property_manager.php on line 207, referer: http://localhost/adsoko/en/property/property_manager/add_property
[Thu Feb 24 00:09:38 2011] [error] [client ::1] File does not exist: /var/www/favicon.ico
[Thu Feb 24 00:10:12 2011] [error] [client ::1] PHP Fatal error:  Class 'Upload' not found in /var/www/adsoko/application/third_party/MX/Loader.php on line 156, referer: http://localhost/adsoko/en/property/property_manager/add_property

I have also autoloaded the upload library.
Please help?




Theme © iAndrew 2016 - Forum software by © MyBB