Results 1 to 3 of 3
  1. #1
    Join Date
    Mar 2007
    Posts
    1
    Plugin Contributions
    0

    Default Zen Cart will work with Xitami Webserver!

    Zen Cart works with Xitami. However the install portion of the script fails with Xitami for the following reason:
    (This is from PHP help file under 'header'.)

    Note: HTTP/1.1 requires an absolute URI as argument to Location: including the scheme, hostname and absolute path, but some clients accept relative URIs. You can usually use $_SERVER['HTTP_HOST'], $_SERVER['PHP_SELF'] and dirname() to make an absolute URI from a relative one yourself:

    <?php
    /* Redirect to a different page in the current directory that was requested */
    $host = $_SERVER['HTTP_HOST'];
    $uri = rtrim(dirname($_SERVER['PHP_SELF']), '/\\');
    $extra = 'mypage.php';
    header("Location: http://$host$uri/$extra");
    exit;
    ?>

    *************************
    Basicaly Xitami is failing because the header_php.php files under \zc_install\includes\modules\pages\ all use relative paths vice absolute when using PHP's header command.
    *************************

    My fix is:

    Using a grep program, replace all files containing
    "header('location: "
    (trailing space is important!)

    in the directory
    \zc_install\includes\modules\pages\

    with

    $host = $_SERVER['HTTP_HOST'];$uri = rtrim(dirname($_SERVER['PHP_SELF']), '/\\');header("Location: http://$host$uri/

    Then you must change the closing ' character near the end of each line with a " character to match the opening character!

    Maybe the Zen Cart team could make this a part of there next version?

    http://www.emogic.com

  2. #2
    Join Date
    Nov 2007
    Posts
    1
    Plugin Contributions
    0

    Default Re: Zen Cart will work with Xitami Webserver!

    Well, I would like to try the Zen Cart, however, I purchased something off of, www.emogic.com and I was ripped off. If Zen Cart has anything to do with emogic.com or the Scriptman. I will just have to stay clear.

  3. #3
    Join Date
    Jun 2003
    Posts
    33,715
    Plugin Contributions
    0

    Default Re: Zen Cart will work with Xitami Webserver!

    Many people use the free program and we, the Zen Cart developers have no interest in, or association with the shops using the software. I am sorry you have had a problem.
    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.

 

 

Similar Threads

  1. Will Zen-Cart work with the June 17, 2010 changes to the USPS API?
    By Danielle in forum Built-in Shipping and Payment Modules
    Replies: 8
    Last Post: 26 Sep 2010, 09:49 PM
  2. will Lightbox Gallery 1.1 work with zen cart v1.3.9d?
    By js09 in forum All Other Contributions/Addons
    Replies: 2
    Last Post: 17 Jun 2010, 01:16 AM
  3. Will an osCommerce theme work with Zen Cart?
    By z3n in forum General Questions
    Replies: 5
    Last Post: 10 Feb 2010, 06:32 PM
  4. Will Zen Cart work with standard paypal account?
    By eseesnad in forum General Questions
    Replies: 11
    Last Post: 17 Mar 2009, 10:30 PM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR