Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Simple Template System Problems


Guest

Recommended Posts

Hey folks, running a new install of osCommerce. The only other installed module is Easy Populate.

 

I followed the sts instructions to the letter, and here are the errors I get when I try to go to the /catalog/ page:

 

Warning: main(STS_START_CAPTURE): failed to open stream: No such file or directory in /var/www/html/catalog/includes/application_top.php on line 511

 

Fatal error: main(): Failed opening required 'STS_START_CAPTURE' (include_path='.:/php/includes:/usr/share/php') in /var/www/html/catalog/includes/application_top.php on line 511

 

Any help would be greatly appreciated.

Link to comment
Share on other sites

  • 4 months later...

Hi Will, did you ever come right with this? I have the same error message on install and could do with some advice

 

Thanks Ryan

 

 

Hey folks, running a new install of osCommerce. The only other installed module is Easy Populate.

 

I followed the sts instructions to the letter, and here are the errors I get when I try to go to the /catalog/ page:

 

Warning: main(STS_START_CAPTURE): failed to open stream: No such file or directory in /var/www/html/catalog/includes/application_top.php on line 511

 

Fatal error: main(): Failed opening required 'STS_START_CAPTURE' (include_path='.:/php/includes:/usr/share/php') in /var/www/html/catalog/includes/application_top.php on line 511

 

Any help would be greatly appreciated.

Link to comment
Share on other sites

  • 3 weeks later...

In the install doc with the contribution it tells you to add a piece of code to the config.php file.

 

This is the code, try and put that in the config file and see how you get on.

 

 

// 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');

// STS: EOADD

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...