Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

[Contribution] STS v4


Guest

Recommended Posts

So what else can I try??

What can be the problem?

The easiest solution would be to compare your index.php page with a stock osC index.php page using a file comparison utility such as Beyond Compare or WinMerge. This should point out the differences right away.

Bill Kellum

 

Sounds Good Productions

STS Tutorials & more: STSv4.6, STS Add-ons (STS Power Pack), STS V4 Forum STS Forum FREE TEMPLATE

Link to comment
Share on other sites

My site is saying Error on page... but it's showing as I want it to.

 

Why does this happend?

 

Is it something the site "want to show" but I haven't got it in my default page?

 

Jessica

 

 

 

www.rcmaffian.se

Jessica Fuchs

Link to comment
Share on other sites

Hi, I'm still trying to get this php thing down and I've ran into a snag.

 

 

On the main catalog page I'm getting the fallowing error message after I've attempted the install:

 

Fatal error: Call to undefined function: tablebox() in /home/aet/public_html/catalog/includes/classes/boxes.php on line 306

 

I don't know if this would cause it but, its the only thing I can see that is different... I've used a compare program and I've made the files in boxes.php identical except for one small difference of another contribution called addional images at the end of the file which looks like this:

 

class productListingBox extends tableBox {
   function productListingBox($contents) {
     $this->table_parameters = 'class="productListing"';
     $this->tableBox($contents, true);
   }
 }



 // BOF: Additional Images
 class imagesBox extends tableBox {      
   function imagesBox($contents) {        
     $info_box_contents = array();        
     $info_box_contents[] = array('text' => $this->imagesBoxContents($contents));        
     $this->table_cellpadding = '1';        
     $this->tableBox($info_box_contents, true);      
 }
   function imagesBoxContents($contents) {
     $this->table_cellpadding = '4';
     $this->table_parameters = 'class="imagesBoxContents"';
     return $this->tableBox($contents);
   }
 }
 // EOF: Additional Images

 // START  STS 4.4: optionally use template infobox_product_listing.php.html around product listing table.
		// If template does not exist, do not use default infobox template but use standard osC.
    global $sts;
    if ($sts->infobox_enabled == true && file_exists(STS_TEMPLATE_DIR."boxes/infobox_product_listing.php.html")) {
	    //$this->infoBoxHeaderTemplate("","");
	    $this->infoBoxTemplate($this->tablebox($contents));
    } else {
       $this->table_parameters = 'class="productListing"';
       $this->tableBox($contents, true);
		}
	  // STOP STS

?>

 

 

 

Any help with this would be greatly appreciated, as it has been driving me crazy for hours.

Link to comment
Share on other sites

Can you tell me whre to find this code?

 

I've been looking everywhere (I think) but I can't find it?

 

     <tr> 
         <td height="400" valign="top" background="bilder/bakgrund_main.gif"><table width="100%" border="0" cellspacing="5" cellpadding="0">
             <tr>
               <td><td align="right"><p></p></td></tr>
               <tr>
               <td width="129"><p>
<!-- start categorybox //-->


<table width="100%" border="0" cellspacing="0" cellpadding="0" style="border-collapse: collapse" bordercolor="#111111">
 <tr>
   <td width="11">
   <img border="0" src="images/infobox/corner_left.gif" width="11" height="14"></td>
   <td background="images/infobox_03.gif" class="infoBoxHeading" width="1428"><table border="0" width="100%" cellspacing="0" cellpadding="0">
 <tr>
   <td width="100%" class="infoBoxHeading">Kategorier</td>
 </tr>
</table>
</td>
   <td width="92" style="background-repeat: norepeat" bgcolor="#C0C0C0"></td>
   <td width="11" background="images/infobox_04.gif" style="background-repeat: norepeat">
   <img border="0" src="images/infobox/corner_right.gif" width="11" height="14"></td>
 </tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0" bgcolor="#C0C0C0" style="border-collapse: collapse" bordercolor="#111111">
 <tr>
   <td bgcolor="#C0C0C0"> </td>
   <td bgcolor="#DBF1FF"><table border="0" width="100%" cellspacing="0" cellpadding="3" class="infoBoxContents">
 <tr>
   <td><img src="images/pixel_trans.gif" border="0" alt="" width="100%" height="1"></td>
 </tr>
 <tr>
   <td class="boxText"><a href="http://rcmaffian.se/oscommerce_st/catalog/index.php?cPath=2">BILAR-></a><br><a href="http://rcmaffian.se/oscommerce_st/catalog/index.php?cPath=3">Bil tillbehör</a><br><a href="http://rcmaffian.se/oscommerce_st/catalog/index.php?cPath=32">Bil motorer-></a><br><a href="http://rcmaffian.se/oscommerce_st/catalog/index.php?cPath=21">Bil reservdelar-></a><br><a href="http://rcmaffian.se/oscommerce_st/catalog/index.php?cPath=1">FLYGPLAN-></a><br><a href="http://rcmaffian.se/oscommerce_st/catalog/index.php?cPath=30">Flyg tillbehör-></a><br><a href="http://rcmaffian.se/oscommerce_st/catalog/index.php?cPath=33">Flyg motorer-></a><br><a href="http://rcmaffian.se/oscommerce_st/catalog/index.php?cPath=31">Flyg reservdelar</a><br><a href="http://rcmaffian.se/oscommerce_st/catalog/index.php?cPath=34">HELIKOPTER</a><br></td>
 </tr>
 <tr>
   <td><img src="images/pixel_trans.gif" border="0" alt="" width="100%" height="1"></td>
 </tr>
</table>
</td>
   <td> </td>
 </tr>
 <tr>
   <td width="30"> </td>
   <td width="100%"> </td>
   <td width="31"> </td>
 </tr>
</table>            
<!-- end categorybox //-->
</p></td>

 

 

I want to change the colors because it doesn't look good at all at my site.

 

http://rcmaffian.se/oscommerce_st/catalog/products.php

 

Regards

Jessica

Jessica Fuchs

Link to comment
Share on other sites

HI,

I have a big problem for more than a week,

I get an error on my index page:

 

Languages

 

Error!

 

Unable to determine the page link!

 

With the great help of Bill Kellum I manage to understand a few things,

when i go to www.mydomain.com - i get this eror(this is the only thing displays)

BUT

if i go to a specific page, for example www.mydomain.com/index.php- i get a this page just fine!

If so-where is the broken code?(in which file? what should i look for?)

 

Can you help me?

Thanks (and thanks again to biil..)

Link to comment
Share on other sites

Can you tell me whre to find this code?

 

I've been looking everywhere (I think) but I can't find it?

 

     <tr> 
         <td height="400" valign="top" background="bilder/bakgrund_main.gif"><table width="100%" border="0" cellspacing="5" cellpadding="0">
             <tr>
               <td><td align="right"><p></p></td></tr>
               <tr>
               <td width="129"><p>
<!-- start categorybox //-->
<table width="100%" border="0" cellspacing="0" cellpadding="0" style="border-collapse: collapse" bordercolor="#111111">
 <tr>
   <td width="11">
   <img border="0" src="images/infobox/corner_left.gif" width="11" height="14"></td>
   <td background="images/infobox_03.gif" class="infoBoxHeading" width="1428"><table border="0" width="100%" cellspacing="0" cellpadding="0">
 <tr>
   <td width="100%" class="infoBoxHeading">Kategorier</td>
 </tr>
</table>
</td>
   <td width="92" style="background-repeat: norepeat" bgcolor="#C0C0C0"></td>
   <td width="11" background="images/infobox_04.gif" style="background-repeat: norepeat">
   <img border="0" src="images/infobox/corner_right.gif" width="11" height="14"></td>
 </tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0" bgcolor="#C0C0C0" style="border-collapse: collapse" bordercolor="#111111">
 <tr>
   <td bgcolor="#C0C0C0"> </td>
   <td bgcolor="#DBF1FF"><table border="0" width="100%" cellspacing="0" cellpadding="3" class="infoBoxContents">
 <tr>
   <td><img src="images/pixel_trans.gif" border="0" alt="" width="100%" height="1"></td>
 </tr>
 <tr>
   <td class="boxText"><a href="http://rcmaffian.se/oscommerce_st/catalog/index.php?cPath=2">BILAR-></a><br><a href="http://rcmaffian.se/oscommerce_st/catalog/index.php?cPath=3">Bil tillbehör</a><br><a href="http://rcmaffian.se/oscommerce_st/catalog/index.php?cPath=32">Bil motorer-></a><br><a href="http://rcmaffian.se/oscommerce_st/catalog/index.php?cPath=21">Bil reservdelar-></a><br><a href="http://rcmaffian.se/oscommerce_st/catalog/index.php?cPath=1">FLYGPLAN-></a><br><a href="http://rcmaffian.se/oscommerce_st/catalog/index.php?cPath=30">Flyg tillbehör-></a><br><a href="http://rcmaffian.se/oscommerce_st/catalog/index.php?cPath=33">Flyg motorer-></a><br><a href="http://rcmaffian.se/oscommerce_st/catalog/index.php?cPath=31">Flyg reservdelar</a><br><a href="http://rcmaffian.se/oscommerce_st/catalog/index.php?cPath=34">HELIKOPTER</a><br></td>
 </tr>
 <tr>
   <td><img src="images/pixel_trans.gif" border="0" alt="" width="100%" height="1"></td>
 </tr>
</table>
</td>
   <td> </td>
 </tr>
 <tr>
   <td width="30"> </td>
   <td width="100%"> </td>
   <td width="31"> </td>
 </tr>
</table>            
<!-- end categorybox //-->
</p></td>

I want to change the colors because it doesn't look good at all at my site.

 

http://rcmaffian.se/oscommerce_st/catalog/products.php

 

Regards

Jessica

 

 

 

OK, I FOUND IT! IT DIDN'T TAKE MORE THAN 24 - 30 HOURS. :huh:

 

BUT I'M HAPPY NOW :rolleyes:

 

/JESSICA

Jessica Fuchs

Link to comment
Share on other sites

Thanks for the help Chris.

 

Line 306 is this line....

 

 

$this->tableBox($contents, true);

 

 

This is the very last line of the script.

 

Here is the line in more of context:

 

// START  STS 4.4: optionally use template infobox_product_listing.php.html around product listing table.
		// If template does not exist, do not use default infobox template but use standard osC.
	global $sts;
	if ($sts->infobox_enabled == true && file_exists(STS_TEMPLATE_DIR."boxes/infobox_product_listing.php.html")) {
		//$this->infoBoxHeaderTemplate("","");
		$this->infoBoxTemplate($this->tablebox($contents));
	} else {
	$this->table_parameters = 'class="productListing"';
	$this->tableBox($contents, true);
		}
	  // STOP STS

Link to comment
Share on other sites

Hey Guys

 

I have v4.1 currently installed for my site and wanting to upgrade, can i upgrade directly to the 4.5 version, or do i need to go through each version step

 

Thanks

 

Tarek

RACESPEC

Tarek, the upgrade will be fairly simple coming from 4.1. Save a backup copy of your sts_user_code.php and general.php files if you happened to have any custom tags created in those files. Follow the upgrade instructions that are included in the installation text. You will really like the added infobox templates, home page template, popup template, shop images dependent on template folder, and alot more.

Enjoy!

Bill Kellum

 

Sounds Good Productions

STS Tutorials & more: STSv4.6, STS Add-ons (STS Power Pack), STS V4 Forum STS Forum FREE TEMPLATE

Link to comment
Share on other sites

My site is saying Error on page... but it's showing as I want it to.

 

Why does this happend?

 

Is it something the site "want to show" but I haven't got it in my default page?

 

Jessica

 

 

 

www.rcmaffian.se

Jessica, you had some "white space" and some errors from removing the new products box code. I sent you a revised index.php that should correct those errors.

Bill Kellum

 

Sounds Good Productions

STS Tutorials & more: STSv4.6, STS Add-ons (STS Power Pack), STS V4 Forum STS Forum FREE TEMPLATE

Link to comment
Share on other sites

Bill

 

Sounds great, i hope it works well, i've gone through and done the installation and come across the following issues

 

Template file does not exist: [MODULE_STS_TEMPLATES_FOLDERfull/sts_template.html]

Fatal error: Cannot redeclare sts_strip_unwanted_tags() (previously declared in /home/racespec/public_html/catalog/includes/functions/sts.php:17) in /home/racespec/public_html/catalog/includes/functions/sts.php on line 17

 

I have noticed in the Module Section of Admin, i have 2 STS Tabs aswell

 

Thanks

 

Tarek

RACESPEC

Edited by racespec
Link to comment
Share on other sites

Thanks for the help Chris.

 

Line 306 is this line....

$this->tableBox($contents, true);

This is the very last line of the script.

 

Here is the line in more of context:

 

// START  STS 4.4: optionally use template infobox_product_listing.php.html around product listing table.
		// If template does not exist, do not use default infobox template but use standard osC.
	global $sts;
	if ($sts->infobox_enabled == true && file_exists(STS_TEMPLATE_DIR."boxes/infobox_product_listing.php.html")) {
		//$this->infoBoxHeaderTemplate("","");
		$this->infoBoxTemplate($this->tablebox($contents));
	} else {
	$this->table_parameters = 'class="productListing"';
	$this->tableBox($contents, true);
		}
	  // STOP STS

 

After your modifications (you have added some new classes do display images in a box right?), the STS 4.4 code is at the wrong place, it is like "outside" of everything, so can't work. I think you should start again from a clean boxes.php class and add your modifications at the end of the file.

 

- Chris "Rigadin2"

Link to comment
Share on other sites

HI,

I have a big problem for more than a week,

I get an error on my index page:

 

Languages

 

Error!

 

Unable to determine the page link!

 

With the great help of Bill Kellum I manage to understand a few things,

when i go to www.mydomain.com - i get this eror(this is the only thing displays)

BUT

if i go to a specific page, for example www.mydomain.com/index.php- i get a this page just fine!

If so-where is the broken code?(in which file? what should i look for?)

 

Can you help me?i'm about to loose this job....

Thanks

Edited by sefimor
Link to comment
Share on other sites

This error message is built in includes/functions/html_output.php, function tep_href_link, when the first parameter is empty. This parameter is the destination page of a link.

 

It means that somewhere in your store you have a call to this function with an empty first parameter.

 

Are you using several templates? Have you placed php code directly inside templates? Is it same when STS is disabled?

 

You can use a program like TextPad from Helios Software Solutions to make a search for the function in all your files, you'll then see all the lines where it is used and you'll be able to find the missing parameter.

 

- Chris "Rigadin2"

Link to comment
Share on other sites

This error message is built in includes/functions/html_output.php, function tep_href_link, when the first parameter is empty. This parameter is the destination page of a link.

 

It means that somewhere in your store you have a call to this function with an empty first parameter.

 

Are you using several templates? Have you placed php code directly inside templates? Is it same when STS is disabled?

 

You can use a program like TextPad from Helios Software Solutions to make a search for the function in all your files, you'll then see all the lines where it is used and you'll be able to find the missing parameter.

 

- Chris "Rigadin2"

 

HI

'

I'm using several templates that i made,and did placed phph code in my template,is it a problem?

it worked fine untill last week.

it is the same when sts disabled. even if i install new sts i get the same...

here is part of the code in includes/functions/html_output.php:

// The HTML href link wrapper function
 function tep_href_link($page = '', $parameters = '', $connection = 'NONSSL', $add_session_id = true, $search_engine_safe = true) {
   global $request_type, $session_started, $SID;

   if (!tep_not_null($page)) {
     die('</td></tr></table></td></tr></table><br><br><font color="#ff0000"><b>Error!</b></font><br><br><b>Unable to determine the page link!<br><br>');
   }

 

I appreciate the help

Link to comment
Share on other sites

Not a problem to use several templates, but it could explain why it is working on some pages. But if you say that the problem is same without STS, then the problem is not in a template.

 

As I proposed before, the fastest way is to get Textpad (they have a 30-days trial version), then search for tep_href_link in all your files and then check the results for an empty first parameter where function is called.

 

- Chris

Link to comment
Share on other sites

This error message is built in includes/functions/html_output.php, function tep_href_link, when the first parameter is empty. This parameter is the destination page of a link.

 

It means that somewhere in your store you have a call to this function with an empty first parameter.

 

Are you using several templates? Have you placed php code directly inside templates? Is it same when STS is disabled?

 

You can use a program like TextPad from Helios Software Solutions to make a search for the function in all your files, you'll then see all the lines where it is used and you'll be able to find the missing parameter.

 

- Chris "Rigadin2"

SO,how come even when i delete all of my store and install a fresh new Oscommerce with a new database i get the same error?

Bill Kellum told :"something has to be lingering from your old installation to be causing you problems."

What can it be?(a code problem?database?)

I know my host is not the problem.

 

It does'nt make saneness to me.

 

Regards

Link to comment
Share on other sites

I haved posted before in this thread but got no response. I have a couple of issues on a new OSC site with an STS4 template and need to iron them out before I show the client.

 

 

The site is https://secure.purposefulintention.com/

 

1. On the front page, "New Products for April" is listed twice. How do I fix that?

2. On another note related, if I don't want to show new products, how do I remove that? The only thing I can find in the template is $content for that cell.

 

Thanks.

Link to comment
Share on other sites

I haved posted before in this thread but got no response. I have a couple of issues on a new OSC site with an STS4 template and need to iron them out before I show the client.

 

 

The site is https://secure.purposefulintention.com/

 

1. On the front page, "New Products for April" is listed twice. How do I fix that?

2. On another note related, if I don't want to show new products, how do I remove that? The only thing I can find in the template is $content for that cell.

 

Thanks.

Link to comment
Share on other sites

I haved posted before in this thread but got no response. I have a couple of issues on a new OSC site with an STS4 template and need to iron them out before I show the client.

 

 

The site is https://secure.purposefulintention.com/

 

1. On the front page, "New Products for April" is listed twice. How do I fix that?

2. On another note related, if I don't want to show new products, how do I remove that? The only thing I can find in the template is $content for that cell.

 

Thanks.

Link to comment
Share on other sites

I haved posted before in this thread but got no response. I have a couple of issues on a new OSC site with an STS4 template and need to iron them out before I show the client.

The site is https://secure.purposefulintention.com/

 

1. On the front page, "New Products for April" is listed twice. How do I fix that?

2. On another note related, if I don't want to show new products, how do I remove that? The only thing I can find in the template is $content for that cell.

 

Thanks.

 

 

I APOLOGISE for the multiple posts. It took forever to post (like 10 minutes) so I had stopped by browser and hit Post 2 more times.

 

Moderator, please delete the dupes.

Link to comment
Share on other sites

While working on unsuccessful solutions to the above posts, I upgraded from 4.3 to 4.5. I get a blank page on the first page. I have narrowed it down to the following code in includes/application_top.php:

  // START STS 4.5
require (DIR_WS_CLASSES.'sts.php');
$sts= new sts();
$sts->start_capture();
// END STS

 

If I comment out this line, it works fine however obviously that negates the upgrade.

 

Thoughts? This is frustrating!!!

Link to comment
Share on other sites

While working on unsuccessful solutions to the above posts, I upgraded from 4.3 to 4.5. I get a blank page on the first page. I have narrowed it down to the following code in includes/application_top.php:

  // START STS 4.5
require (DIR_WS_CLASSES.'sts.php');
$sts= new sts();
$sts->start_capture();
// END STS

 

If I comment out this line, it works fine however obviously that negates the upgrade.

 

Thoughts? This is frustrating!!!

Your application_top.php modifications should be just before the message_stack code as follows:

 

  // START STS 4.5
 require (DIR_WS_CLASSES.'sts.php');
 $sts= new sts();
 $sts->start_capture();
 // END STS

// initialize the message stack for output messages
 require(DIR_WS_CLASSES . 'message_stack.php');
 $messageStack = new messageStack;

 

I suggest upgrading to 4.5.2 so that you get all of the bug fixes for 4.5. If you are still getting a blank page, then check all of the files from the contribution to make sure that you uploaded them correctly (in the correct folders).

Bill Kellum

 

Sounds Good Productions

STS Tutorials & more: STSv4.6, STS Add-ons (STS Power Pack), STS V4 Forum STS Forum FREE TEMPLATE

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...