stvnthomas / CodeIgniter-Multi-Upload

Multiple file upload support for CodeIgniter 2.x.
151 stars 158 forks source link

Declaration of MY_Upload should be compatible with CI_Upload #30

Open deepesh0102 opened 8 years ago

deepesh0102 commented 8 years ago

A PHP Error was encountered

Severity: Runtime Notice

Message: Declaration of MY_Upload::initialize($config = Array) should be compatible with CI_Upload::initialize(array $config = Array, $reset = true)

Filename: libraries/MY_Upload.php

Line Number: 446

Backtrace:

File: C:\xampp\htdocs\codeigniter\index.php Line: 315 Function: require_once capture-1

muchezz commented 8 years ago

I am also getting the same problem, error

nilshaebel commented 8 years ago

I think I have found a solution. Open up the MY_Upload.php file which you have stored inside your application/library folder. Go to line 32.

Line 32 should look like this: public function initialize($config = array()){

Replace the whole line with this: public function initialize(array $config = array(), $reset = true){

Worked for me. Can any one confirm this?

techabserve commented 7 years ago

Thanks nilshaebel, It worked me also

Ranidewi123 commented 7 years ago

It worked me also

amodkumar57 commented 6 years ago

Awesome It worked for me also Thanks a lot

samchi7095 commented 6 years ago

Thanks you very much!

CitiDeveloper commented 5 years ago

Worked for me too, thanks a bunch

Georangelg commented 5 years ago

I think I have found a solution. Open up the MY_Upload.php file which you have stored inside your application/library folder. Go to line 32.

Line 32 should look like this: public function initialize($config = array()){

Replace the whole line with this: public function initialize(array $config = array(), $reset = true){

Worked for me. Can any one confirm

nice job <3