We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Plugin: timthumb

Development and Programming

heaversm's avatar
heaversm
197 posts
16 years ago
heaversm's avatar heaversm

Hi - I’m having a weird issue. If you go to:

http://nationalcapacd.org/index.php/site/press_room/

under the heading “newsletters” you will see what is supposed to be an image, but the path is invalid. If you attempt to view the image, the browser references a url of:

&h=100&w=90&zc=1

but if you click through to the article, the photo renders properly, and the url for the photo is generated as:

&w=250&h=250&zc=1

On both ee templates, the code used to generate this code is:

<a href="#">_/inc/timthumb/timthumb.php?src={press_photo}&h=100&w=90&zc=1_</a>

where {press_photo} contains something like this:

https://ellislab.com/asset/images/team-photo/train.JPG

The settings for file upload directory 1 are:

server path to upload directory: /home/ncapacd/public_html/images/uploads/ url of upload directory: http://nationalcapacd.org/images/uploads/

I have tried switching the upload directory to a relative path, omitting the “http://nationalcapacd.org”, reuploading the photo with a new name, clearing EE’s cache, clearing the cache files out of timthumb (the addon used to resize the uploaded image), all to no avail. Anybody have any ideas? Why would the same code generate two different results?

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.