Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 28
  1. #11
    Join Date
    Feb 2011
    Posts
    29
    Plugin Contributions
    0

    Default Re: Styles gone after editing config file

    Well, my "Sign In" link (i.e. c l e a r a i r a z .com/products/index.php?main_page=login), or my EZ-pages links come up with 404 errors if I change HTTP_SERVER to www.my_domain.com instead of the URL I was using to build the site. Again, there is no styling (or template I guess) either when I make this change.

    Thanks again.

  2. #12
    Join Date
    Jan 2004
    Posts
    66,450
    Plugin Contributions
    81

    Default Re: Styles gone after editing config file

    Apparently your "http://www.c l e a r a i r a z .com" site is pointing directly to the /products/ folder, since going to "http://www.c l e a r a i r a z .com/index.php?main_page=login" works just fine

    So, you need to set HTTP_SERVER to "http://www.c l e a r a i r a z .com" (without the spaces of course)
    and your DIR_WS_CATALOG to '/' instead of '/products/'
    .
    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.

  3. #13
    Join Date
    Feb 2011
    Posts
    29
    Plugin Contributions
    0

    Default Re: Styles gone after editing config file

    You're right, it is pointed there. I tried removing the pointer and leaving DIR_WS_CATALOG to '/products/' but got the host's "Site under construction" page. Then I pointed it back to the /products/ folder and set HTTP_SERVER to "http://www.c l e a r a i r a z .com" (without the spaces of course)
    and DIR_WS_CATALOG to '/' instead of '/products/'

    The URL's are working properly now but all of my images are gone. Can this be unscrambled? Remember, it worked perfectly with the temporary URL. The only change I made was to the nameservers. Haha, ONLY change.

  4. #14
    Join Date
    Jan 2004
    Posts
    66,450
    Plugin Contributions
    81

    Default Re: Styles gone after editing config file

    As of right now your configure.php still points to your startlogic URL. It's really hard to diagnose anything when you keep changing it back.

    When your images suddenly disappear, use View Source in your browser to look at the generated <base href> tag and see what URL it points to. If it still points to the old URL or if clicking any links goes to the old URL, then your changes aren't being entered properly. The <base href> and the various <a href> links shown will give clues to what's wrong.
    But if I can't see them, I can't help you.
    .
    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.

  5. #15
    Join Date
    Feb 2011
    Posts
    29
    Plugin Contributions
    0

    Default Re: Styles gone after editing config file

    I'm so sorry! I didn't realize what I was doing to hinder your help. The problem is that this site is live so I'm checking it, then changing it back to what works (other than the URL showing the problems). Please forgive the unprofessionalism but I have learned a great deal by doing this site and this was the understanding with the client who gave me this opportunity.

    I can send a text file to you with configure.php copied and pasted along with the source for HTTP_SERVER set to "http://www.c l e a r a i r a z .com" (without the spaces of course)
    and DIR_WS_CATALOG to '/' instead of '/products/'. Then another file with configure.php copied and pasted along with the source for HTTP_SERVER set to "http://name.hostname.com"
    and DIR_WS_CATALOG to '/products/'. OR I can post them here. Would that be helpful? Is there anything I should block out other than the DB name and pwd?

  6. #16
    Join Date
    Jan 2004
    Posts
    66,450
    Plugin Contributions
    81

    Default Re: Styles gone after editing config file

    Sure. Just the DB name and pwd need to be blacked out. You can PM me with a link to download the files if you don't want to post the content publicly.

    Quote Originally Posted by aself View Post
    You're right, it is pointed there. I tried removing the pointer .... Then I pointed it back ...
    What do you mean by "pointed"? Are you just referring to the DIR_WS_CATALOG setting? Or to a domain configuration (vhost etc) in your hosting account? Or are you moving the folder around on your server?
    .
    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.

  7. #17
    Join Date
    Feb 2011
    Posts
    29
    Plugin Contributions
    0

    Default Re: Styles gone after editing config file

    What do you mean by "pointed"? Are you just referring to the DIR_WS_CATALOG setting? Or to a domain configuration (vhost etc) in your hosting account? Or are you moving the folder around on your server?
    This is a domain configuration. Here's a screenshot: Name:  Screen shot 2011-05-30 at 10.10.43 AM.png
Views: 77
Size:  18.6 KB

    Also I haven't ever moved the files. I'll send links to the files since I included everything and they're big. Thanks so much.

  8. #18
    Join Date
    Jan 2004
    Posts
    66,450
    Plugin Contributions
    81

    Default Re: Styles gone after editing config file

    Okay, so if you've "pointed" the domain to the public_html/products folder (a practice I don't normally recommend), then your DIR_WS_CATALOG needs to be set to '/' and your DIR_FS_CATALOG needs to end in 'public_html/products/' (but I can't tell what the first half of it is, since that's specific to your server. The key is after the public_html it still needs /products/ because that's what you've pointed the domain to) ... it should already have that, so likely won't need to be touched.
    .
    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.

  9. #19
    Join Date
    Feb 2011
    Posts
    29
    Plugin Contributions
    0

    Default Re: Styles gone after editing config file

    I would also like to NOT "point" the domain to the public_html/products folder if we can figure this out. I checked DIR_FS_CATALOG and it ends in 'public_html/products/'.

    Here are the rest of the scenario's including image info from "View Source" where applicable:
    1. Domain “pointed” to “/products”

    define('HTTP_SERVER', 'http://michelw.startlogic.com');
    define('HTTPS_SERVER', 'http://michelw.startlogic.com');

    define('DIR_WS_CATALOG', '/products/');
    define('DIR_WS_HTTPS_CATALOG', '/products//');

    Result: www.clearairaz.com works but URL’s return to michelw.startlogic.com
    michelw.startlogic.com returns host’s “This site is under development” page

    Images
    <base href="http://michelw.startlogic.com/products/" />
    src="includes/templates/pure_blue/images/clear-air-logo-TEL.png" - works
    src="/products/includes/templates/pure_blue/images/IQAir.gif" - works



    2. Domain “pointed” to “/products”

    define('HTTP_SERVER', 'http://michelw.startlogic.com');
    define('HTTPS_SERVER', 'http://michelw.startlogic.com');

    define('DIR_WS_CATALOG', '/');
    define('DIR_WS_HTTPS_CATALOG', '// ');

    Result: www.clearairaz.com “works” but no styles/template and links on page return “Page not found”.
    michelw.startlogic.com returns host’s “This site is under development” page


    3. Domain “pointed” to “/products”

    define('HTTP_SERVER', 'http://www.clearairaz.com');
    define('HTTPS_SERVER', 'http://www.clearairaz.com');

    define('DIR_WS_CATALOG', '/');
    define('DIR_WS_HTTPS_CATALOG', '//');

    Result: www.clearairaz.com works but half of the images display alt title. Links to other pages display correct URLs.
    michelw.startlogic.com returns host’s “This site is under development” page

    Images
    <base href="http://www.clearairaz.com/" />
    src="includes/templates/pure_blue/images/clear-air-logo-TEL.png" - works
    src="/products/includes/templates/pure_blue/images/IQAir.gif" - displays alt title



    4. Domain “pointed” to “/products”

    define('HTTP_SERVER', 'http://www.clearairaz.com');
    define('HTTPS_SERVER', 'http://www.clearairaz.com');

    define('DIR_WS_CATALOG', '/products/');
    define('DIR_WS_HTTPS_CATALOG', ' /products//');

    Result: www.clearairaz.com “works” but no styles/template.
    michelw.startlogic.com returns host’s “This site is under development” page



    5. Domain “pointed” to home directory (or “/”)

    define('HTTP_SERVER', 'http://michelw.startlogic.com');
    define('HTTPS_SERVER', 'http://michelw.startlogic.com');

    define('DIR_WS_CATALOG', '/');
    define('DIR_WS_HTTPS_CATALOG', '//');

    Result: www.clearairaz.com returns host’s “This site is under development” page
    michelw.startlogic.com returns host’s “This site is under development” page


    6. Domain “pointed” to home directory (or “/”)

    define('HTTP_SERVER', 'http://www.clearairaz.com');
    define('HTTPS_SERVER', 'http://www.clearairaz.com');

    define('DIR_WS_CATALOG', '/');
    define('DIR_WS_HTTPS_CATALOG', '//');

    Result: www.clearairaz.com returns host’s “This site is under development” page
    michelw.startlogic.com returns host’s “This site is under development” page


    7. Domain “pointed” to home directory (or “/”)

    define('HTTP_SERVER', 'http://michelw.startlogic.com');
    define('HTTPS_SERVER', 'http://michelw.startlogic.com');

    define('DIR_WS_CATALOG', '/products/');
    define('DIR_WS_HTTPS_CATALOG', '/products//');

    Result: www.clearairaz.com returns host’s “This site is under development” page
    michelw.startlogic.com returns host’s “This site is under development” page



    8. Domain “pointed” to home directory (or “/”)

    define('HTTP_SERVER', 'http:// www.clearairaz.com');
    define('HTTPS_SERVER', 'http:// www.clearairaz.com');

    define('DIR_WS_CATALOG', '/products/');
    define('DIR_WS_HTTPS_CATALOG', '/products//');

    Result: www.clearairaz.com returns host’s “This site is under development” page
    michelw.startlogic.com returns host’s “This site is under development” page


    I can see some of the patterns here, but wanted to show it to you first. I can see why #3 works (mostly:)) but #8 seems ideal but doesn't work. I don't understand that one. Hopefully this provides some clues. As always, thank you!

  10. #20
    Join Date
    Jan 2004
    Posts
    66,450
    Plugin Contributions
    81

    Default Re: Styles gone after editing config file

    #8 is what I'd be recommending to use.
    It's unclear why the server is rejecting that though.
    You'd need to see the server's apache error_log to see why it's throwing a 404 (or whatever) error.
    .
    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.

 

 
Page 2 of 3 FirstFirst 123 LastLast

Similar Threads

  1. Site gone down after editing the metatags.
    By ALT3RNAT1V3 in forum General Questions
    Replies: 3
    Last Post: 28 Jul 2012, 03:18 PM
  2. Contact Us is Gone after editing
    By VGlide in forum General Questions
    Replies: 3
    Last Post: 14 Sep 2011, 07:12 PM
  3. editing config.php file
    By pqhancock in forum Installing on a Windows Server
    Replies: 1
    Last Post: 22 Apr 2011, 11:27 PM
  4. after rename file gone
    By andrewmax81 in forum General Questions
    Replies: 4
    Last Post: 16 Nov 2009, 02:29 AM
  5. Replies: 2
    Last Post: 1 Jan 2009, 10:47 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