Page 2 of 5 FirstFirst 1234 ... LastLast
Results 11 to 20 of 41
  1. #11
    Join Date
    Feb 2012
    Posts
    78
    Plugin Contributions
    0

    Default Re: redirect not working and server says it is zencart problem

    i added jpg to the htaccess file and still no go
    <FilesMatch ".*\.(zip|ZIP|gzip|pdf|PDF|mp3|MP3|swf|SWF|wma|WMA|wmv|WMV|wav|epub|jpg|JPG) $">

    i removed the spaces to all the free wallpaper files and created a zip file for each as well. there is now an option to download zip or the original as a jpg. the files are in the download folder without a subdirectory. ie (root/downloads/XXXXX.zip and root/downloads/XXXXX.jpg) issue still happens.

    as a test, i renamed pub/htaccess to htaccess.old and tried and still problem. i put the htacess back in place

    not sure where to go to get these to work again

  2. #12
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,366
    Plugin Contributions
    87

    Default Re: redirect not working and server says it is zencart problem

    The userid and password you gave in your first post don't work ...

    Good job removing the spaces in the filenames, those always mess things up. Did you did remember to change the filenames associated with the products in your database, too?

    When you say that the files are in root/downloads, are your store's other files stored in root (e.g. is your configure.php file stored as root/includes/configure.php)?
    Last edited by lat9; 12 May 2012 at 12:28 PM.

  3. #13
    Join Date
    Feb 2012
    Posts
    78
    Plugin Contributions
    0

    Default Re: redirect not working and server says it is zencart problem

    Quote Originally Posted by lat9 View Post
    The userid and password you gave in your first post don't work ...

    Good job removing the spaces in the filenames, those always mess things up. Did you did remember to change the filenames associated with the products in your database, too?

    When you say that the files are in root/downloads, are your store's other files stored in root (e.g. is your configure.php file stored as root/includes/configure.php)?
    someone must have changed the password. it is again Password1

    the attributes db also reflect the changes to the file and both the jpg and the zip have a green circle indicating they are found.

    this is correct root/includes/configure.php

  4. #14
    Join Date
    Jan 2007
    Location
    Australia
    Posts
    6,167
    Plugin Contributions
    7

    Default Re: redirect not working and server says it is zencart problem

    I guess I really did offend you huh?

    Oh well. NMP

    Cheers
    Rod

  5. #15
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,366
    Plugin Contributions
    87

    Default Re: redirect not working and server says it is zencart problem

    What are your settings in your admin's Configuration->Attribute Settings->Download by Redirect and Download by streaming fields?

  6. #16
    Join Date
    Feb 2012
    Posts
    78
    Plugin Contributions
    0

    Default Re: redirect not working and server says it is zencart problem

    Quote Originally Posted by RodG View Post
    I guess I really did offend you huh?

    Oh well. NMP



    Cheers
    Rod
    nope, I just forgot I already posted this issue. I am not offended, I am here to learn and get this working with support of people who know more.

  7. #17
    Join Date
    Feb 2012
    Posts
    78
    Plugin Contributions
    0

    Default Re: redirect not working and server says it is zencart problem

    Quote Originally Posted by lat9 View Post
    What are your settings in your admin's Configuration->Attribute Settings->Download by Redirect and Download by streaming fields?


    here is the complete page

    Enable Downloads true
    Download by Redirect true Info
    Download by streaming false Info
    Download Expiration (Number of Days) 7 Info
    Number of Downloads Allowed - Per Product 5 Info
    Downloads Controller Update Status Value 4 Info
    Downloads Controller Order Status Value >= lower value 2 Info
    Downloads Controller Order Status Value <= upper value 4 Info
    Enable Price Factor true Info
    Enable Qty Price Discount true Info
    Enable Attribute Images true Info
    Enable Text Pricing by word or letter true Info
    Text Pricing - Spaces are Free 1 Info
    Read Only option type - Ignore for Add to Cart 1

    im going to test without redirect and see if that works. without redirect, it works fine. pub directory permissions is 777 with recursive to sub directories too

  8. #18
    Join Date
    Feb 2012
    Posts
    78
    Plugin Contributions
    0

    Default Re: redirect not working and server says it is zencart problem

    my server is saying the link syntax is like
    2009_04_25_IMG_7615_ED.jpg -> /home/www/michaelhulak/download/2009_04_25_IMG_7615_ED.jpg

    and if the link syntax was like
    2009_04_25_IMG_7615_ED.jpg -> ../../download/2009_04_25_IMG_7615_ED.jpg
    it will work

    the file that makes the redirect is /includes/modules/pages/download/header_php.php
    however, i am not sure how to test this suggestion

  9. #19
    Join Date
    Feb 2012
    Posts
    78
    Plugin Contributions
    0

    Default Re: redirect not working and host says its not their problem

    I was looking into where the redirect was created so I entered some ambiguous text in
    /includes/modules/pages/download/header_php.php

    the download link says it is an MP3 format for the ZIP file for some reason

    and it is working now. I don't think this is how it should be left. I added AA to the path. removing everything in the path give a 404. Previously the value was just a slash /


    // Redirect usually will work only on Unix/Linux hosts since Windows hosts can't do symlinking in PHP versions older than 5.3.0
    if (DOWNLOAD_BY_REDIRECT == 'true') {
    zen_unlink_temp_dir(DIR_FS_DOWNLOAD_PUBLIC);
    $tempdir = zen_random_name() . '-' . time();;
    umask(0000);
    mkdir(DIR_FS_DOWNLOAD_PUBLIC . $tempdir, 0777);
    $download_link = str_replace(array('/','\\'),'_',$browser_filename);
    $link_create_status = @symlink(DIR_FS_DOWNLOAD . $origin_filename, DIR_FS_DOWNLOAD_PUBLIC . $tempdir . 'AA/' . $download_link);

    if ($link_create_status==true) {
    $zco_notifier->notify('NOTIFY_DOWNLOAD_VIA_SYMLINK___BEGINS', $download_link, $origin_filename, $tempdir);
    header("HTTP/1.1 303 See Other");
    zen_redirect(DIR_WS_DOWNLOAD_PUBLIC . $tempdir . '/' . $download_link, 303);
    }
    }

  10. #20
    Join Date
    Feb 2012
    Posts
    78
    Plugin Contributions
    0

    Default Re: redirect not working and host says its not their problem

    i changed the file location of the following just to see if something about the structure was the problem. as you can see, the file location is in a sub directory and works

    Orange Daffodil 0.50 MB wallpaper/2012 03-04 IMG_0682 ED.jpg 05/19/2012 5

    the pub directory makes a folder during the download however there is nothing inside the folder. does this mean it is defaulting to direct instead of redirecting?

 

 
Page 2 of 5 FirstFirst 1234 ... LastLast

Similar Threads

  1. my host says my my store is producing Google Analytics errors on their server
    By davowave in forum All Other Contributions/Addons
    Replies: 3
    Last Post: 11 Jan 2012, 05:12 AM
  2. useing my template and its not working as planned
    By Eric24v in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 29 Jul 2010, 10:55 AM
  3. Replies: 8
    Last Post: 3 Jul 2010, 02:53 AM
  4. changing servers!! and its not working Please help!!
    By touchclothing in forum General Questions
    Replies: 5
    Last Post: 13 Apr 2008, 10:39 PM
  5. It was working and now its not!
    By roachie in forum Basic Configuration
    Replies: 1
    Last Post: 5 Dec 2006, 12:38 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