Results 1 to 7 of 7

Hybrid View

  1. #1
    Join Date
    Mar 2009
    Posts
    57
    Plugin Contributions
    0

    database error No CSS or images for remote connections

    I've searched the FAQs and the forums (and google, and xampp forums...) and haven't found an answer. That being said, I'm quite sure someone has come across this before.
    I have XAMPP installed on a windowsXP box and I have a few different folders, one Drupal, one Zencart...
    Everything works fine browsing from localhost, but when looking from remote, over the LAN or WAN, I can't see any images or scripting. And the annoying thing is, this is ONLY FOR ZEN CART. My Drupal folder works fine, my XAMPP folder works fine.
    I've tried playing with or removing the .htaccess files, I've tried everything and I just can't get this to work.
    There must be an easy answer, but I can't find it.

  2. #2
    Join Date
    Jun 2003
    Posts
    33,720
    Plugin Contributions
    0

    Default Re: No CSS or images for remote connections

    You aren't trying to run a live site from your local computer are you? That is NOT recommended.
    Please do not PM for support issues: a private solution doesn't benefit the community.

    Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

  3. #3
    Join Date
    Mar 2009
    Posts
    57
    Plugin Contributions
    0

    Default Re: No CSS or images for remote connections

    not recommended? heh, I'm a Linux guy. I'm terrified of running this on a windows box.
    I'm at a client's shop setting this up, and they want to see it before it goes live, so I'm stuck running this off a local computer in his office. There's a robots.txt blocking spiders, and the only WAN contact is through an dyndns.com host forwarding so I can work on it from home.
    The only other option is running it from my linux laptop, and that aint happening.

    Thanks for your concern, tho

    so, back to the question..

  4. #4
    Join Date
    Mar 2009
    Posts
    57
    Plugin Contributions
    0

    Default Re: No CSS or images for remote connections *Solved*

    OK, I figured out what the problem was. On installation, in the step where you put the location of the site, I used 'localhost' instead of the domain where it could be found '***.dyndns.org'. This caused the pages to be served properly, but the references to images or css files was confused by the 'localhost' setting, unless I was on the computer where it was hosted.
    I solved it by installing another zencart and comparing.

    So, the lesson here is, if you're going to have it accessible to anyone else, don't reference it as 'localhost' during installation.

    And finally, if you did make a site locally and now would like to make it accessible to the world after it was made, how would you fix this? There's prob a php.ini file somewhere that has this info. [looks] yep, it's in /includes/configure.php

    hopefully my dumbness will save someone else some time.

  5. #5
    Join Date
    Apr 2009
    Posts
    9
    Plugin Contributions
    0

    Default Re: No CSS or images for remote connections *Solved*

    Quote Originally Posted by Luxifer View Post
    ... will save someone else some time.
    Thanks, Luxifer. It definitely did.
    I'm just wondering why they set the default value during installation to localhost. Doesn't make a lot sense.

    Anyway, changing HTTP_SERVER in ...\includes\configure.php solved the problem. There is another occurrence of localhost next to DB_SERVER. Do I need to change this line, too?

  6. #6
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: No CSS or images for remote connections *Solved*

    Quote Originally Posted by burt View Post
    I'm just wondering why they set the default value during installation to localhost. Doesn't make a lot sense.
    The default was taken from the URL you entered into your browser to begin installation. If that's not what you wanted, you could easily have changed it during installation ... or, as you've seen above, change it afterwards.
    Quote Originally Posted by burt View Post
    There is another occurrence of localhost next to DB_SERVER. Do I need to change this line, too?
    Normally, no. Since the database normally *does* exist on "localhost", it's best to leave it at that address unless you have specific reason to point it elsewhere.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

 

 

Similar Threads

  1. v151 use remote images
    By rehopper in forum Basic Configuration
    Replies: 1
    Last Post: 24 Jan 2016, 08:21 PM
  2. Finally remote connections work, graphics gone remotely
    By dino_russ in forum Installing on a Mac Server
    Replies: 1
    Last Post: 15 Nov 2006, 05:44 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg