codeigniter-advanced-images icon indicating copy to clipboard operation
codeigniter-advanced-images copied to clipboard

Is this compatible with CIV3 ?

Open sahanDissanayake opened this issue 9 years ago • 18 comments

Just trying to get this to work, But does not works @jenssegers

I have attached a zip folder with the full application and you can see if you visit the index I mean the default_action

The images are not loaded

https://drive.google.com/open?id=0B6D3etNOHhPTWGx5bHdiN29kVzg&authuser=0

sahanDissanayake avatar Jun 13 '15 05:06 sahanDissanayake

What is the error your are getting with Image library?

Ihab Abu Afia

On Sat, Jun 13, 2015 at 8:06 AM, sahanDissanayake [email protected] wrote:

Just trying to get this to work, But does not works @jenssegers https://github.com/jenssegers

I have attached a zip folder with the full application and you can see if you visit the index I mean the default_action

The images are not loaded

https://drive.google.com/open?id=0B6D3etNOHhPTWGx5bHdiN29kVzg&authuser=0

— Reply to this email directly or view it on GitHub https://github.com/jenssegers/codeigniter-advanced-images/issues/4.

Ihabafia avatar Jun 13 '15 05:06 Ihabafia

I get this error when I try to load an image straight away through the link

A PHP Error was encountered

Severity: Runtime Notice

Message: Only variables should be passed by reference

Filename: controllers/Media.php

Line Number: 36

Backtrace:

File: /Applications/XAMPP/xamppfiles/htdocs/Images/application/controllers/Media.php
Line: 36
Function: _error_handler

File: /Applications/XAMPP/xamppfiles/htdocs/Images/index.php
Line: 292
Function: require_once

sahanDissanayake avatar Jun 13 '15 05:06 sahanDissanayake

screen shot 2015-06-13 at 5 59 45 pm

sahanDissanayake avatar Jun 13 '15 06:06 sahanDissanayake

You have: <img src="" /> and it suppose to be: <img src="" />

Ihab Abu Afia

On Sat, Jun 13, 2015 at 8:57 AM, sahanDissanayake [email protected] wrote:

I get this error when I try to load an image

A PHP Error was encountered

Severity: Runtime Notice

Message: Only variables should be passed by reference

Filename: controllers/Media.php

Line Number: 36

Backtrace:

File: /Applications/XAMPP/xamppfiles/htdocs/Images/application/controllers/Media.php Line: 36Function: _error_handler

File: /Applications/XAMPP/xamppfiles/htdocs/Images/index.php Line: 292Function: require_once

— Reply to this email directly or view it on GitHub https://github.com/jenssegers/codeigniter-advanced-images/issues/4#issuecomment-111678297 .

Ihabafia avatar Jun 13 '15 06:06 Ihabafia

also make sure media.php to be Media.php if you are using CI3

Ihab Abu Afia

On Sat, Jun 13, 2015 at 9:07 AM, Ihab Abu Afia [email protected] wrote:

You have: <img src="" /> and it suppose to be: <img src="" />

Ihab Abu Afia

On Sat, Jun 13, 2015 at 8:57 AM, sahanDissanayake < [email protected]> wrote:

I get this error when I try to load an image

A PHP Error was encountered

Severity: Runtime Notice

Message: Only variables should be passed by reference

Filename: controllers/Media.php

Line Number: 36

Backtrace:

File: /Applications/XAMPP/xamppfiles/htdocs/Images/application/controllers/Media.php Line: 36Function: _error_handler

File: /Applications/XAMPP/xamppfiles/htdocs/Images/index.php Line: 292Function: require_once

— Reply to this email directly or view it on GitHub https://github.com/jenssegers/codeigniter-advanced-images/issues/4#issuecomment-111678297 .

Ihabafia avatar Jun 13 '15 06:06 Ihabafia

Nah no luck, When I do < img src="" />

The image src is pointing out of the source folder, you know

My Codeigniter setup is in

localhost/Images/

When I do < img src="" />

The image link is created at localhost/media/street.....

sahanDissanayake avatar Jun 13 '15 06:06 sahanDissanayake

Changed the name but still the same error, nothing changed

sahanDissanayake avatar Jun 13 '15 06:06 sahanDissanayake

I think there is an issue in Media.php with reference variables. Im not a php ninja, so not sure

sahanDissanayake avatar Jun 13 '15 06:06 sahanDissanayake

I am not sure, I think it's not related to the media setup, it's the XAMPP probably.

I will try to dig more and see.

Ihab Abu Afia

On Sat, Jun 13, 2015 at 9:12 AM, sahanDissanayake [email protected] wrote:

Changed the name but still the same error, nothing changed

— Reply to this email directly or view it on GitHub https://github.com/jenssegers/codeigniter-advanced-images/issues/4#issuecomment-111679492 .

Ihabafia avatar Jun 13 '15 06:06 Ihabafia

Cheers, Appreciate your time :)

sahanDissanayake avatar Jun 13 '15 06:06 sahanDissanayake

I made few modifications (minors) and it's working perfectly. Are you using Mac or PC

Ihab Abu Afia

On Sat, Jun 13, 2015 at 9:14 AM, Ihab Abu Afia [email protected] wrote:

I am not sure, I think it's not related to the media setup, it's the XAMPP probably.

I will try to dig more and see.

Ihab Abu Afia

On Sat, Jun 13, 2015 at 9:12 AM, sahanDissanayake < [email protected]> wrote:

Changed the name but still the same error, nothing changed

— Reply to this email directly or view it on GitHub https://github.com/jenssegers/codeigniter-advanced-images/issues/4#issuecomment-111679492 .

Ihabafia avatar Jun 13 '15 06:06 Ihabafia

Hey, Im using Mac,

sahanDissanayake avatar Jun 13 '15 10:06 sahanDissanayake

@Ihabafia Where can I see your modifications please ?

sahanDissanayake avatar Jun 13 '15 11:06 sahanDissanayake

hey, Could you tell me how you fixed it please ? :+1:

sahanDissanayake avatar Jun 13 '15 22:06 sahanDissanayake

You can chech the code that i sent you and see what was you were making wrong

On Sun, Jun 14, 2015, 1:43 AM sahanDissanayake [email protected] wrote:

hey, Could you tell me how you fixed it please ? [image: :+1:]

— Reply to this email directly or view it on GitHub https://github.com/jenssegers/codeigniter-advanced-images/issues/4#issuecomment-111757980 .

Ihabafia avatar Jun 14 '15 08:06 Ihabafia

Sorry, I did not get any code :cry:

sahanDissanayake avatar Jun 14 '15 08:06 sahanDissanayake

I can confirm that this is still working with Codeigniter 3.x, at least with the minimum configuration. Specifically, I'm using the library with CI 3.1.6.

However, I'm not using the optional image_helper so I can't speak to that bit working or not.

templeman avatar Oct 18 '17 17:10 templeman

Yes. I confirm it still works with CI 3.1.8, and the image_helper works fine too.

screen shot 2015-06-13 at 5 59 45 pm

Originally posted by @sahanDissanayake in https://github.com/jenssegers/codeigniter-advanced-images/issues/4#issuecomment-111678794

I had this same issue too while setting it up. The reason is because, the extended MY_image_lib library was not properly loaded.

I keep all third-party package in the third party folder, so I had to include the package path, before it started working fine.

iAdesanyaDaniel avatar Apr 22 '19 03:04 iAdesanyaDaniel