Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Unwanted Errors and Spaces


Guest

Recommended Posts

Hi guys

 

Please help me sort this one out

 

:blush: Problem 1:

Parse error: parse error, unexpected ';' in /osCommerce/catalog/index.php on line 104

 

Line 104: echo ' <td align="center" class="smallText" width="' . $width . '" valign="top"><a href="' . tep_href_link(FILENAME_DEFAULT, $cPath_new) . '">' . tep_image(DIR_WS_IMAGES . $categories['categories_image'], $categories['categories_name'], SUBCATEGORY_IMAGE_WIDTH, SUBCATEGORY_IMAGE_HEIGHT) . '<br>' . $categories['categories_name'] . '</a></td>' . ;

 

There is only one ";" and if I remove it, it tells me there is an "IF" error in line 105

 

Line 105: if ((($rows / MAX_DISPLAY_CATEGORIES_PER_ROW) == floor($rows / MAX_DISPLAY_CATEGORIES_PER_ROW)) && ($rows != $number_of_categories)) {

 

:'( Problem 2:

I made a few changes to the colours of my shop and now I have a big blank space above my logo. How do I remove the blank space?

 

Thanks in advance.

Link to comment
Share on other sites

I answered problem 1 in your other post.

 

As for problem 2, my crystal ball is out for repairs. A URL to your site or the HTML generated for the top of your page up to where the logo is displayed would be of some help.

Link to comment
Share on other sites

kimmann is your error at the end of the pages. I got this once at my wife store at cutiehearts.com and I just can't get rid if it. I don't know what's wrong. Then I tried to restore my last backup and it solve the problem. anyone know what is the code at the end of oscommence page do. I was thinking of removing it if I don't need it to prevent future error. and how come the error appear out of the sudden?? it was working fine when I go to bed.

Link to comment
Share on other sites

Problem 1:

Parse error: parse error, unexpected ';' in /osCommerce/catalog/index.php on line 104

 

Line 104: echo ' <td align="center" class="smallText" width="' . $width . '" valign="top"><a href="' . tep_href_link(FILENAME_DEFAULT, $cPath_new) . '">' . tep_image(DIR_WS_IMAGES . $categories['categories_image'], $categories['categories_name'], SUBCATEGORY_IMAGE_WIDTH, SUBCATEGORY_IMAGE_HEIGHT) . '<br>' . $categories['categories_name'] . '</a></td>' . ;

 

 

My gues is thst you need to remove the last "." just in front of your ";"

The statment expects another argument.

 

I could be wrong, I am a beginner myself.

Link to comment
Share on other sites

Hi there guys

 

Sorry for not getting back sooner - I've spent weeks trying to sort things out. Me being a total newbie with osC and having one parse error after the other this is what I have now figured out which may make life a bit easier.

 

People have suggested that we do not edit the files through the osC file manager, but I don't really have much choice - I have installed a number of packages to try and help me out but I don't know how any of them work.

 

This is a bit of a long way round but it seems to be working for me. I installed EditPlus and I keep this open. I open the file I need to edit. Copy everything into EditPlus, make the necessary changes then I run a search through the text for any "n" or "nn". Some people suggested I delete them and some suggested that I change them to <br> and none of that was working. Where you have an "n" change to "\n" and where you have a "nn" change to "\n\n". Then copy the text from EditPlus and paste back into your file. Only problem is, everytime you edit the same file you have to follow the same procedure. Hopefully someone will come up with better advice.

 

No way I'm saying this is right but since I started doing this last night it seems to be limiting my errors - it would help of course if I new how to speak HTML.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...