If this is your first visit, check our documentation. To post, register or login.
Forums / Setting Up Your Zen Cart Products / Setting Up Categories, Products, Attributes / Downloads remaining goes to 3 from 5 after one click

Downloads remaining goes to 3 from 5 after one click

Started by verzea on 15 May 2015, 1:57 PM · Views: 1,080

Results 1 to 11 of 11
15 May 2015, 1:57 PM
#1
verzea avatar

verzea

New Zenner

Join Date:
Nov 2007
Posts:
11
Plugin Contributions:
0

Post #1 by verzea

I'm selling digital products since 2009. Never had this issue. Recently I changed the theme and updated to v1.5.4. Today someone had problems with one of the downloads and received a message about page doesn't exist. I updated the order over and over until I investigated the case. All my downloads are set up to 7 days and 5 attempts. My recent orders have 3 remaining downloads (that means the customers downloaded once). I also experimented with a fake account and after 2 clicks (downloads), the order expires!
Please help.
Really appreciated!

15 May 2015, 2:10 PM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Post #2 by drbyte

With theme are you using? Where did you download it from?
What other Addons are on your site?
Please supply a detailed list of ALL the ways in which your site is different from an original fresh install of v1.5.4.
Whats the URL?

.
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.

15 May 2015, 2:27 PM
#3
verzea avatar

verzea

New Zenner

Join Date:
Nov 2007
Posts:
11
Plugin Contributions:
0

Post #3 by verzea

Theme used: Carlisle Fresh from Picaflor Azul
Addons: Zen Lightbox and Ultimate SEO
Nothing special, I did a regular update (re-install the zen cart with DB update and then I added the theme and those 2 addons).
Url: https://www.arc4studio.com/store

15 May 2015, 2:39 PM
#4
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Post #4 by drbyte

PPP version?
mysql version?
hosting company?

i can't duplicate the problem here, so trying to figure out what's different on your site vs mine.
I asked ajeh about it and she said she can't duplicate it either.

.
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.

15 May 2015, 2:45 PM
#5
verzea avatar

verzea

New Zenner

Join Date:
Nov 2007
Posts:
11
Plugin Contributions:
0

Post #5 by verzea

PHP Version: 5.4.40 (Zend: 2.4.0)
PHP Memory Limit: 128M
Database: MySQL 5.5.42-37.1-log
bluehost

15 May 2015, 2:52 PM
#6
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Post #6 by mc12345678

Fact that store is in a subdirectory, possible an issue with an .htaccess file? Have seen the same decrement of downloads by one when a download fails due to possibly incorrect temp folder permissions (777 applied when host only accepts 755) or other follow-on errors occur.

ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...

15 May 2015, 3:11 PM
#7
verzea avatar

verzea

New Zenner

Join Date:
Nov 2007
Posts:
11
Plugin Contributions:
0

Post #7 by verzea

Found it! Thanks. The unusual behavior was caused by the missing /pub directory from my installation. It is something that I deliberated removed after install (don't ask me why :)). Now it seems to be ok. Thanks again.

15 May 2015, 3:14 PM
#8
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Post #8 by mc12345678

verzea:

Found it! Thanks. The unusual behavior was caused by the missing /pub directory from my installation. It is something that I deliberated removed after install (don't ask me why :)). Now it seems to be ok. Thanks again.

To not walk away with a potential issue remaining, did the restoration of the directory include the files provided from a default install?

ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...

15 May 2015, 3:34 PM
#9
verzea avatar

verzea

New Zenner

Join Date:
Nov 2007
Posts:
11
Plugin Contributions:
0

Post #9 by verzea

initially I restored the old directory from an old backup, then I compared the htaccess files with the one from the new zen v1.4.5 installation and I replaced it to the directory. Now the permissions for the index and htaccess are 0644. Am I missing something? Thanks for this support.

15 May 2015, 3:41 PM
#10
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Post #10 by mc12345678

verzea:

initially I restored the old directory from an old backup, then I compared the htaccess files with the one from the new zen v1.4.5 installation and I replaced it to the directory. Now the permissions for the index and htaccess are 0644. Am I missing something? Thanks for this support.

mc12345678:

Fact that store is in a subdirectory, possible an issue with an .htaccess file? Have seen the same decrement of downloads by one when a download fails due to possibly incorrect temp folder permissions (777 applied when host only accepts 755) or other follow-on errors occur.

The 777 or 755 permissions I was referring to are the permissions for the temporary directory that is created when downloading by the use of the redirect link (sorry incorrect term for this, but I'm drawing a blank at the moment and haven't gone to do the "homework" to use the proper term). Those permissions are not applicable to the file(s).

Suggest reviewing the after installation file securement instructions available in the documents for installing ZC and also available in the FAQ section of this site.

The reason I had also made the inquiry about file restoration is that those two files provide a level of security that would not exist if only the folder were recreated. Some (and considering those that might find this in the future) may think that all is necessary is to restore the folder and be done. :)

ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...

16 May 2015, 4:16 PM
#11
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Post #11 by drbyte

verzea:

Found it! Thanks. The unusual behavior was caused by the missing /pub directory from my installation. It is something that I deliberated removed after install (don't ask me why :)). Now it seems to be ok. Thanks again.
Good catch. I wasn't expecting that to be the cause, but am glad you found it and fixed it.
Restoring the /pub/ folder and the .htaccess and index.html inside it should suffice, as long as the folder is also writable so symlinks can be created in it.

.
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.