fluentdesigns Posted October 14, 2003 Share Posted October 14, 2003 Installed the addon and i get this error now. Any ideas? Am i suppose to put the sts_user_code file a certain place? Warning: main(STS_USER_CODE): failed to open stream: No such file or directory in /usr/www/virtual/planet-diesel/catalog/includes/sts_display_output.php on line 82 Fatal error: main(): Failed opening required 'STS_USER_CODE' (include_path='.:/usr/share/pear') in /usr/www/virtual/planet-diesel/catalog/includes/sts_display_output.php on line 82 thanks -Nick Quote Link to comment Share on other sites More sharing options...
strickliesl Posted October 14, 2003 Share Posted October 14, 2003 (edited) After I installed the sts-contrib I have a "</" at the end of every page, I checked the files for hours, did new installation twice, can't find what happens! Anybody has an idea in which file the error could be? So far I only changed the css and the configure-file as explained and uploaded the other files of the STS. http://www.allesherz.com/catalog thanx for help ! Edited October 14, 2003 by strickliesl Quote Link to comment Share on other sites More sharing options...
fluentdesigns Posted October 14, 2003 Share Posted October 14, 2003 Installed the addon and i get this error now. Any ideas? Am i suppose to put the sts_user_code file a certain place? Warning: main(STS_USER_CODE): failed to open stream: No such file or directory in /usr/www/virtual/planet-diesel/catalog/includes/sts_display_output.php on line 82 Fatal error: main(): Failed opening required 'STS_USER_CODE' (include_path='.:/usr/share/pear') in /usr/www/virtual/planet-diesel/catalog/includes/sts_display_output.php on line 82 thanks -Nick Nevermind got it working. Now how do i use this Motha.. time to read Quote Link to comment Share on other sites More sharing options...
fluentdesigns Posted October 14, 2003 Share Posted October 14, 2003 Ok got it working now it seems that everything in the shopping cart doesnt work now. Its looks like its taking php code and putting it in the address bar, so if i was to clikc the hardware button for the catalog it gives me this link http://www.planet-diesel.comdir_ws_http_ca...9d7dcd3f34761d9 where dir_ws_http_catalog shouldnt be there. Any ideas? thanks Quote Link to comment Share on other sites More sharing options...
Guest Posted October 14, 2003 Share Posted October 14, 2003 I noticed a little thing about STS, after I installed it on a clean OSC (tried MS2 and current CVS), I can't get the product_review_info page work. Because I really like this feature, this make's me some headache. Hum, I think some more Bugreport would be nice, so here it comes: After applying the contrib I got some weird stuff when open the catalog/product_reviews_info.php (with matching id's, indeed). It shows up only one letter in all places where variables should show up. There seems to be a problem when parsing(?) the $template[content]. Any hints?! Quote Link to comment Share on other sites More sharing options...
Guest Posted October 14, 2003 Share Posted October 14, 2003 (edited) For me worked the tell_a_friend box not any longer, because the sts_display_out function "strip_content_tags" filtered out the needed "</form>" tag on the product_info site. so here's my fix for that issue: // STRIP_CONTENT_TAGS() - Remove text before "body_text" and after "body_text_eof"function strip_content_tags($tmpstr, $commentlabel) { ? // Now lets remove the <tr><td> that the require puts in front of the tableBox ? $tablestart = strpos($tmpstr, "<table"); ? $formstart = strpos($tmpstr, "<form"); ? // If there is a <form> tag before the <table> tag, keep it ? if ($formstart !== false and $formstart < $tablestart) { ? ? $tablestart = $formstart; ? } ? // If empty, return nothing ? if ($tablestart < 1) { ? ? ? ? return? "\n<!-- start $commentlabel //-->\n$tmpstr\n<!-- end $commentlabel //-->\n"; ? } ? ? $tmpstr = substr($tmpstr, $tablestart); // strip off stuff before <table> ? // Now lets remove the </td></tr> at the end of the tableBox output ? // strrpos only works for chars, not strings, so we'll cheat and reverse the string and then use strpos ? $tmpstr = strrev($tmpstr); ? $tableend = strpos($tmpstr, strrev("</table>"), 1); ? $formend = strpos($tmpstr, strrev("</form>"), 1); ? ? // If there is a </form> tag after the </table> tag, keep it ? if ($formend !== false and $formend < $tableend) { ? ? $tableend = $formend; ? } ? $tmpstr = substr($tmpstr, $tableend);? // strip off stuff after <!-- body_text_eof //--> ? // Now let's un-reverse it ? $tmpstr = strrev($tmpstr); ? // print "<hr>After cleaning tmpstr:" . strlen($tmpstr) . ": FULL=[".? htmlspecialchars($tmpstr) . "]<hr>\n"; ? return? "\n<!-- start $commentlabel //-->\n$tmpstr\n<!-- end $commentlabel //-->\n"; } My changes are bold. Hope it helps. But this damn product_reviews_info... $%&?$/ :) Edited October 14, 2003 by fragp Quote Link to comment Share on other sites More sharing options...
beeonline Posted October 14, 2003 Share Posted October 14, 2003 Hi Well this systems does work well and I have now got a differant looking oscommerce site whoo whoo :P But... ;) I want to change some of the boxes widths to, say, 96% how can I do this?? I have tried to make changes to class tableBox in the includes/classes/boxes.php but this changes all of the tables and doesn't look cool at all :( Any ideas Cheers Malc Quote Link to comment Share on other sites More sharing options...
benjmnm Posted October 15, 2003 Share Posted October 15, 2003 Ok.. this is what I currenlty am showing on my OSC main page. Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /home/spiderca/public_html/catalog/includes/functions/database.php:145) in /home/spiderca/public_html/catalog/includes/functions/sessions.php on line 67 Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/spiderca/public_html/catalog/includes/functions/database.php:145) in /home/spiderca/public_html/catalog/includes/functions/sessions.php on line 67 Both of these lines are showing above osc mainpage. http://www.spidercases.com/catalog This is the configure.php program: <?php define('HTTP_SERVER', 'http://www.spidercases.com'); // eg, http://localhost - should not be empty for productive servers define('HTTPS_SERVER', ''); // eg, https://localhost - should not be empty for productive servers define('ENABLE_SSL', false); // secure webserver for checkout procedure? define('HTTP_COOKIE_DOMAIN', 'www.spidercases.com'); define('HTTPS_COOKIE_DOMAIN', ''); define('HTTP_COOKIE_PATH', '/catalog/'); define('HTTPS_COOKIE_PATH', ''); define('DIR_WS_HTTP_CATALOG', '/catalog/'); define('DIR_WS_HTTPS_CATALOG', ''); define('DIR_WS_IMAGES', 'images/'); define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/'); define('DIR_WS_INCLUDES', 'includes/'); define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/'); define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/'); define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/'); define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/'); define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/'); define('DIR_WS_DOWNLOAD_PUBLIC', 'pub/'); define('DIR_FS_CATALOG', '/home/spiderca/public_html/catalog/'); define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/'); define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/'); // 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'); define('STS_USER_CODE', DIR_WS_INCLUDES . 'sts_user_code.php'); // STS: EOADD ?> Now earlier in this posting, i have read that all it was to change the placing of the php ending tag. I have check the tag and everything looks good to me, but it is obvious that i have missed something. Thanks for a great contribute and all your numerous hours helping people like myself. Again, from all of us... thanks. Ben Quote Link to comment Share on other sites More sharing options...
Guest Posted October 15, 2003 Share Posted October 15, 2003 Fragy just wrote with a problem with the product rview. Mine also shows up only one letter in all places where variable should show up. There seems to be a problem when parsing(?) the $template[content]. Any hints?! Quote Link to comment Share on other sites More sharing options...
Guest Posted October 15, 2003 Share Posted October 15, 2003 I've also noticed, that after navigating in some places (for example product_info) the $urlcat_ template variables wont work any longer. I would really appreciate some help on this issues, thanks! Quote Link to comment Share on other sites More sharing options...
Sammy1001 Posted October 15, 2003 Share Posted October 15, 2003 Hi ! My installation of STS is working ok in index.php page, but when I go to any other page, it shows only contents of boxes, I can't see any backgrounds or headers of boxes. What might be the reason for that ? Quote Sammy 1001 Link to comment Share on other sites More sharing options...
Nossie Posted October 16, 2003 Share Posted October 16, 2003 Hi, was wondering if anyone could help me... Is it possible to create multiple templates? e.g having only $content in one file so that I can use a php include to bring it into my site? Or is there a simplier way? I've been trying to find a way to make OSc modular and this is the furthest I've got... can anyone help me here? :( Quote Ian Harvie Link to comment Share on other sites More sharing options...
benjmnm Posted October 16, 2003 Share Posted October 16, 2003 Please will anyone give me a hint as to what i need to do? Clean install? I am showing this on my shopping cart: Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /home/spiderca/public_html/catalog/includes/functions/database.php:145) in /home/spiderca/public_html/catalog/includes/functions/sessions.php on line 67 Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/spiderca/public_html/catalog/includes/functions/database.php:145) in /home/spiderca/public_html/catalog/includes/functions/sessions.php on line 67 Quote Link to comment Share on other sites More sharing options...
Nossie Posted October 16, 2003 Share Posted October 16, 2003 Hi, Does anyone have a download location for the OSC MS2 file?????? Old Pa's site doesnt seem to have sent me my validation request... :( :( :( :( :( :( You know something.... the more I use invision board.... the more I'm beginning to sadly hate it! Long live phpbb & Vb :D anyways *coff* Quote Ian Harvie Link to comment Share on other sites More sharing options...
NetStranger Posted October 16, 2003 Share Posted October 16, 2003 I tried to click the "enlarge image" link on the product info page but it doesn't work. Can anybody help? Quote -- s i g n a t u r e -- Link to comment Share on other sites More sharing options...
benjmnm Posted October 16, 2003 Share Posted October 16, 2003 You can get your download from here: osCommerce Milestone 2 Download It is hosted by sourceforge, so you shouldn't have to many problems. Good luck. Matt Quote Link to comment Share on other sites More sharing options...
DiamondSea Posted October 17, 2003 Author Share Posted October 17, 2003 STS v1.7 has been posted which fixes a problem with displaying the Reviews. The problem is caused by calling /includes/column_left.php, which has the $reviewsbox code in it. It seems that even in the "pure" OSC2.2MS2 if you put the Reviews box in the left hand side, it clobbers it's values in the product_reviews_info.php script. I moved the $reviewsbox code into column_right.php and that seems to have fixed it. CHANGELOG: v1.7 ADD: Shows STS_VERSION when using STS_DEBUGGING mode FIX: Moved the ReviewsBox include from column_left.php to column_right.php due to it clobbering the values on the product_reviews_info.php page ADD: Details to README.txt Quote Simple Template System (STS) Layout your site with 1 (or more) HTML file! Download STS: http://www.oscommerce.com/community/contributions,1524 Support: http://www.oscommerce.com/forums/index.php?showtopic=58541 Link to comment Share on other sites More sharing options...
Guest Posted October 17, 2003 Share Posted October 17, 2003 Can anyone help with what I am sure is a simple issue. I have successfully implemented the STS contribution but now I have nothing but a one-liner on the index page (www.printmad.com/catalog). If I view the index.php page through the admin screen I can see all the standard wording regarding "define('TEXT_MAIN', 'This is a demonstration online-shop, etc etc". But if you take a look at my main web page you will see none of this is visible. What has Happened? Quote Link to comment Share on other sites More sharing options...
Guest Posted October 17, 2003 Share Posted October 17, 2003 As an update - I notice that the catalog/index.php page does not contain a line referring to <?php echo TEXT_MAIN; ?> although a pre-STS index.php page does. When I try adding the line to the new index page I get the following error :- CURRENT Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /home/printmad/public_html/catalog/index.php:1) in /home/printmad/public_html/catalog/includes/functions/sessions.php on line 67 My index page now does include tha default OSCommerce text but with the above message shown above the page. Quote Link to comment Share on other sites More sharing options...
Nossie Posted October 18, 2003 Share Posted October 18, 2003 (edited) You can get your download from here Hi, sorry benjmnm... err I dont know what I did there but that was a reply to the wrong thread *sighs* I was talking about the OSc phpbb2 intergration not the download for ms2 :( :D ok, Now this I do wonder if someone can help me with... I use php zone includes for a lot of my stuff (http://www.4development.com/?zone=womenswear) for example Would it be possible to redirect the information from www.4development.com/store/index.php and use my main index.php for the template? (http://www.4development.com/index.php) due to the nature of this system I only have things being loaded from the index file directly so wouldnt have to worry about multiple files I think I might be a bit in the wrong direction here but I'm almost sure I might be in the right direction? Really the guy I'm doing it for wants me to intergrate the store with his (old) site rather than intergrate his old site with the store any thoughts on the matter would be appreciated... cheers, Ian. Edited October 18, 2003 by Nossie Quote Ian Harvie Link to comment Share on other sites More sharing options...
rhaz Posted October 18, 2003 Share Posted October 18, 2003 Installed the addon and i get this error now. Any ideas? Am i suppose to put the sts_user_code file a certain place? Warning: main(STS_USER_CODE): failed to open stream: No such file or directory in /usr/www/virtual/planet-diesel/catalog/includes/sts_display_output.php on line 82 Fatal error: main(): Failed opening required 'STS_USER_CODE' (include_path='.:/usr/share/pear') in /usr/www/virtual/planet-diesel/catalog/includes/sts_display_output.php on line 82 thanks -Nick Same error and im stumped :( Any help plz Quote Link to comment Share on other sites More sharing options...
DiamondSea Posted October 18, 2003 Author Share Posted October 18, 2003 As an update - I notice that the catalog/index.php page does not contain a line referring to <?php echo TEXT_MAIN; ?> although a pre-STS index.php page does. When I try adding the line to the new index page I get the following error :- CURRENT Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /home/printmad/public_html/catalog/index.php:1) in /home/printmad/public_html/catalog/includes/functions/sessions.php on line 67 My index page now does include tha default OSCommerce text but with the above message shown above the page. STS does not replace the index.php file, or any files in the /catalog/ directory. The only changes it makes are in the /catalog/includes/ directory. If there is something has changed in the index.php file, it is from another contribution or a typo. Try installing a clean version of OSC2.2MS2 and get it working first. Then after it is working, copy the STS files into place and you should have no problem. - Brian Quote Simple Template System (STS) Layout your site with 1 (or more) HTML file! Download STS: http://www.oscommerce.com/community/contributions,1524 Support: http://www.oscommerce.com/forums/index.php?showtopic=58541 Link to comment Share on other sites More sharing options...
DiamondSea Posted October 18, 2003 Author Share Posted October 18, 2003 Installed the addon and i get this error now. Any ideas? Am i suppose to put the sts_user_code file a certain place? Warning: main(STS_USER_CODE): failed to open stream: No such file or directory in /usr/www/virtual/planet-diesel/catalog/includes/sts_display_output.php on line 82 Fatal error: main(): Failed opening required 'STS_USER_CODE' (include_path='.:/usr/share/pear') in /usr/www/virtual/planet-diesel/catalog/includes/sts_display_output.php on line 82 thanks -Nick Same error and im stumped :( Any help plz It should go in the /catalog/includes/ directory. I missed that in the README.txt installation instructions in v1.6, but it is now included in the v1.7 instructions. However, from the look of your error message, it looks like you had an older installation of STS and didn't add the proper lines to your /catalog/includes/configure.php file. Compare the bottom lines of your configure-sample.php with the ones in your production configure.php files in the /catalog/includes directory. I suspect your are missing the STS_USER_CODE definition (and possibly others). - Brian Quote Simple Template System (STS) Layout your site with 1 (or more) HTML file! Download STS: http://www.oscommerce.com/community/contributions,1524 Support: http://www.oscommerce.com/forums/index.php?showtopic=58541 Link to comment Share on other sites More sharing options...
DiamondSea Posted October 18, 2003 Author Share Posted October 18, 2003 (edited) I tried to click the "enlarge image" link on the product info page but it doesn't work. Can anybody help? Have you already clicked on it and left the window open? If so, it will open the next image in the same window, which will probably be hidden from view behind your current window. Are there any other contributions installed that might conflict with it? - Brian Edited October 18, 2003 by DiamondSea Quote Simple Template System (STS) Layout your site with 1 (or more) HTML file! Download STS: http://www.oscommerce.com/community/contributions,1524 Support: http://www.oscommerce.com/forums/index.php?showtopic=58541 Link to comment Share on other sites More sharing options...
Guest Posted October 19, 2003 Share Posted October 19, 2003 Hey there...firstly I'd like to say that I LOVE YOU!! ;) You've made the absolute best contribution since sliced bread... I've been running your most recent version for a while now, without ever seeing another contribution that I was interested in, until last night... I'm not sure if I'm posting in the right place or not, but I was able to install this other contr. with no problems, however on a site with sts installed, im not able to get it to work. I'm pretty sure i have this right::: (user code php) $sts_block_name = 'recently_viewed'; require(STS_START_CAPTURE); require(DIR_WS_BOXES . 'recently_viewed.php'); require(STS_STOP_CAPTURE); $template['recently_viewed'] = strip_unwanted_tags($sts_block['recently_viewed'], 'recently_viewed'); (not positive though) I used that block to make a new line in the sts_template, then added $recently_viewed to the template, and continue to see "$recently_viewed in my catalog pages... I followed all instructions to a T when installing this mod, it's working in phpmysql, im able to see the instances running, however im unable to see the mod on the catalog pages... http://cribfx.com/catalog is the cart that I'm working on, this is seriously stressing me out lol Any advice on what I may be doing wrong? Thanks in advance for any help :) Christina Quote Link to comment Share on other sites More sharing options...
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.