I need help

Discussion in 'WordPress' started by Habitat, Sep 5, 2008.

  1. #1
    I'm trying to use the FRESH News wordpress theme and I'm trying to use the featured images..I enter the information into the custom field properly..but for some reason it doesnt work...the picture shoes up as a broken image..but it still send u to the page..

    i have chmod the cache folder so the image resizer will work..im just conffused now.

    [​IMG]
     
    Habitat, Sep 5, 2008 IP
  2. Jalpari

    Jalpari Notable Member

    Messages:
    5,640
    Likes Received:
    137
    Best Answers:
    0
    Trophy Points:
    260
    #2
    which theme u r using, and what is ur site url
     
    Jalpari, Sep 5, 2008 IP
  3. keithjameslock

    keithjameslock Peon

    Messages:
    416
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #3
    If your site is on GoDaddy I know the reason...PM me and I'll send you the fix...I ran into the same issue with the Fresh News Theme
     
    keithjameslock, Sep 5, 2008 IP
  4. Habitat

    Habitat Peon

    Messages:
    285
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #4
    I'm not hosted on godaddy but the domain is with godaddy
     
    Habitat, Sep 5, 2008 IP
  5. keithjameslock

    keithjameslock Peon

    Messages:
    416
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #5
    I PM'ed you but I'll drop the instructions here too...

    well the fix I have isn't necessarily specific to GoDaddy...it just so happens that it is common for GoDaddy users to experience it....

    I don't know which hosts it affects (besides GoDaddy) and I was told it doesn't affect HostGator (but I don't know for sure)

    The issue is (for me) that the thumb.php script couldn't locate the image because the wrong path was being used so here's how I fixed it:

    1) Open thumb.php from the theme editor in WP
    2) Locate the line $doc_root = $_SERVER['DOCUMENT_ROOT'];

    3) Change it to:
    // $doc_root = $_SERVER['DOCUMENT_ROOT'];
    $doc_root = $_SERVER['SUBDOMAIN_DOCUMENT_ROOT'];

    Some servers use SUBDOMAIN_DOCUMENT_ROOT rather than just DOCUMENT_ROOT

    Hope that helps...either way, it seems like a path issue...best of luck!
     
    keithjameslock, Sep 5, 2008 IP
  6. Dodger

    Dodger Peon

    Messages:
    1,494
    Likes Received:
    60
    Best Answers:
    0
    Trophy Points:
    0
    #6
    $_server['subdomain_document_root'] is a variable that usually appears in a shared hosting environment.

    In the case of GoDaddy, there is a "main" domain attributed to the account. That will be shown in DOCUMENT_ROOT.

    You can assign other domains to this account, which are in sub-directories. While the root of the domain is pointed at the sub-directory, it is not a true root for the account.

    BTW, _ENV["SUBDOMAIN_DOCUMENT_ROOT"] should return the same string.
     
    Dodger, Sep 5, 2008 IP
  7. XXXWebGURUXXX

    XXXWebGURUXXX Banned

    Messages:
    197
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    da theme is gud
     
    XXXWebGURUXXX, Sep 6, 2008 IP