WordPress.org

Ready to get started?Download WordPress

Forums

Connections Business Directory
[resolved] Images Not Showing After Update (13 posts)

  1. darrin365
    Member
    Posted 1 year ago #

    Just upgraded to Connections 0.7.8 (from a few versions back). The images worked before the update, but now don't. I simply get the spinning wheel.

    I am not getting any javascript errors, just "Failed to load resource: the server responded with a status of 400 (Bad Request)". If I pull the image URL out of the image link, it works fine. But the images aren't working when run through TimThumb.

    I've tried several suggestions I saw on your forum, but none have fixed this.

    Suggestions?

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

  2. shazahm1
    Member
    Plugin Author

    Posted 1 year ago #

    @ darrin365

    can you please share a link to your directory?

  3. darrin365
    Member
    Posted 1 year ago #

  4. shazahm1
    Member
    Plugin Author

    Posted 1 year ago #

    @ darrin365

    Can you make sure this folder exists:
    ../wp-content/plugins/connections/cache

    Verify that permissions are: 755

    If they are, try 767.

  5. darrin365
    Member
    Posted 1 year ago #

    @Shazahm1, that folder does exist and the permissions are already 767. Inside of that is index.html with 767 permissions and index.php with 644 permissions.

  6. darrin365
    Member
    Posted 1 year ago #

    @Shazahm1, any further suggestions?

  7. darrin365
    Member
    Posted 1 year ago #

    This does appear to be an issue with the cache folder. I tried uploading a new photo to one of the listings and it said it couldn't write to the cache directory. However, I have it set to 767. (I've also tried 755 and 777 with no luck.)

  8. shazahm1
    Member
    Plugin Author

    Posted 1 year ago #

    @ darrin365

    Can you try something?

    Open the connections.php file and go to line 604/605, which should be:

    // Create a .htaccess file in the timthumb folder to allow it to be called directly.
    cnFileSystem::permitTimThumb( CN_PATH . 'includes/timthumb' );

    And change it to this:

    // Create a .htaccess file in the timthumb folder to allow it to be called directly.
    cnFileSystem::permitTimThumb( CN_PATH . 'includes/libraries/timthumb' );

    Save the file, deactivate and reactivate Connections.

    I moved the TimThumb fold and forgot to update an htaccess file path that get created dynamically. This could be the reason it worked before and not now.

  9. darrin365
    Member
    Posted 1 year ago #

    Followed the directions, but still no luck. When I refresh the page, and go to Inspect Element->Console I still get the 400 Bad Request error. When I click on the image link next to that, under Resources it shows timthumb.php with a "1" in a red circle, like the resource is missing. If I click on that timthumb.php link, it takes me to an error page that says:
    A TimThumb error has occured

    The following error(s) occured:
    Could not create the file cache directory.

    Query String : src=http://www.domain.com/wp-content/connection_images/imagename_original.jpg&h=auto&w=auto&zc=1
    TimThumb version : 2.8.11

    Not sure if that helps or not. But it seems like it's just not connecting with that cache folder under the Connections folder.

    BTW, I've taken the image URL from the string and checked it and it shows the proper image, so the photo file is there.

  10. shazahm1
    Member
    Plugin Author

    Posted 1 year ago #

    @ darrin365

    I've located a couple other path issues related to me moving the file for timthumb. I'll be pushing out a bug fix release that addresses a few small items including this. I'm hopeful it'll have you back in working order. Please keep an eye out for 0.7.8.1.

  11. darrin365
    Member
    Posted 1 year ago #

    @shazahm1,

    Would it do me any good to try to replace the files with the ones from the last version, or would that make things worse?

  12. shazahm1
    Member
    Plugin Author

    Posted 1 year ago #

    @ darrin365

    Sure, rolling back to the previous version is safe.

  13. shazahm1
    Member
    Plugin Author

    Posted 1 year ago #

    @ darrin365

    I released 0.7.8.1 which should fix the issue for you. Please let me know. going to mark this resolved for now.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic