codeigniter-advanced-images
codeigniter-advanced-images copied to clipboard
Is this compatible with CIV3 ?
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
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.
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
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 .
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 .
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.....
Changed the name but still the same error, nothing changed
I think there is an issue in Media.php with reference variables. Im not a php ninja, so not sure
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 .
Cheers, Appreciate your time :)
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 .
Hey, Im using Mac,
@Ihabafia Where can I see your modifications please ?
hey, Could you tell me how you fixed it please ? :+1:
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 .
Sorry, I did not get any code :cry:
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.
Yes. I confirm it still works with CI 3.1.8, and the image_helper works fine too.
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.