The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

cPanel completely stuffed up.

Discussion in 'General Discussion' started by EmilyHF, Dec 16, 2011.

  1. EmilyHF

    EmilyHF Registered

    Joined:
    Dec 12, 2011
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Reseller Owner
    I'm not sure what this is, how to fix it or how it started. This is hard to explain, but I'll do my best.

    If I made a new folder in my public_html called "testing", added an index.php file in there and added an HTML code to put an image in.

    Example:
    HTML:
    <img src="images/image.png"/>
    If I did that, it'd think that images/image.png is in the testing folder, so testing/images/image.png. How do I fix this? Can someone PLEASE help me. Thank you.
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    675
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello :)

    The example you posted is the normal behavior. Are you intending to have the images called from another location? If so, you can enter the full path. EX:

    Code:
    /home/username/public_html/images/test.jpg
    Thank you.
     
  3. EmilyHF

    EmilyHF Registered

    Joined:
    Dec 12, 2011
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Reseller Owner
    When I enter that in my code, it thinks that it's in css/home/snap/public_html/images/test.jpg
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    675
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    It seems like there is a problem with the PHP script itself. You may want to try using a test script to see if the same behavior occurs. If the issue persists, feel free to open a support ticket so we can take a closer look:

    Submit A Ticket

    Thank you.
     
  5. EmilyHF

    EmilyHF Registered

    Joined:
    Dec 12, 2011
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Reseller Owner
    It's not the script, and I won't be able to login. I'm a reseller. Thanks.
     
  6. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    675
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    I suggest contacting your web hosting provider for assistance, as it's possible there are some root-level settings that could be causing this problem.

    Thank you.
     
  7. quietFinn

    quietFinn Well-Known Member

    Joined:
    Feb 4, 2006
    Messages:
    998
    Likes Received:
    10
    Trophy Points:
    18
    Location:
    Finland
    cPanel Access Level:
    Root Administrator
    When you load that index.php in your browser, and then use your browser's "view source" to see the source code, what does it show as the path to that image?
     
Loading...

Share This Page