Jump to content
rigadin2

[Contribution] STS v4

Recommended Posts

Hello. I just tried today to upload the STS v4.6 for MS2 for the first time so i don't have much experience about it. after i uploaded all the files, i found an error when i tried to load my website, here is the error ( Server Requirement Error: register_globals is disabled in your PHP configuration. This can be enabled in your php.ini configuration file or in the .htaccess file in your catalog directory.)

 

how can i fix that because i'm really curious to try to STS :) thanks in advance

Share this post


Link to post
Share on other sites

Hello. I just tried today to upload the STS v4.6 for MS2 for the first time so i don't have much experience about it. after i uploaded all the files, i found an error when i tried to load my website, here is the error ( Server Requirement Error: register_globals is disabled in your PHP configuration. This can be enabled in your php.ini configuration file or in the .htaccess file in your catalog directory.)

 

how can i fix that because i'm really curious to try to STS :) thanks in advance

 

I don't think this is related to STS. Was your store working before installing STS?

 

And why please do you use MS2? Do you have any archeological interest?

Share this post


Link to post
Share on other sites

yes my store is working normally without STS.

 

i don't know why im using MS2, i'm new to those stuff and i don't know if i can upgrade to something new or not. i hope that you can give me your advice :)

Share this post


Link to post
Share on other sites

I have STS installed on my site. Not in any way related to STS which is the most helpful contribution in the world but because I had some problems iwth some other contributions - I ended up paying someone to work on my site - they did that and I paid up only to find they disabled STS and now it doesn't load in Admin. I'm an STS devotee so have no idea how to edit my site without it. I have offered the contractor money to fix it but he will not respond. Can anyone help fix this. The error in Admin when I selet the STS module is:

Warning: main(/home/mette/public_html/catalog/includes/languages/english/modules/sts/sts_home.php) [function.main]: failed to open stream: No such file or directory in /home/mette/public_html/catalog/admin/modules.php on line 139

Warning: main(/home/mette/public_html/catalog/includes/languages/english/modules/sts/sts_home.php) [function.main]: failed to open stream: No such file or directory in /home/mette/public_html/catalog/admin/modules.php on line 139

Warning: main() [function.include]: Failed opening '/home/mette/public_html/catalog/includes/languages/english/modules/sts/sts_home.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/mette/public_html/catalog/admin/modules.php on line 139

Fatal error: Cannot redeclare class sts_index in /home/mette/public_html/catalog/includes/modules/sts/sts_index.php on line 15

 

If anyone can help I'd really appreciate it I'm totally stuck.

 

Thanks

Share this post


Link to post
Share on other sites

I'm starting to pull my hair out now, and I've not got that much to start with.

 

I have just installed STSv4.6, as per the instructions, on a clean install of osCommerce 2.2-MS2. The install is very straight forward.

 

Anyhow, I installed the Default STS Template, then clicked on edit, as per the User Guide. Click on true to Enable Templates and then click on Update. No change was made to the Default STS Template configuration.

 

I tried this again and still the same results. There are NO error messages displayed.

 

I have checked that all the files required have been uploaded to the server and they appear to be.

 

Does anyone have any ideas why changes are not being made to the database?

 

Thanks in advance

 

Russell

Share this post


Link to post
Share on other sites

I'm starting to pull my hair out now, and I've not got that much to start with.

 

I have just installed STSv4.6, as per the instructions, on a clean install of osCommerce 2.2-MS2. The install is very straight forward.

 

Anyhow, I installed the Default STS Template, then clicked on edit, as per the User Guide. Click on true to Enable Templates and then click on Update. No change was made to the Default STS Template configuration.

 

I tried this again and still the same results. There are NO error messages displayed.

 

I have checked that all the files required have been uploaded to the server and they appear to be.

 

Does anyone have any ideas why changes are not being made to the database?

 

Thanks in advance

 

Russell

 

For those who may have a similar problem to this. I have found that the ability to save data was not just restricted to the STS module but all modules.

 

Further digging around in the forum found the solution in this post on the forum.

 

Russell

Share this post


Link to post
Share on other sites

Hi,

 

I was wondering if someone could help me.

 

I've installed STS 4.6 on OS 2.2 RC2 and I think it's absolutely FANTASTIC!!

 

I have one niggle which I've tried searching all day but have had no joy.

 

I'm using "freeosc_061" template and my product page content doesn't fit inside the frame.

 

Basically, I think if I can change the "$optionnames$" and "$optionchoices$" font size I should be OK (unless there is a way to make the whole body bigger (if that makes sense?). On my blank template I added " min-width= xxxx px" which worked a treat, and I tried it on this template but had no joy.

 

 

Also, is there a way to have a paragraph after each product attribute (option) as mine is quite crammed in!

 

I also need to change the width of the columns as it is squashing the option names onto a new line.

 

I appreciate all your assistance.

 

And again, great GREAT product!

 

Best regards,

Lee

Edited by Rogar1471

Share this post


Link to post
Share on other sites

I have version 2.3.1 installed and was really wanting to use STS, but the last update is more than a year ago. It doesn't look like it's compatible to be used on 2.3.1. Has anyone tried it, and does anyone have any advice before I break my store, which isn't public yet (but would like to keep it running :P )?

Share this post


Link to post
Share on other sites

Hello,

I'm quite new to OSC and I've just fininshed my 1st attempt to install STS on my v2.2 RC2 store.

 

I believe to have done all the steps properly (I went with manual installation and modified my files manually) and now, in admin/modules/sts I'm getting a single line that says "Module Directory: http://localhost/MY_SITE_NAME/includes/modules/sts/" with the installation button next to it but nothing happens when I click "Install".

 

What could be the issue? Thanks.

Edited by bikey77

Share this post


Link to post
Share on other sites

Hi Bill, This is a bit embarrassing but I'm stuck before I even install. I've got a fresh install of OsCommerce 2.3.1, but I don't understand what 2.2MS2, 2.2RC1 and 2.2RC2 means. Can you please enlighten me thanks?

Share this post


Link to post
Share on other sites

Hi Bill, This is a bit embarrassing but I'm stuck before I even install. I've got a fresh install of OsCommerce 2.3.1, but I don't understand what 2.2MS2, 2.2RC1 and 2.2RC2 means. Can you please enlighten me thanks?

 

That are the osCommece versions STS is compatible with. The newest of them is RC2a and that is the what STS is still compatible with.

 

You can't use STS with version 2.3.1

Share this post


Link to post
Share on other sites

Does this work with 2.3.1?

 

 

STS is NOT compatible with v2.3.1

 

 

 

 

 

Chris


:|: Was this post helpful ? Click the LIKE THIS button :|:

 

See my Profile to learn more about add ons, templates, support plans and custom coding (click here)

Share this post


Link to post
Share on other sites

 

That are the osCommece versions STS is compatible with. The newest of them is RC2a and that is the what STS is still compatible with.

 

You can't use STS with version 2.3.1

 

Thanks for your help George. Do you know if I can just use a simple template for v2.3 then and adjust the placement with the blank template example that's included?

 

Kind regards

Eva

Share this post


Link to post
Share on other sites

Thanks for your help George. Do you know if I can just use a simple template for v2.3 then and adjust the placement with the blank template example that's included?

 

Eva, I don;t understand exactly what you mean with "simple template", "blank template" and what you want to replace.

 

If you refer to the templates that are included in the STS package, then no, you can't use them in any way. What you can do is to grab their layout/design and use it as a base to start designing a 2.3.1 store from the beginning

 

Version 2.3.1 is much more easy to handle in design terms, you can achieve a lot with for example with a new theme from themeroller ( you can read here how to install it) There is also an addon available called "theme switcher"

 

In general I would say forget STS, it has been a great tool in the past, and still is for previous osCommerce versions, but it's not relevant anymore for new stores

Share this post


Link to post
Share on other sites

Hello,

 

I tried to install this on oscmax after seeing this vague post in the oscmax forum

http://www.oscmax.co...system-sts.html

 

However, it is impossible to do a manual install as many of the files that are required to edit

do not exist in oscmax.

 

Can I install this on oscmax?

 

 

This is not the oscMax forum so you question would be better asked in their forum.

 

 

 

Chris


:|: Was this post helpful ? Click the LIKE THIS button :|:

 

See my Profile to learn more about add ons, templates, support plans and custom coding (click here)

Share this post


Link to post
Share on other sites

Hi, I have just installed this contribution and amended all my files as requested in the version 4.6_1. I have checked and re-checked all my changes but when I log on to the admin side and click the modules link I get a white screen. I have not only re-read the instructions but checked that I have made the right changes in the correct places by using a file comparison tool and checking it against the files supplied for a fresh install.

 

What could be causing this please?

 

Thanks, Michael

Share this post


Link to post
Share on other sites

Hi, I have just installed this contribution and amended all my files as requested in the version 4.6_1. I have checked and re-checked all my changes but when I log on to the admin side and click the modules link I get a white screen. I have not only re-read the instructions but checked that I have made the right changes in the correct places by using a file comparison tool and checking it against the files supplied for a fresh install.

 

What could be causing this please?

 

Thanks, Michael

 

I have just done some testing and amended the code piece by piece and tested the admin side after each change and the white screen is appearing after changing the code in catalog/admin/modules.php.

 

This piece of code is causing the problems:

 

Find:

 

		  eval('$keys .= ' . $value['set_function'] . "'" . $value['value'] . "', '" . $key . "');");
	} else {

 

Replace with:

 

		  eval('$keys .= ' . $value['set_function'] . "'" . $value['value'] . "', '" . $key . "');");
	// STS V4.6 drop start
	} else {
		if($key == 'MODULE_STS_TEMPLATE_FOLDER'){
			$dir_name = array();
			if ($handle = opendir('../'.MODULE_STS_TEMPLATES_FOLDER.'/')) {
			   while (false !== ($file = readdir($handle))) {
					$pos = strpos($file, ".");
					if($pos === false){
						$dir_name[] = array("id" => $file, "text" => $file);
						$i++;
					}
				}
				closedir($handle);
			}
			$keys .= tep_draw_pull_down_menu('configuration[MODULE_STS_TEMPLATE_FOLDER]', $dir_name, $value['value']);
		}else{
			$keys .= tep_draw_input_field('configuration[' . $key . ']', $value['value']);
		}
	}
	// STS V4.6 drop end

 

Once I do this change then I get a white screen as soon as I click the link Modules in my admin.

 

I have discovered the problem was that I had an identical piece of code just below the change which was:

 

           	 $keys .= tep_draw_input_field('configuration[' . $key . ']', $value['value']);
           }

 

So once I removed this the page did not go white anymore.

 

Hope this helps someone else.

 

Thank you

Edited by offie

Share this post


Link to post
Share on other sites

 

I have discovered the problem was that I had an identical piece of code just below the change which was:

 

		   	 $keys .= tep_draw_input_field('configuration[' . $key . ']', $value['value']);
		}

 

So once I removed this the page did not go white anymore.

 

 

Just to clarify the above, the extra piece of code that removed was also written in the "change code" so these were two instances of the same two lines above. perhaps the install instructions should include this piece of code when telling you what to look for and change. However it is quite possible that other versions of Osc do not have that line installed and I have not checked to see so you can check your own versions instead.

 

Thanks again.

Edited by offie

Share this post


Link to post
Share on other sites

Hi. I'm in the process of putting a Facebook like button on my products. All working well with STS and the button works but it would be handy to have the product image appear on the Facebook page who liked me (at the moment facebook seems to pick a random image on the page and not the product image). To force that, I need to put (in the header of the product page) the following code...

 

 

<meta property="og:image" content="<?php print 'http://' . $_SERVER['SERVER_NAME'] . DIR_WS_HTTP_CATALOG . DIR_WS_IMAGES . $product_info['products_image']; ?>" />

 

At the moment, if I put that in my product_info.php template I get...

 

<meta property="og:image" content="http://www.domain.co.uk/images/" />

 

i.e. the actual image $product_info['products_image'] isn't tagged onto the end.

 

Excuse my lack of knowledge but I'm assuming that's a mysql array that it's working on? Is there a way of getting the image inserted into the code?

 

Thanks

Martin

Share this post


Link to post
Share on other sites

Hey Guys,

 

306 pages is alot to go thru. I'm just wanting to know does STS work with 2.3.1? I've downloaded the 4.6 version but there are only folders for MS2 RC1 & 2. Any help would be a great help

 

Thanks

Share this post


Link to post
Share on other sites

306 pages is alot to go thru. I'm just wanting to know does STS work with 2.3.1? I've downloaded the 4.6 version but there are only folders for MS2 RC1 & 2. Any help would be a great help

 

Yes, 306 pages are many, but 1 page back not -> the answer on the previews page

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×