Problem:
Improper PHP include code used for 'config.php', causing your web page couldn't find the right path to call the Newsletter scripts.
Solution:
To insure the appropiateness of all the PHP include codes, regardless of the location of your web page, it is recommend that you append the full document path to the include snippets, instead of using the relative path.
- To find the document path, open the oneadmin/config.php, and copy the value of Document Path, let say it is '/home/sitename/public_html/oneadmin/'.
- Now, the inclusion line for your newsletter subscription page will be -
include_once("/home/sitename/public_html/oneadmin/config.php");
include("/home/sitename/public_html/oneadmin/newsletter/home.subscribe.php");
?>
- To display past newsletters, insert the below line of code into your archives page -
include_once("/home/sitename/public_html/oneadmin/config.php");
include("/home/sitename/public_html/oneadmin/newsletter/home.browse.php");
?>
|