Skip to content
This repository has been archived by the owner on Mar 27, 2024. It is now read-only.

Declaration of MY_Upload should be compatible with CI_Upload #30

Open
deepesh0102 opened this issue Jul 1, 2016 · 8 comments
Open

Declaration of MY_Upload should be compatible with CI_Upload #30

deepesh0102 opened this issue Jul 1, 2016 · 8 comments

Comments

@deepesh0102
Copy link

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
Copy link

muchezz commented Jul 26, 2016

I am also getting the same problem,
error

@nilshaebel
Copy link

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
Copy link

Thanks nilshaebel, It worked me also

@Ranidewi123
Copy link

It worked me also

@amodkumar57
Copy link

Awesome
It worked for me also
Thanks a lot

@samchi7095
Copy link

Thanks you very much!

@CitiDeveloper
Copy link

Worked for me too, thanks a bunch

@Georangelg
Copy link

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants