Creating PPD Files

Last Updated: Sep 11, 2015 08:23PM EDT

Overview

Unfortunately there is a server setting on Windows server that creates a bit of an headache for businesses running ASP applications. It’s called “Parent Paths”. In a nutshell, an application like ProductCart uses the dot-dot-slash (”../”) notation (i.e. parent paths) to load “include” files (files that are dynamically included into another file when the latter is parsed by the Web server) from a variety of other files. Sometimes Microsoft's Internet Information Server (IIS) is setup so that parent paths are disallowed, in which case ProductCart would not function properly.

NOTE: In ProductCart v5 and higher, there is no longer a pre-created file set for stores running on servers that have Disabled Parent Paths!

Typical Errors

If you activated ProductCart on a server that does not support parent paths, the server would return error messages similar to the following:
Active Server Pages, ASP 0131 (0x80004005)
The Include file '../includes/settings.asp' cannot contain
'..' to indicate the parent directory.
/productcart/pc/home.asp

What To Do

If your server has Parent Paths disabled, you have two options under ProductCart v5:

  1. You can enable parent paths in IIS. Note however that some Web hosting companies may not be willing to edit this setting for you. If you have access to the Web server (e.g. you have a dedicated server), follow these steps to allow parent paths on a Windows 2003 server: :
    1. Open the IIS Console
    2. Right click on the web site you are using and choose “Properties”
    3. Select “Home Directory” and click the “Configuration” button
    4. Select “Options”
    5. Check the box that says “Enable Parent Paths”
  2. You can do the global Find & Replaces listed below (i.e. "recursive" - through all ProductCart Folders and Files)

file="../../includes/
virtual="store/includes/
 
file="../includes/
virtual="store/includes/
 
file="../pc/
virtual="store/pc/

file="../CAPTCHA/
virtual="store/CAPTCHA/

file="../xml/
virtual="store/xml/

file="../htmleditor/
virtual="store/htmleditor/

file="../../
virtual="store/pc/

file="../inc_productcart
virtual="store/htmleditor/addons/assetmanager/inc_productcart

file="../pdf
virtual="store/pdf

file="../pcSBDataInc
virtual="store/includes/pcSBDataInc

You will also need to change the variable in the following files to a "1"

/includes/ppdstatus.inc
/setup/ppdstatus.inc
647e99095133bd6d1ae916f97dc7f92f@productcart.desk-mail.com
https://cdn.desk.com/
false
desk
Loading
seconds ago
a minute ago
minutes ago
an hour ago
hours ago
a day ago
days ago
about
false
Invalid characters found
/customer/en/portal/articles/autocomplete