Page 1 of 7 123 ... LastLast
Results 1 to 10 of 64

Thread: Thumbnail Images Not Showing Up? Solution Here (includes MU)

  1. #1
    Founder dcowgill's Avatar
    Join Date
    Mar 2009
    Location
    San Francisco, CA
    Posts
    1,939
    Thanks
    66
    Thanked 135 Times in 99 Posts

    Question Thumbnail Images Not Showing Up? Solution Here (includes MU)

    Are you able to see your images fine once you click on them but the thumbnails aren't working? If so, read on. This appears to be a common problem for some yet quite easy to fix in most cases.

    If you are a WPMU user, read this post instead.

    The reason this is most likely occurring has to do with the image thumbnail resizer path not being mapped correctly on your site. You can easily fix this by going into wp-content/themes/classipress/includes/ and edit img_resize.php.

    Comment out the following (line 7) in img_resize.php like so:
    Code:
    // $image_url = "../../../../wp-content/uploads/classipress/".$_GET["url"];
    then below it, add the following block of code (make sure to scroll down and copy everything):

    Code:
    $paths = array(
    		"../..",
    		"../../..",
    		"../../../..",
    		"../../../../..",
    		"../../../../../..",
    		"../../../../../../.."
    	);
    	
    foreach($paths as $path) {
    	$cpath = $path . '/wp-content/uploads/classipress/' . $_GET["url"];
    	if(@file_exists($cpath)) {
    		$image_url = $cpath;
    	}
    }
    Save and then try loading up your page again. It should now work.

    If not, chances are you didn't setup the image upload folder correctly. Make sure your folder structure looks exactly like this in (all in lowercase) /wp-content/uploads/classipress/


    Thumbnails still not showing up?

    Let's take a look at another thing. Navigate to your ClassiPress site homepage where the thumbnail is not showing up. Either using Firebug (a firefox plugin) or by viewing the page source code (right-click -> view page source or view source), look for code similar to this (yours will be different b/c your url is unique):

    Code:
    <div class="main_page_img" style="background: #FFF url(http://www.mysite.com/wp-content/the...post-13362.png) center no-repeat"></div>
    The important part here is the url
    Code:
    http://www.mysite.com/wp-content/themes/classipress/includes/img_resize.php?width=50&height=50&url=testing-this-post-13362.png
    Copy and paste this into another browser tab or window.

    -Does your image show up correctly or is the page blank? (It's probably blank which means something is still wrong)
    -Does the path correct (http://www.mysite.com/wp-content/themes ... resize.php" onclick="window.open(this.href);return false;" onclick="window.open(this.href);return false;" onclick="window.open(this.href);return false;" onclick="window.open(this.href);return false;"?
    -Is there no image name after &url= at the end of the url?

    If there's no image name after the &url= then it has to do with the "images" custom field on that specific ad. Go into WordPress and edit this specific ad. Scroll down to the custom field section and make sure you actually have an "images" custom field and it contains image name(s) to actual image(s).
    [attachment=0:3mjowguo]cp_image_cust_field2.gif[/attachment:3mjowguo]
    If it looks similar to above then (depending on how many images you've uploaded on this ad) and it's still not working, go to your /wp-content/uploads/classipress folder and make sure those images actually exist. Are the names exactly the same?

    If you have nothing in the images custom field then it means your images aren't getting uploaded at all. Go back and re-read the install guide and make sure you've created the /classipress/ folder in the uploads directory and that the permissions have been set correctly.

    Chances are by this point you've figured it out. If you still have not, please post your questions or comments below and make sure to include a link to your site so someone can help troubleshoot.

    Would also love to hear from people who got it working and which fix ended up doing it. Sharing your solution often helps others fix theirs as well.

  2. #2
    Junior Member vincew's Avatar
    Join Date
    Aug 2009
    Posts
    22
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Thumbnail Images Not Showing Up? Solution is Here

    Worked great!
    Thanks
    Vince

  3. #3
    Junior Member zitterene's Avatar
    Join Date
    Dec 2009
    Location
    Netherlands
    Posts
    22
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Thumbnail Images Not Showing Up? Solution is Here

    Stil not working for me.

    When I look at the source code of the mainpage there is this line:

    <div class="main_page_img" style="background: #FFF url(http://www.towercrane4sale.com/wp-conte ... ht=50&url=) center no-repeat"></div></span>

    As you see there is nothing after the url.
    I looked at the image and that is in the right folder (the upload so far is ok)

    Can somebody tell me how to fiks this.

    My site is www.towercrane4sale.com

  4. #4
    Founder dcowgill's Avatar
    Join Date
    Mar 2009
    Location
    San Francisco, CA
    Posts
    1,939
    Thanks
    66
    Thanked 135 Times in 99 Posts

    Re: Thumbnail Images Not Showing Up? Solution is Here

    When you go into your ad via the wordpress backend, scroll down to the custom field section and make sure you actually have an "images" custom field and it contains image name(s) to actual image(s). Does it look like the picture I posted above or is that field blank?

    Since your &url= has nothing after it the ad can't find the image path to use.

    Quote Originally Posted by zitterene
    Stil not working for me.

    When I look at the source code of the mainpage there is this line:

    <div class="main_page_img" style="background: #FFF url(http://www.towercrane4sale.com/wp-conte ... ht=50&url=" onclick="window.open(this.href);return false center no-repeat"></div></span>

    As you see there is nothing after the url.
    I looked at the image and that is in the right folder (the upload so far is ok)

    Can somebody tell me how to fiks this.

    My site is http://www.towercrane4sale.com" onclick="window.open(this.href);return false;

  5. #5
    Junior Member zitterene's Avatar
    Join Date
    Dec 2009
    Location
    Netherlands
    Posts
    22
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Thumbnail Images Not Showing Up? Solution is Here

    It look like this:

    http://www.towercrane4sale.com/wp-conte ... 697960.gif,

    So he see the image

    Please inform me, thanks

  6. #6
    Founder dcowgill's Avatar
    Join Date
    Mar 2009
    Location
    San Francisco, CA
    Posts
    1,939
    Thanks
    66
    Thanked 135 Times in 99 Posts

    Re: Thumbnail Images Not Showing Up? Solution is Here

    It appears at least one of the core classipress files is missing from your site.

    This link should give you a blank white page but it's not found. Make sure you've copied all the files up to your server and then try it again. Did you read the entire install document and follow all the steps?

    http://www.towercrane4sale.com/wp-co...img_resize.php

  7. #7
    Rookie
    Not a Verified Customer
    jmeredith's Avatar
    Join Date
    Dec 2009
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Thumbnail Images Not Showing Up? Solution is Here

    This still doesn't work.

    I've just reinstalled the entire theme, following the instructions through to the letter.

    The url opens a blank page, the path is correct, the image is there, what else can I do? I've spent too many hours trying to fix this...

    Please see here:
    www.londonprivateproperty.com

  8. #8
    Founder dcowgill's Avatar
    Join Date
    Mar 2009
    Location
    San Francisco, CA
    Posts
    1,939
    Thanks
    66
    Thanked 135 Times in 99 Posts

    Re: Thumbnail Images Not Showing Up? Solution is Here

    Ok, now it's looking good since all the files appear to be there. If you view the source code on the homepage, the thumbnail path is correct and the &url= contains the image file. It's not finding the correct path so if you run through the first message the top of this post, it should work. Edit img_resize.php and make the changes to your path.

  9. #9
    Amateur
    Not a Verified Customer
    basscleff's Avatar
    Join Date
    Dec 2009
    Posts
    19
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Thumbnail Images Not Showing Up? Solution is Here

    ditto, still cant get it working.
    tried the updated file,
    editing the paths
    adding the absolute path in wordpress for uploads

    any other help is appreciated

  10. #10
    Founder dcowgill's Avatar
    Join Date
    Mar 2009
    Location
    San Francisco, CA
    Posts
    1,939
    Thanks
    66
    Thanked 135 Times in 99 Posts

    Re: Thumbnail Images Not Showing Up? Solution is Here

    Download the latest version 2.9.3 and overwrite your existing classipress theme folder. Make sure you ftp it using "file type = auto". You can use the same e-junkie email download link you already have.

    Include a link to your site so I can take a look if it's still not working.

Page 1 of 7 123 ... LastLast

Thread Information

Users Browsing this Thread

There are currently 2 users browsing this thread. (0 members and 2 guests)