CodeIgniter-Multi-Upload icon indicating copy to clipboard operation
CodeIgniter-Multi-Upload copied to clipboard

Declaration of MY_Upload should be compatible with CI_Upload

Open deepesh0102 opened this issue 8 years ago • 8 comments

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

deepesh0102 avatar Jul 01 '16 07:07 deepesh0102

I am also getting the same problem, error

muchezz avatar Jul 26 '16 10:07 muchezz

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?

nilshaebel avatar Sep 19 '16 09:09 nilshaebel

Thanks nilshaebel, It worked me also

techabserve avatar Feb 20 '17 12:02 techabserve

It worked me also

Ranidewi123 avatar Sep 07 '17 03:09 Ranidewi123

Awesome It worked for me also Thanks a lot

amodkumar57 avatar Jul 10 '18 12:07 amodkumar57

Thanks you very much!

samchi7095 avatar Aug 03 '18 08:08 samchi7095

Worked for me too, thanks a bunch

CitiDeveloper avatar Nov 20 '18 10:11 CitiDeveloper

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

Georangelg avatar Aug 18 '19 03:08 Georangelg