Forums / Setting Up Categories, Products, Attributes / Need help with attributes please

Need help with attributes please

Started by loaner on 11 Jul 2011, 10:47 PM · Views: 4,804

Results 41 to 60 of 70
19 Jul 2011, 6:33 PM
#41
lauriesscraps avatar

lauriesscraps

Zen Follower

Join Date:
Sep 2009
Posts:
255
Plugin Contributions:
0

Need help with attributes please

There is no .htaccess in the downloads folder. I added or created that folder when I moved the location.

Should I copy and paste that file into the folder? And do you want me to take the new coding you have listed in the first coding box and replace the old .htaccess coding with the one you have listed? When I do that it gives me a server error.

I have no problem with adding the downloads folder in the configure.php files so it reads:

define('DIR_FS_DOWNLOAD', '/home/username/downloads/');

But when I do that, I get that error message I included in the above post. How do I get rid of that?

19 Jul 2011, 6:37 PM
#42
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Need help with attributes please

Add the .htaccess file to that directory ...

Make sure that you have it spelled correctly for:
/home/your_username/downloads

and that the downloads has the S if you are using it ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

19 Jul 2011, 6:45 PM
#43
lauriesscraps avatar

lauriesscraps

Zen Follower

Join Date:
Sep 2009
Posts:
255
Plugin Contributions:
0

Re: Need help with attributes please

I added the .htaccess file to the downloads folder.
I then changed the coding line to ** define('DIR_FS_DOWNLOAD', '/home/username/downloads/');**.

I am still getting that error at the top of her store which says: Warning: The downloadable products directory does not exist: /home/username/download/. Downloadable products will not work until this directory is valid.

19 Jul 2011, 6:48 PM
#44
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Need help with attributes please

Do you have that .htaccess file you posted in your root:
/home/username/.htaccess

with those re-writes?

If so, can you rename that:
/home/username/.htaccess_HIDE

so it is not affecting all of your directories below that ...

The idea is not to be using any rewrites etc. while trying to fix this and make sure you do not have any where they do not belong ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

19 Jul 2011, 7:33 PM
#45
lauriesscraps avatar

lauriesscraps

Zen Follower

Join Date:
Sep 2009
Posts:
255
Plugin Contributions:
0

Re: Need help with attributes please

I added the rewrites to the .htaccess in the root and changed the name. I am no longer getting a server error message now.

I am, however, still getting the other error message of

Warning: The downloadable products directory does not exist: /home/username/download/. Downloadable products will not work until this directory is valid.

when I change the file path to ```
define('DIR_FS_DOWNLOAD', '/home/username/downloads/');

19 Jul 2011, 7:53 PM
#46
lauriesscraps avatar

lauriesscraps

Zen Follower

Join Date:
Sep 2009
Posts:
255
Plugin Contributions:
0

Re: Need help with attributes please

and I have done both "downloads" and "download" as the folder name. I make sure that they are the same through out. That was typo... sorry.

19 Jul 2011, 10:40 PM
#47
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Need help with attributes please

Make sure there are no .htaccess in:
/home//username

Make sure you have the .htaccess that I posted for the Downloads in:
/home/username/downloads

Make sure that your test download file is in:
/home/username/downloads/filename.zip

Make sure that the Attribute is using:
filename.zip

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

20 Jul 2011, 12:15 AM
#48
lauriesscraps avatar

lauriesscraps

Zen Follower

Join Date:
Sep 2009
Posts:
255
Plugin Contributions:
0

Re: Need help with attributes please

OK.... I am about ready to pull my hair out, as I am sure you are too.

I have deleted the .htaccess file from the** /home/username/ **location and moved the ..htaccess_HIDE file to the /home/username/downloads location and deleted the original .htaccess file from that location as well.

When I change that line in the configure.php files to say ```
define('DIR_FS_DOWNLOAD', '/home/username/downloads/');


Warning: The downloadable products directory does not exist: /home/username/downloads/. Downloadable products will not work until this directory is valid.

20 Jul 2011, 12:19 AM
#49
lauriesscraps avatar

lauriesscraps

Zen Follower

Join Date:
Sep 2009
Posts:
255
Plugin Contributions:
0

Re: Need help with attributes please

And now I am not able to view the admin section of her store. It just is a blank screen.

Nevermind, I restored a back up and got it back up. Not sure what happened.

20 Jul 2011, 12:52 AM
#50
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Need help with attributes please

I am out of solutions here ...

I am not sure if your rewrites are causing issues or what at this point ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

20 Jul 2011, 2:04 AM
#51
lauriesscraps avatar

lauriesscraps

Zen Follower

Join Date:
Sep 2009
Posts:
255
Plugin Contributions:
0

Re: Need help with attributes please

Well, let me just go over everything I have done to make sure I have not missed a step or instruction.

I copied the .htaccess from the root directory to the downloads folder and rewrote it to include what you included in post #40.

I then deleted the .htaccess from the root directory.

Then I changed both of the configure.php files to say define('DIR_FS_DOWNLOAD', '/home/username/downloads/');

Once I did that it told me that directory did not exist and gave me this error message:

Warning: The downloadable products directory does not exist: /home/username/download/. Downloadable products will not work until this directory is valid.

Am I missing anything? Did I do something wrong?

20 Jul 2011, 2:43 AM
#52
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Need help with attributes please

remove the .htaccess from the directory:
/home/username/downloads/

Use this as the .htaccess for the directory:
/home/username/downloads/

#
# @copyright Copyright 2003-2011 Zen Cart Development Team
# @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
# @version $Id: .htaccess 18695 2011-05-04 05:24:19Z drbyte $
#

AuthType Basic
AuthName "No access"
AuthUserFile .htnopasswd
AuthGroupFile /dev/null
#Require valid-user


###############################
#
# This is used with Apache WebServers
#
# The following blocks direct HTTP requests to all filetypes in this directory recursively, except certain approved exceptions
# It also prevents the ability of any scripts to run. No type of script, be it PHP, PERL or whatever, can normally be executed if ExecCGI is disabled.
# Will also prevent people from seeing what is in the dir. and any sub-directories
#
# For this to work, you must include either 'All' or at least: 'Limit' and 'Indexes' parameters to the AllowOverride configuration in your apache/conf/httpd.conf file.
# Additionally, if you want the added protection offered by the OPTIONS directive below, you'll need to add 'Options' to the AllowOverride list, if 'All' is not specified. 
# Example:
#<Directory "/usr/local/apache/htdocs">
#  AllowOverride Limit Options Indexes
#</Directory>
###############################

# deny *everything*
<FilesMatch ".*">
  Order Allow,Deny
  Deny from all
</FilesMatch>

# but now allow just *certain* necessary files:
<FilesMatch ".*\.(zip|ZIP|gzip|pdf|PDF|mp3|MP3|swf|SWF|wma|WMA|wmv|WMV|wav|epub)$">
  Order Allow,Deny
  Allow from all
</FilesMatch>

<IfModule mod_headers.c>
  <FilesMatch ".*\.(zip|ZIP|pdf|PDF|mp3|MP3|swf|SWF|wma|WMA|wmv|WMV|wav|epub)$">
    # tell all downloads to automatically be treated as "save as" instead of launching in an application directly
    # ALERT: ForceType requires Apache2 or later. If using older version of Apache, it will need mod_mime installed. Or just comment out the ForceType line below
    # (to disable, just comment the next 2 lines by adding a '#' at the beginning of each):
    ForceType application/octet-stream
    Header set Content-Disposition attachment
  </FilesMatch>
</IfModule>

IndexIgnore */*


## NOTE: If you want even greater security to prevent hackers from running scripts in this folder, uncomment the following line (if your hosting company will allow you to use OPTIONS):
# OPTIONS -Indexes -ExecCGI

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

20 Jul 2011, 2:44 AM
#53
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Need help with attributes please

Why does the warning say /download without the S if the configure.php files are using that with the S ...:unsure:

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

20 Jul 2011, 2:46 AM
#54
lauriesscraps avatar

lauriesscraps

Zen Follower

Join Date:
Sep 2009
Posts:
255
Plugin Contributions:
0

Re: Need help with attributes please

Sorry, another typo. I include the S. That was copied from when I was not including the s. Sorry.

I did this change you have listed above and I am still getting the error message.

So as I have it now, I have the original .htaccess file in the home/username/ location and the rewritten .htaccess file in the home/username/downloads/ location.

26 Jul 2011, 2:55 AM
#55
loaner avatar

loaner

New Zenner

Join Date:
Jul 2011
Posts:
45
Plugin Contributions:
0

Re: Need help with attributes please

Any other thoughts or anything anyone can help with to get this working? We are supposed to have our grand opening on August 1st and still can't get attributes linked up.

26 Jul 2011, 1:23 PM
#56
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Need help with attributes please

Did you check with your hosting provider to see if there might be something preventing this from working?

I cannot repeat the problem ...

I have in my two configure.php files:

define('DIR_FS_DOWNLOAD', '/home/username/downloads/');

I have my Zip files in:

/home/username/downloads/

I have on the Attributes the Zip files as:
filename.zip

where filename.zip is in:
/home/username/downloads/filename.zip

Or, for subdirectories:
I have on the Attributes the Zip files as:
mysubdirectory/filename.zip

where filename.zip is in:
/home/username/downloads/mysubdirectory/filename.zip

I have in my shop:
/shop/pub

set to 777 ...

and my downloads work anf have the green light in the Admin on the Downloads Manager and on the Attributes Controller ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

26 Jul 2011, 1:24 PM
#57
loaner avatar

loaner

New Zenner

Join Date:
Jul 2011
Posts:
45
Plugin Contributions:
0

Re: Need help with attributes please

Yes I checked with them and they said there were no problems with permissions. Is that what I was supposed to ask them?

26 Jul 2011, 2:51 PM
#58
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Need help with attributes please

I was hoping that they would find either a permissions issue or ownership issue or something preventing the access to the root directory that might be causing this ...

I have tried numerous combinations on your site and have not come up with an reason why this does not work on your site ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

26 Jul 2011, 2:53 PM
#59
loaner avatar

loaner

New Zenner

Join Date:
Jul 2011
Posts:
45
Plugin Contributions:
0

Re: Need help with attributes please

So, is there another specific question I should ask them? Laurie said her version of Zencart is different than my newer version, would that have caused a problem?

26 Jul 2011, 3:44 PM
#60
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Need help with attributes please

What version does she think she is using? I see version 1.3.9h ... :unsure:

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!