stigc8 Posted April 8, 2004 Posted April 8, 2004 I have added the required lines to configure.php and it breaks my store......I have seen others with my problem and on a system with older versions of Linux, Apache and PHP it worked fine. Now on this system it won't....let me dig up the php specs PHP Version 4.2.2. If it is something I've done wrong someone please tell me what it is and how to fix it :) thanks so much :rolleyes: Template file doesn't exist: [sTS_DEFAULT_TEMPLATE] Warning: fopen("STS_DEFAULT_TEMPLATE", "r") - No such file or directory in /home/httpd/vhosts/gaiagarden.com/httpdocs/store/catalog/includes/sts_display_output.php on line 120 Can't open Template file: [sTS_DEFAULT_TEMPLATE] Warning: stat failed for STS_DEFAULT_TEMPLATE (errno=2 - No such file or directory) in /home/httpd/vhosts/gaiagarden.com/httpdocs/store/catalog/includes/sts_display_output.php on line 124 Warning: fread(): supplied argument is not a valid File-Handle resource in /home/httpd/vhosts/gaiagarden.com/httpdocs/store/catalog/includes/sts_display_output.php on line 124 Warning: fclose(): supplied argument is not a valid File-Handle resource in /home/httpd/vhosts/gaiagarden.com/httpdocs/store/catalog/includes/sts_display_output.php on line 125 Warning: open_basedir restriction in effect. File is in wrong directory in /home/httpd/vhosts/gaiagarden.com/httpdocs/store/catalog/includes/sts_display_output.php on line 138 Fatal error: Failed opening required 'STS_USER_CODE' (include_path='.:/usr/share/pear') in /home/httpd/vhosts/gaiagarden.com/httpdocs/store/catalog/includes/sts_display_output.php on line 138 Quote
241 Posted April 8, 2004 Posted April 8, 2004 do you have these defines in the catalog/includes/configure.php define('STS_START_CAPTURE', DIR_WS_INCLUDES . 'sts_start_capture.php'); define('STS_STOP_CAPTURE', DIR_WS_INCLUDES . 'sts_stop_capture.php'); define('STS_RESTART_CAPTURE', DIR_WS_INCLUDES . 'sts_restart_capture.php'); define('STS_TEMPLATE_DIR', DIR_WS_INCLUDES . 'sts_templates/'); define('STS_DEFAULT_TEMPLATE', DIR_WS_INCLUDES . 'sts_template.html'); define('STS_DISPLAY_OUTPUT', DIR_WS_INCLUDES . 'sts_display_output.php'); define('STS_USER_CODE', DIR_WS_INCLUDES . 'sts_user_code.php'); Quote No longer giving free advice. Please place deposit in meter slot provided. Individual: [=] SME: [==] Corporation: [===] If deposit does not fit one of the slots provided then you are asking too much! Is your Osc dated try Phoenix raising oscommerce from the ashes.
stigc8 Posted April 8, 2004 Author Posted April 8, 2004 Yes, at the end of configure.php I have already added: // STS: ADD: Define Simple Template System files define('STS_START_CAPTURE', DIR_WS_INCLUDES . 'sts_start_capture.php'); define('STS_STOP_CAPTURE', DIR_WS_INCLUDES . 'sts_stop_capture.php'); define('STS_RESTART_CAPTURE', DIR_WS_INCLUDES . 'sts_restart_capture.php'); define('STS_TEMPLATE', DIR_WS_INCLUDES . 'sts_template.html'); define('STS_DISPLAY_OUTPUT', DIR_WS_INCLUDES . 'sts_display_output.php'); // STS: EOADD Quote
stigc8 Posted April 8, 2004 Author Posted April 8, 2004 UPDATE: I think everyone should be aware there is some dependency on how your environment is setup in the backend. I have succesfully mirrored this STS configuration in two different hosting environments on Linux/Apache........however, in this particular one for whatever reason it is not working. I was able to confirm this by taking the same steps to configure and install osCommerce and STS on another server today without a problem. Now the question would be.......what is the source of this problem? I suspect it is likely the php.ini file as no doc_root is set and other strange settings that our hosting company has made. Can anyone suggest a solution? Thanks Quote
stigc8 Posted April 8, 2004 Author Posted April 8, 2004 Ok I never noticed this until now......... note to everyone.... copy the code from the readme.txt ALWAYS. I just copied the code from Brian's original post and from the download page and didn't realize it's not the same as in the readme.txt So, if you're having this problem don't assume that since you copied the code it is correct. copy the code below or from readme.txt hopes it saves someone else many hours of time :) // STS: ADD: Define Simple Template System files define('STS_START_CAPTURE', DIR_WS_INCLUDES . 'sts_start_capture.php'); define('STS_STOP_CAPTURE', DIR_WS_INCLUDES . 'sts_stop_capture.php'); define('STS_RESTART_CAPTURE', DIR_WS_INCLUDES . 'sts_restart_capture.php'); define('STS_TEMPLATE_DIR', DIR_WS_INCLUDES . 'sts_templates/'); define('STS_DEFAULT_TEMPLATE', DIR_WS_INCLUDES . 'sts_template.html'); define('STS_DISPLAY_OUTPUT', DIR_WS_INCLUDES . 'sts_display_output.php'); define('STS_USER_CODE', DIR_WS_INCLUDES . 'sts_user_code.php'); define('STS_PRODUCT_INFO', DIR_WS_INCLUDES . 'sts_product_info.php'); // STS: EOADD Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.