WordPress.org

Ready to get started?Download WordPress

Forums

Connections Business Directory
[resolved] [Plugin: Connections] TimThumb error has occured (31 posts)

  1. moose123
    Member
    Posted 2 years ago #

    In my Connections > Manage admin, thumbnails are not showing up. What I'm seeing is the spinning wheel and a small broken image icon. When I right-click on the thumbnail, grab the URL and paste it into a browser, I get this error:

    A TimThumb error has occured

    The following error(s) occured:
    Could not find the internal image you specified.

    Query String : src=http://mysite.com/site1/wp-content/connection_images/pam_b_original.jpg&h=54&w=80&zc=2
    TimThumb version : 2.8.10

    In Connections, I've tried setting timthumb.php to 757, but no luck.

    Folder permissions look good:

    Image Path Exists: Yes
    Image Path Writeable: Yes
    Template Path Exists: Yes
    Template Path Writeable: Yes
    Cache Path Exists: Yes
    Cache Path Writeable: Yes

    Thanks for any suggestions.

    http://wordpress.org/extend/plugins/connections/

  2. YEUStudent
    Member
    Posted 2 years ago #

    I also get the spinning wheel as well. I tried modding folder permissions, and enabling multi-site code around line 200 in connections.php, but nothing worked, so I just decided to put display:none; in the cn-image code in cn-admin.css. A hidden image is better than a broken one.

  3. shazahm1
    Member
    Plugin Author

    Posted 2 years ago #

    @moose123

    What is the output if you use URL?

    http://mysite.com/site1/wp-content/connection_images/pam_b_original.jpg

    Do you see the image?

  4. shazahm1
    Member
    Plugin Author

    Posted 2 years ago #

    Marking resolved.

  5. daxtrajero
    Member
    Posted 2 years ago #

    care to elaborate ?

  6. moose123
    Member
    Posted 2 years ago #

    Steven,

    Sorry for the lengthy delay in getting back to you. Yes, if I output:

    http://mysite.com/site1/wp-content/connection_images/pam_b_original.jpg

    I do see the image.

    But, still not seeing the thumbnail or the image on the page.

    Thanks.

  7. shazahm1
    Member
    Plugin Author

    Posted 2 years ago #

    @daxtrajero

    I marked the issue as resolved because it was an old support request... not because it was it was resolved for the op.

  8. shazahm1
    Member
    Plugin Author

    Posted 2 years ago #

    Marking not resolved. New info provided.

  9. shazahm1
    Member
    Plugin Author

    Posted 2 years ago #

    @moose123

    The primary reasons that images will not display are as follows:

    98% of the time it is an error in the javascript in the theme or another plugin which is causing javascript from continuing to execute. To see if this might be the issue, load the site up in Chrome, hit the F12 key and then click the Console tab. All javascript errors will be shown there.

    1% and greater of the time, it is a permissions error, but I believe that has been ruled out in this case.

    The remaining less than one percent of the time is still permissions error that seem to be unresolvable. However, I think the issue is because TimThumb can not determine the doc root. I think this is because of the way the IIS server is configured. I have not seen this issue on LAMP stack based servers. Since I will be moving away from TimThumb I'm not actively seeking the root cause and resolution.

  10. moose123
    Member
    Posted 2 years ago #

    Steven,

    My JS console is telling me - on each thumbnail on the admin side:

    Failed to load resource: the server responded with a status of 400 (Bad Request)

    Console showing nothing for the missing images on the actual page.

    But, clearly a server issue.

    Thanks for helping.

  11. shazahm1
    Member
    Plugin Author

    Posted 2 years ago #

    Sounds like a permissions issue.

  12. moose123
    Member
    Posted 2 years ago #

    Just want to make sure I've got the correct perms on plugin's timthumb stuff. Does this look right?

    drwxr-xr-x 2 wordpress wordpress   4096 Jun  7 09:38 timthumb

    ...and...

    -rw-r--r-- 1 wordpress wordpress   251 Jun  7 09:38 timthumb-config.php
    -rwxr-xr-x 1 wordpress wordpress 50516 Jun  7 09:38 timthumb.php

    Thanks again.

  13. anandbala
    Member
    Posted 1 year ago #

    A TimThumb error has occured

    The following error(s) occured:
    No image specified

    Query String : src=/&h=560&w=560&zc=1&q=90&a=t
    TimThumb version : 2.8.5

    i Got this error, only the image is not showing .

  14. shazahm1
    Member
    Plugin Author

    Posted 1 year ago #

    @anandbala

    Can you please share a link to your directory?

  15. brancht
    Member
    Posted 1 year ago #

    Same issue here. After I did the TimThimb security updates, Connections caused WP to crash. I removed it from the plugin directory and all is well. It's a bug caused by TimThumb updates.

  16. shazahm1
    Member
    Plugin Author

    Posted 1 year ago #

    @brancht

    Connections already and has always shipped with the secure version of TimThumb. Even more, the attack vector used in the attack well over a year ago is disable in the version that ships with Connections. Please do not use scripts that "updates" TimThumb on Connections.

  17. brancht
    Member
    Posted 1 year ago #

    @shazahm1

    It's not that simple. My server host required me to remove the script because of the following detected by the TimThumb Vulnerability Scanner:

    Error 1:

    Vulnerable 0 connections.php

    /wordpress/wp-content/plugins/connections/connections.php

    Error 2:

    Outdated 2.8.10 timthumb.php

    /wordpress/wp-content/plugins/connections/includes/timthumb/timthumb.php

    When I ran the TimThumb Vulnerability Scanner Fix, Connections causes WP to crash.

    Are you saying this can safely be ignored?

  18. shazahm1
    Member
    Plugin Author

    Posted 1 year ago #

    @brancht

    Yes, it safe to ignore because it's not completely accurate.

    Error 1:

    connections.php is not timthumb so it is being incorrectly identified. My guess is because the name of the timthumb exists as a comment in the code giving credit to the code author. So TimThumb Vulnerability Scanner incorrectly overwrites the connections.php file, which is bad. It not Connections causing WP to crash it is TimThumb Vulnerability Scanner Fix overwriting an incorrect file which in turn is causing WP to crash.

    Error 2:

    Is correct. The latest version is 2.8.11 which released on Dec 4th 2012. No, security related changes where made between 2.8.10 and 2.8.11. It was just a minor change in PNG transparency handling. The next version of Connections will include the latest.

    In short, yes, ignore, safely. Hope that helps.

  19. brancht
    Member
    Posted 1 year ago #

    @shazahm1

    I edited connections.php to remove the comment relating to TimThumb--that makes the TimThumb Scanner happy. You may want to find a way around that in a future release.

    Will Connections run using the most current TimThumb (Version 2.8.11)? If so I may upgrade it.

    Thanks.

    Tom

  20. shazahm1
    Member
    Plugin Author

    Posted 1 year ago #

    @brancht

    Yes, you can safe upgrade TimThumb yourself. Grab the code here:
    http://code.google.com/p/timthumb/

    Where is says grab the code, right click and do a save as.

    You can then overwrite the version here:
    ../wp-content/plugins/connections/includes/timthumb/timthumb.php

    Just don't delete the timthumb-config.php file.

  21. brancht
    Member
    Posted 1 year ago #

    @shazahm1

    Thanks.

    Tom

  22. macbroadcast
    Member
    Posted 1 year ago #

    hello experts,

    After i switched my wordpress 3.51 to "https" all thumbnails seems broken. My wordpress use a theme that has its own "TimThumb"

    https://let.de/index.php/blog/ < right site when i click on the image i got this error"

    A TimThumb error has occured

    The following error(s) occured:
    Could not find the internal image you specified.

    Query String : src=//let.de/wp-content/uploads/2012/03/acessgrid.jpg&w=60&h=60&zc=1&q=100
    TimThumb version : 2.8.11

    "https://let.de/wp-content/themes/u-design/scripts/timthumb.php?src=//let.de/wp-content/uploads/2012/03/acessgrid.jpg&w=60&h=60&zc=1&q=100"

    I upgraded to the latest Version of "TimThumb"

    Thanks

  23. jackazoid
    Member
    Posted 1 year ago #

    chmod timthumb folder to 777

    in my case
    wp-content/themes/mio/sp-framework/timthumb

    Thats it.

  24. ocwebmonkey
    Member
    Posted 1 year ago #

    Having the same issue, WP 3.5.1, new install of Connections Pro and Tile Plus template:

    ยท The image being referenced comes up fine on its' own.
    _____________________________________________________

    A TimThumb error has occured

    The following error(s) occured:
    Could not find the internal image you specified.

    Query String : src=http://sawdustartfestivaltemp.com.previewdns.com/wp-content/connection_images/linda_ames_bracelet_2001_original.jpg&h=130&w=100&zc=2
    TimThumb version : 2.8.11

  25. ocwebmonkey
    Member
    Posted 1 year ago #

    Also, I made sure timthumb folder and its' content are set to 777. Still same error above.

  26. shazahm1
    Member
    Plugin Author

    Posted 1 year ago #

  27. ocwebmonkey
    Member
    Posted 1 year ago #

    Okay based on that, I checked the value of $src being used at line 849 of timthumb.php. It looks like godaddy's previewdns feature is being mauled by timthumb:

    $src has a value of ".previewdns.com/wp-content/connection_images/linda_ames_bracelet_2001_original.jpg"

    instead it should be "http://sawdustartfestivaltemp.com.previewdns.com/wp-content/connection_images/linda_ames_bracelet_2001_original.jpg"

    HOWEVER, when I force it to add the missing part of the src it still gets the same error:

    protected function getLocalImagePath($src){
    // added this line:
    $src = "http://sawdustartfestivaltemp.com".$src;

  28. shazahm1
    Member
    Plugin Author

    Posted 1 year ago #

    Maybe the solution is simpler. Likely the issue will resolve itself when you push the site to be live.

  29. ocwebmonkey
    Member
    Posted 1 year ago #

    Likely may not be good enough, this is a high visibility site that can't go live if it might be broken! Is there any kind of hack I can do to make this work?

  30. shazahm1
    Member
    Plugin Author

    Posted 1 year ago #

    @ ocwebmonkey

    Ok, plan B then.

    Use this shortcode:
    [connections image_width='' image_height='']

    Change the Medium Image size under the Image settings tab on the Connections : Settings admin page to 80px width and 120px height.

    Any images that you have previously uploaded, reupload so the new image settings will be applied.

    This will force the template to use the cached image rather than trying to create it dynamically.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.