Using Actinic 8.5.0 on Demon Web Hosting and Demon's built-in SSL in checkout.
Problem: V6 site worked fine. V8 site fails at checkout with
Error: System Error: Unable to open content directory. No such file or directory
This is comming from Perl script digdown.pm that handles digital downloads.
In this script the line
is problematic as the same path to PathFromCGIToWeb will be used regardless if we're in the SSL area of the site or not. This script is called in both normal and SSL pages.
The Demon layout is as follows
FTP ROOT
-docroot
--acatalog
--cgi-bin
-secure
--cgi-bin
Which would imply
SSLPATHFROMCGITOCATALOG ../../docroot/acatalog/
SSLPATHFROMCGITOCATALOG ../acatalog/
but this fails as the SSLPATHFROMCGITOCATALOG isn't used by the digdown.pm script.
Workaround:
Luckily this seems to be fixable by setting the paths as follows:
FTPPROXYADDRESS
FTPPROXYPORT 21
FTPPROXYUSER
FTPPROXYPASSWORD
SCRIPTID 8
SCRIPTEXT .pl
SMTPHOST smtp.demon.co.uk
WEBSITEURL http://www.mysite.co.uk/index.html
IGNOREPASSIVEERRORS true
USERELATIVECGIURLS false
PATHTOPERL /usr/bin/perl
USEENHANCEFTP false
FTPCLIENTTIMEOUT 15000
FTPRETRYDELAY 3000
FTPSILENT false
FTPMAXRETRIES 3
FTPCONNECTTIMEOUT 25000
SMTPAUTHREQUIRED false
SMTPUSERNAME
SMTPPASSWORD
SSLCATALOGURL https://secure.demonweb.co.uk/mysite/acatalog/
SSLCGIBINURL https://secure.demonweb.co.uk/mysite/cgi-bin/
SSLPATHFROMCGITOCATALOG ../../docroot/acatalog/
SSLCODEBASE ./
SSLFTPHOST mysite.demonweb.co.uk
SSLFTPUSERNAME *********
SSLFTPPASSWORD *********
SSLPATHTOCGIBIN /secure/cgi-bin/
SSLUSEPASSIVEFTP true
CATALOGURL http://www.mysite.co.uk/acatalog/
CGIBINURL http://www.mysite.co.uk/cgi-bin/
PATHFROMCGITOCATALOG ../../docroot/acatalog/
CODEBASE ./
FTPHOST mysite.demonweb.co.uk
FTPUSERNAME *********
FTPPASSWORD *********
PATHTOCGIBIN /docroot/cgi-bin/
USEPASSIVEFTP true
FTPPATHFROMCGITOCATALOG ../acatalog/
Where the PATHFROMCGITOCATALOG ../../docroot/acatalog/ works in both SSL and non SSL pages.
I've marked the unusual settings in bold.
Problem: V6 site worked fine. V8 site fails at checkout with
Error: System Error: Unable to open content directory. No such file or directory
This is comming from Perl script digdown.pm that handles digital downloads.
In this script the line
Code:
$DigitalDownload::CONTENTPATH = '<Actinic:Variable Name="PathFromCGIToWeb"/>' . 'DD/'; # needs to be set to the path to the digital content - requires trailing slash
The Demon layout is as follows
FTP ROOT
-docroot
--acatalog
--cgi-bin
-secure
--cgi-bin
Which would imply
SSLPATHFROMCGITOCATALOG ../../docroot/acatalog/
SSLPATHFROMCGITOCATALOG ../acatalog/
but this fails as the SSLPATHFROMCGITOCATALOG isn't used by the digdown.pm script.
Workaround:
Luckily this seems to be fixable by setting the paths as follows:
FTPPROXYADDRESS
FTPPROXYPORT 21
FTPPROXYUSER
FTPPROXYPASSWORD
SCRIPTID 8
SCRIPTEXT .pl
SMTPHOST smtp.demon.co.uk
WEBSITEURL http://www.mysite.co.uk/index.html
IGNOREPASSIVEERRORS true
USERELATIVECGIURLS false
PATHTOPERL /usr/bin/perl
USEENHANCEFTP false
FTPCLIENTTIMEOUT 15000
FTPRETRYDELAY 3000
FTPSILENT false
FTPMAXRETRIES 3
FTPCONNECTTIMEOUT 25000
SMTPAUTHREQUIRED false
SMTPUSERNAME
SMTPPASSWORD
SSLCATALOGURL https://secure.demonweb.co.uk/mysite/acatalog/
SSLCGIBINURL https://secure.demonweb.co.uk/mysite/cgi-bin/
SSLPATHFROMCGITOCATALOG ../../docroot/acatalog/
SSLCODEBASE ./
SSLFTPHOST mysite.demonweb.co.uk
SSLFTPUSERNAME *********
SSLFTPPASSWORD *********
SSLPATHTOCGIBIN /secure/cgi-bin/
SSLUSEPASSIVEFTP true
CATALOGURL http://www.mysite.co.uk/acatalog/
CGIBINURL http://www.mysite.co.uk/cgi-bin/
PATHFROMCGITOCATALOG ../../docroot/acatalog/
CODEBASE ./
FTPHOST mysite.demonweb.co.uk
FTPUSERNAME *********
FTPPASSWORD *********
PATHTOCGIBIN /docroot/cgi-bin/
USEPASSIVEFTP true
FTPPATHFROMCGITOCATALOG ../acatalog/
Where the PATHFROMCGITOCATALOG ../../docroot/acatalog/ works in both SSL and non SSL pages.
I've marked the unusual settings in bold.
Comment