Welcome Guest, Not a member yet? Register   Sign In
Multiple file upload library
#7

[eluser]pierrest[/eluser]
Hello everybody,

This library was workin perfect on my dev server, but now just deploying my project to the production server and i get this message

Call to undefined method CI_Upload::up()

my controller:
Code:
<?php

class Upload extends CI_Controller {

function __construct()
{
  parent::__construct();
  $this->load->helper(array('form', 'url'));
}

function index()
{
  $this->load->view('admin/modify_module', array('error' => ' ' ));
  
  $this->load->library('session');
  $this->load->library('encrypt');
  $this->data['username'] = $this->session->userdata('user');
}
function do_upload_member() {
   $this->load->library('upload');

   $config['upload_path']   = './uploads'; //if the files does not exist it'll be created
   $config['allowed_types'] = 'gif|jpg|png|xls|xlsx|php|pdf';
   $config['max_size']   = '4000'; //size in kilobytes
   $config['encrypt_name']  = TRUE;

   $this->upload->initialize($config);

   $uploaded = $this->upload->up(TRUE); //Pass true if you want to create the index.php files

  $this->load->model('members');
   if ($this->input->post('submit')) {
    $this->members->add_member($uploaded);
   }
  $data['pagetitle'] = " Adhésion";
  $data['pageref'] = 'Nous avons bien reçu votre demande';
  $this->load->view('head', $data);
  $this->load->view('confirmation');
}



}
?>

have been for a while on it and i am lost...

i have some rewriting htaccess stuff too which was not on the dev server:
(there is an evil joomla project on the same sever (which i did not develop myself) i use a subdomain for CI)

php_flag "allow_url_fopen" "On"
php_flag "allow_url_include" "On"

#AuthType Basic
#AuthName "Le site est en maintenance, veuillez repasser plus tard"
#AuthUserFile /home/www/c5f672d79af39528e95ff68c3587e35e/web/members/.htpasswd

#<Files index.php>
#require valid-user
#</Files>

RewriteEngine on
RewriteCond $1 !^(index\.php|resources|robots\.txt)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L,QSA]


is it this rewrite which may causing the problem?

Thanks a lot if you can help me


Messages In This Thread
Multiple file upload library - by El Forum - 01-06-2012, 05:36 AM
Multiple file upload library - by El Forum - 01-19-2012, 03:56 PM
Multiple file upload library - by El Forum - 01-20-2012, 11:26 AM
Multiple file upload library - by El Forum - 01-20-2012, 03:57 PM
Multiple file upload library - by El Forum - 01-21-2012, 04:18 PM
Multiple file upload library - by El Forum - 01-27-2012, 07:45 PM
Multiple file upload library - by El Forum - 02-06-2012, 08:42 AM
Multiple file upload library - by El Forum - 02-06-2012, 08:59 AM
Multiple file upload library - by El Forum - 02-06-2012, 02:22 PM
Multiple file upload library - by El Forum - 02-07-2012, 06:20 AM
Multiple file upload library - by El Forum - 03-28-2012, 10:31 AM
Multiple file upload library - by El Forum - 03-28-2012, 08:35 PM
Multiple file upload library - by El Forum - 03-29-2012, 04:01 AM
Multiple file upload library - by El Forum - 05-18-2012, 12:15 PM
Multiple file upload library - by El Forum - 05-23-2012, 08:32 AM
Multiple file upload library - by El Forum - 06-03-2012, 01:14 AM
Multiple file upload library - by El Forum - 06-08-2012, 01:01 PM
Multiple file upload library - by El Forum - 06-08-2012, 09:13 PM
Multiple file upload library - by El Forum - 06-09-2012, 04:05 AM
Multiple file upload library - by El Forum - 06-09-2012, 05:28 PM
Multiple file upload library - by El Forum - 06-14-2012, 03:41 PM
Multiple file upload library - by El Forum - 06-14-2012, 07:23 PM
Multiple file upload library - by El Forum - 06-16-2012, 02:51 AM
Multiple file upload library - by El Forum - 08-06-2012, 05:14 AM
Multiple file upload library - by El Forum - 08-06-2012, 05:23 AM
Multiple file upload library - by El Forum - 08-06-2012, 06:30 AM
Multiple file upload library - by El Forum - 08-08-2012, 06:41 AM
Multiple file upload library - by El Forum - 08-08-2012, 06:45 AM
Multiple file upload library - by El Forum - 08-18-2012, 06:45 AM
Multiple file upload library - by El Forum - 08-21-2012, 02:14 PM
Multiple file upload library - by El Forum - 08-21-2012, 11:25 PM
Multiple file upload library - by El Forum - 08-22-2012, 02:45 AM
Multiple file upload library - by El Forum - 10-04-2012, 11:25 PM
Multiple file upload library - by El Forum - 10-13-2012, 10:48 PM
Multiple file upload library - by El Forum - 10-20-2012, 08:33 PM
Multiple file upload library - by El Forum - 10-20-2012, 08:35 PM
Multiple file upload library - by El Forum - 10-20-2012, 09:32 PM
Multiple file upload library - by El Forum - 10-20-2012, 09:34 PM
Multiple file upload library - by El Forum - 10-21-2012, 08:45 AM



Theme © iAndrew 2016 - Forum software by © MyBB