Zen Cart Logo
Forums / All Other Contributions/Addons / Restrict Digital Downloads [Support Thread]

Restrict Digital Downloads [Support Thread]

Views: 10,146

Results 61 to 80 of 113
31 Dec 2014, 2:22 PM
#61
jmsnyder23 avatar

jmsnyder23

Zen Follower

Join Date:
Jan 2010
Location:
Richmond, Virginia, United States
Posts:
122
Plugin Contributions:
0

Restrict Digital Downloads [Support Thread]

What appears to have happened is that clicking on the HOME link didn't run the installation script. When I deleted the files and looked at the database, there were no changes made. Let me try again ...

31 Dec 2014, 2:25 PM
#62
jmsnyder23 avatar

jmsnyder23

Zen Follower

Join Date:
Jan 2010
Location:
Richmond, Virginia, United States
Posts:
122
Plugin Contributions:
0

Re: Restrict Digital Downloads [Support Thread]

Okay, so this time it created the table -- I see it in phpmyadmin -- but I still get a blank page when I try to access my admin panel. :(

31 Dec 2014, 2:28 PM
#63
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,086
Plugin Contributions:
56

Re: Restrict Digital Downloads [Support Thread]

I don't either, as there are no core-file overwrites in the plugin. What is in your debug logs (be sensitive to the fact that your admin folder name will be part of any admin-level debug log)?

31 Dec 2014, 2:28 PM
#64
jmsnyder23 avatar

jmsnyder23

Zen Follower

Join Date:
Jan 2010
Location:
Richmond, Virginia, United States
Posts:
122
Plugin Contributions:
0

Re: Restrict Digital Downloads [Support Thread]

Here's a stupid question, but where do I find the debug logs again?

31 Dec 2014, 2:32 PM
#65
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,086
Plugin Contributions:
56

Re: Restrict Digital Downloads [Support Thread]

Ooh ... you're running v1.3.9, right? Edit the file /YOUR_ADMIN/includes/init_includes/init_ip2country.php and remove the following three lines (at the bottom):

if (!zen_page_key_exists ('toolsUpdateIP2Country')) {
  zen_register_admin_page('toolsUpdateIP2Country', 'BOX_TOOLS_UPDATE_IP2COUNTRY', 'FILENAME_TOOLS_UPDATE_IP2COUNTRY', '', 'tools', 'Y', init_i2l_next_sort ('tools'));
  
}
31 Dec 2014, 2:37 PM
#66
jmsnyder23 avatar

jmsnyder23

Zen Follower

Join Date:
Jan 2010
Location:
Richmond, Virginia, United States
Posts:
122
Plugin Contributions:
0

Re: Restrict Digital Downloads [Support Thread]

YAY! That did it :) Since apparently my cache folder is so huge, Filezilla won't open it. Now to install the rest :)

31 Dec 2014, 2:50 PM
#67
jmsnyder23 avatar

jmsnyder23

Zen Follower

Join Date:
Jan 2010
Location:
Richmond, Virginia, United States
Posts:
122
Plugin Contributions:
0

Re: Restrict Digital Downloads [Support Thread]

Okay, the only problem now is that the tools box you had me create separately doesn't show up in admin anywhere. :( I'm sorry to be such a pain.

31 Dec 2014, 3:23 PM
#68
jmsnyder23 avatar

jmsnyder23

Zen Follower

Join Date:
Jan 2010
Location:
Richmond, Virginia, United States
Posts:
122
Plugin Contributions:
0

Re: Restrict Digital Downloads [Support Thread]

Nevermind, I just went to my admin/tools_update_ip2country.php and the page came up. :)

31 Dec 2014, 3:32 PM
#69
jmsnyder23 avatar

jmsnyder23

Zen Follower

Join Date:
Jan 2010
Location:
Richmond, Virginia, United States
Posts:
122
Plugin Contributions:
0

Re: Restrict Digital Downloads [Support Thread]

Okay, I feel like I'm spamming this board, and I apologize.

I tried to import the IP2Location file (I downloaded what I thought was the latest one, IP2LOCATION-LITE-DB1.IPV6.CSV), and I got this error:

1062 Duplicate entry '4294967295-4294967295' for key 'PRIMARY'

Followed by a long list of mess, and at the end, it reads:

If you were entering information, press the BACK button in your browser and re-check the information you had entered to be sure you left no blank fields.

My ip2country database only has 2 entries:

4294967295 -
4294967295 4294967295 FR

So I'm not sure if I should try again, or ...?

31 Dec 2014, 3:48 PM
#70
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,086
Plugin Contributions:
56

Re: Restrict Digital Downloads [Support Thread]

Wrong file (IP2LOCATION-LITE-DB1.IPV6.CSV); you want IP2LOCATION-LITE-DB1.IPV4.CSV

31 Dec 2014, 3:50 PM
#71
jmsnyder23 avatar

jmsnyder23

Zen Follower

Join Date:
Jan 2010
Location:
Richmond, Virginia, United States
Posts:
122
Plugin Contributions:
0

Re: Restrict Digital Downloads [Support Thread]

At http://download.ip2location.com/lite/ I only see IP2LOCATION-LITE-DB1.CSV.ZIP and IP2LOCATION-LITE-DB1.IPV6.CSV.ZIP (which I picked because it had a later date). Should I take the first one instead?

31 Dec 2014, 4:01 PM
#72
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,086
Plugin Contributions:
56

Re: Restrict Digital Downloads [Support Thread]

My bad; choose the IP2LOCATION-LITE-DB1.CSV.ZIP (it's the one with the IPv4 addresses).

31 Dec 2014, 6:09 PM
#73
jmsnyder23 avatar

jmsnyder23

Zen Follower

Join Date:
Jan 2010
Location:
Richmond, Virginia, United States
Posts:
122
Plugin Contributions:
0

Re: Restrict Digital Downloads [Support Thread]

Yay! It works :) And I had a friend in the UK test it out, so double yay!

Is there somewhere I can donate to thank you for all your help?

31 Dec 2014, 6:37 PM
#74
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,086
Plugin Contributions:
56

Re: Restrict Digital Downloads [Support Thread]

Sure: http://www.zen-cart.com/content.php?6-donate

I'm glad to have helped!

2 Jan 2015, 4:05 PM
#75
rixstix avatar

rixstix

Totally Zenned

Join Date:
Aug 2009
Location:
North Idaho, USA
Posts:
2,015
Plugin Contributions:
0

Re: Restrict Digital Downloads [Support Thread]

I posted this in the template support thread but since then, I have been looking at the raw server log for December.

These errors began on the date that I installed the RDD plugin which leads me to believe that the errors are somehow related to RDD.
Prior to this plugin, the template files did not include the various product_info folders which are created by RDD.

Do I need a template patch, an RDD patch or something else? With all the possible code variations related to plugins and templates, I don't know how code writers keep things as functional as you do.

RixStix:

I've looked as much as I know how to find the source of these which is causing problems. I have compared default template files with my edited template files and have not seen anything obvioius.

Anne, can you help? These are excerpts from a "view source" of any product page.
The template doesn't include any /product_info folder
I'm assuming that the doubleslash between the product_info and file name is most likely the culprit, but where to find those 4 edits?

Server error logs has 4 lines of filedoesnotexist error for each product view.
I do not know when it started.
It could be due to an edit made by me.

<script src="includes/templates/westminster_new/product_info//css_browser_selector.js" type="text/javascript"></script> <script src="includes/templates/westminster_new/product_info//jquery.slimmenu.min.js" type="text/javascript"></script> <script src="includes/templates/westminster_new/product_info//easyResponsiveTabs.js" type="text/javascript"></script> <script src="includes/templates/westminster_new/product_info//jquery.tabSlideOut.v1.3.js" type="text/javascript"></script>
2 Jan 2015, 4:21 PM
#76
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,086
Plugin Contributions:
56

Re: Restrict Digital Downloads [Support Thread]

Rick, use your admin's Tools->Developers Tool Kit and search for $template->get_template_dir. What you're looking for are (poorly coded) constructs that look like:

<?php echo $template->get_template_dir('',DIR_WS_TEMPLATE, $current_page_base,'jscript') . '/css_browser_selector.js';

See how the first variable is an empty string? You'd change the above to

<?php echo $template->get_template_dir('css_browser_selector.js',DIR_WS_TEMPLATE, $current_page_base,'jscript') . '/css_browser_selector.js';

to correct the error. Repeat for each instance found.

2 Jan 2015, 4:55 PM
#77
rixstix avatar

rixstix

Totally Zenned

Join Date:
Aug 2009
Location:
North Idaho, USA
Posts:
2,015
Plugin Contributions:
0

Re: Restrict Digital Downloads [Support Thread]

Thank you Cindy,

4 errors fixed.
1 new created but that is just an image not found. For now, I just copied the image from the images folder to all of the product_info folders.

2 Jan 2015, 5:12 PM
#78
rixstix avatar

rixstix

Totally Zenned

Join Date:
Aug 2009
Location:
North Idaho, USA
Posts:
2,015
Plugin Contributions:
0

Re: Restrict Digital Downloads [Support Thread]

RixStix:

For now, I just copied the image from the images folder to all of the product_info folders.

Instead, seeing a similarity.... I followed your example & took similar action for the image file.

Thank you again

4 Feb 2015, 1:59 PM
#79
jmsnyder23 avatar

jmsnyder23

Zen Follower

Join Date:
Jan 2010
Location:
Richmond, Virginia, United States
Posts:
122
Plugin Contributions:
0

Re: Restrict Digital Downloads [Support Thread]

I'm back again (sorry!).

I'm using one of Picaflor Azul's responsive templates. With this javascript code on my site, the mobile version no longer works right. The dropdown menus are all visible (you can't click to toggle them open or closed) and most of the links no longer work. Is there a reason for this?

I can't figure out how to make the two scripts play nice. Any advice would be helpful. Thanks!