2 of 2
2
ED Image Resizer
Posted: 24 May 2010 04:25 AM   [ Ignore ]   [ # 19 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  272
Joined  08-07-2007

What I did was deleted the original plugin, updated to latest EE and then reinstalled the plugin and miraculously it worked.

 Signature 

Portfolio: Portfolio
Twitter: @gunkdesign

Profile
 
 
Posted: 17 June 2010 01:43 PM   [ Ignore ]   [ # 20 ]  
Grad Student
Avatar
Rank
Total Posts:  76
Joined  11-27-2007

Hello, everyone. There are a few errors in the v0.9.0 file posted on github, that have not been mentioned anywhere. Here’s how to get ED ImageResizer v0.9.0 working under EE2 Public Beta.

Download the EE2 version of the Plugin from github:
http://github.com/erskinedesign/ed.imageresizer.ee2_addon

Open the file pi.ed_imageresizer.php

On or about Line 70 you will see:

public function __construct( ) 

Change Line 70 to:

public function Ed_imageresizer( ) 

Beginning on or about Line 72, you will see:

$EE =& get_instance();
$this->EE->load->library('typography'); 

Replace those two lines with the following:

$this->EE =& get_instance();
$this->EE->load->library('typography'); 
$this->EE->typography->initialize(); 

Be sure you’ve set the $server_path and $cache_path variables on Lines 61 and 62. Check for accuracy. If either one of these paths is not set correctly, the plugin will not work!

Save the new, edited pi.ed_imageresizer.php file, put it in a folder named, exactly “ed_imageresizer” and upload the folder to the “third_party” folder inside expressionengine.

Check your images directory to see that there is a folder inside named “cache” (or whatever name you made reference to in the $cache_path variable) with permissions set to 777. If not, create one.

That’s it!

Hopefully, Glen S. over at Erskine will see this post and update the hosted file.

Profile
 
 
Posted: 22 June 2010 08:04 PM   [ Ignore ]   [ # 21 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1908
Joined  09-16-2004

Following these instructions I was finally able to get the plugin to show up in my plugin page.
However, upon using the tag in a template I get the following error code:

A PHP Error was encountered

Severity
Notice

Message
Undefined variableEE

Filename
ed_imageresizer/pi.ed_imageresizer.php

Line Number
75
A PHP Error was encountered

Severity
Notice

Message
Trying to get property of non-object

Filename
ed_imageresizer/pi.ed_imageresizer.php

Line Number
75

Fatal error
Call to a member function fetch_param() on a non-object in /www/pmh5232/public_html/system/expressionengine/third_party/ed_imageresizer/pi.ed_imageresizer.php on line 75 

Any ideas? I’ve used this one before several times in 1.6 without problems.
To clarify, all I have in my test template is:

{exp:ed_imageresizer image="{r_img}" maxWidth="70"

where r_img is custom field of the “file” type.

 Signature 

Peace, e-man.
stookstudio.com, websites built with care and web standards. I’m @erwinheiser

Profile
 
 
Posted: 22 June 2010 08:10 PM   [ Ignore ]   [ # 22 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  127
Joined  07-08-2009

i’ve seen those php errors when the path is set wrong in the pi.ed_imageresizer.php file. You sure you’ve got everything there set right?

 Signature 

Google+ http://plus.google.com/117141428682185567148/

Profile
 
 
Posted: 22 June 2010 08:26 PM   [ Ignore ]   [ # 23 ]  
Grad Student
Avatar
Rank
Total Posts:  76
Joined  11-27-2007

@e-man

Be sure you are working under EE2.

If so, the steps I’ve outlined above, if followed carefully, will work.

That said, I’ve seen no comment or updates from Erskine on this.

So, attached, is my fix. Working 100% for me under EE2 PB, including MSM.

Good luck!

File Attachments
pi.ed_imageresizer.php.zip  (File Size: 6KB - Downloads: 154)
Profile
 
 
Posted: 22 June 2010 08:27 PM   [ Ignore ]   [ # 24 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1908
Joined  09-16-2004

Yup, I’ve checked and double-checked, it’s not the first time I’ve used it.

 Signature 

Peace, e-man.
stookstudio.com, websites built with care and web standards. I’m @erwinheiser

Profile
 
 
Posted: 22 June 2010 08:34 PM   [ Ignore ]   [ # 25 ]  
Lab Technician
Avatar
RankRankRankRank
Total Posts:  1908
Joined  09-16-2004

Cheers, that one works just fine.

Weird, the one I got from github has version 1.0.0 (yours has 0.9.0) and has $EE->TMPL->fetch_param instead of $this->EE->TMPL->fetch_param everywhere. Clearly the one on github has coding errors.

 Signature 

Peace, e-man.
stookstudio.com, websites built with care and web standards. I’m @erwinheiser

Profile
 
 
Posted: 22 June 2010 10:42 PM   [ Ignore ]   [ # 26 ]  
Grad Student
Avatar
Rank
Total Posts:  76
Joined  11-27-2007
e-man - 23 June 2010 12:34 AM

Weird, the one I got from github has version 1.0.0 (yours has 0.9.0) and has $EE->TMPL->fetch_param instead of $this->EE->TMPL->fetch_param everywhere. Clearly the one on github has coding errors.

You are correct. It looks like the very basic syntax requirements for EE2 that were missed by the author in 0.9.0 have carried forward to 1.0.0.

My 0.9.0 mod meets syntax requirements for EE2. I can’t say what Erskine’s 1.0.0 has added to the mix. Although, based on your feedback, it seems to have persisted some errors.

Profile
 
 
Posted: 08 July 2010 09:02 PM   [ Ignore ]   [ # 27 ]  
Lab Assistant
RankRank
Total Posts:  191
Joined  01-20-2006

I have no problems with images on my own server but external files seem to get stripped of their domain.

fe: http://www.domain.com/images/uploads/thumbs/image.jpg turns into /images/uploads/thumbs/20100724-tomorrowland2010-fl.jpg and the error ‘The image does not exist.’ is shown.

The href_only parameter suggests it should work but it doesn’t. I wish there was some more feedback from Erskine about this plugin but I guess the original author leaving the company isn’t going to help us out much.

 Signature 

buro taggetig: freelance web design from Belgium.  |  Follow me on Twitter

Profile
 
 
   
2 of 2
2
 
‹‹ Pages Nested Menu      Smarty Pants for EE2 ››