waifung0207 / ci_bootstrap_3

A multi-tenant website template based on CodeIgniter 3 with integration of some useful tools
MIT License
385 stars 316 forks source link

i got error when open demo cover photos #41

Closed albertz-chaniago closed 8 years ago

albertz-chaniago commented 8 years ago

Message: Methods with the same name as their class will not be constructors in a future version of PHP; Image_moo has a deprecated constructor

Filename: libraries/Image_moo.php

Line Number: 69 Backtrace:

File: C:\Program Files (x86)\Ampps\www\ci_admin\application\third_party\MX\Modules.php Line: 157 Function: _error_handler

File: C:\Program Files (x86)\Ampps\www\ci_admin\application\third_party\MX\Modules.php Line: 157 Function: include_once

File: C:\Program Files (x86)\Ampps\www\ci_admin\application\third_party\MX\Loader.php Line: 177 Function: load_file

File: C:\Program Files (x86)\Ampps\www\ci_admin\application\modules\admin\libraries\Image_crud.php Line: 493 Function: library

File: C:\Program Files (x86)\Ampps\www\ci_admin\application\core\controllers\Admin_Controller.php Line: 132 Function: render

File: C:\Program Files (x86)\Ampps\www\ci_admin\application\modules\admin\controllers\Demo.php Line: 82 Function: render_crud

File: C:\Program Files (x86)\Ampps\www\ci_admin\index.php Line: 292 Function: require_once

waifung0207 commented 8 years ago

Hi,

Are you using PHP7? This repo is not tested on it so probably there will be issues.

albertz-chaniago commented 8 years ago

yes iam using php 7

waifung0207 commented 8 years ago

As I seen from the error message and from this article, you can try to edit the file directly as temporary solution: /application/modules/admin/libraries/Image_moo.php (which is a dependency of Image CRUD library).

See if it works after changing line 93 from:

function Image_moo()

to

function __construct()
albertz-chaniago commented 8 years ago

thank you,probrem solved.

Rockysarasimanalu commented 8 years ago

Hyy waifung0207 i have the same error with albert but nothing happend after i do what do say. can you help me?

waifung0207 commented 8 years ago

Hi if313103, can you copy the error message so I can check with it?

Rockysarasimanalu commented 8 years ago

i just download project image gallery grocerry CRUD from (http://waryantosite.blogspot.co.id/2013/10/membuat-galeri-foto-dengan-codeigniter.html) and i try to execute application in my PC but when i try to upload image in Example1 i got error like this :

A PHP Error was encountered

Severity: 8192

Message: Methods with the same name as their class will not be constructors in a future version of PHP; Image_moo has a deprecated constructor

Filename: libraries/image_moo.php

Line Number: 69

Can you help me waifung0207 ?

waifung0207 commented 8 years ago

Please just follow my suggested solution from above, I have answered albertz-chaniago already.