Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Strange n n n n n n Appeared


easynetnz

Recommended Posts

We have been editing different files and now we have the layout we want, centered and narrow. But we have developed a strange row of n's under the Categories heading. This does not appear in any other view. Actually started as horizontal n's with spaces and different lengths then became vertical...

 

Any suggestions welcome, maybe we can exchnage some info

Link to comment
Share on other sites

That happens when you use the file manager in admin. It has a bug in it and should not be used, unless you install the security update contribution, which has a fix for it. You'll need to go through the files causing the problem and replace all occurrences of "n" with "\n".

 

Jack

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

All of My Addons

Get the latest versions of my addons

Recommended SEO Addons

Link to comment
Share on other sites

We have been editing different files and now we have the layout we want, centered and narrow. But we have developed a strange row of n's under the Categories heading. This does not appear in any other view. Actually started as horizontal n's with spaces and different lengths then became vertical...

 

Any suggestions welcome, maybe we can exchnage some info

Link to comment
Share on other sites

We have been editing different files and now we have the layout we want, centered and narrow. But we have developed a strange row of n's under the Categories heading. This does not appear in any other view. Actually started as horizontal n's with spaces and different lengths then became vertical...

 

Any suggestions welcome, maybe we can exchnage some info

 

Your reply begs the question as to which file...category.php maybe

Where do I go to do the security upfates....

In the category file there are 'text' and language with 'n' do I concentrate on the 'text' only

 

Thanks for your assistance

Link to comment
Share on other sites

Any files you edit are subject to this problem, but not all of them contain "\n". In short, there's no quick answer, as it depends on the files you edited in the File Manager.

 

I did a quick file search and found it in 110 files. The categories names are displayed in index.php. Here are all the places where \n exists in a untouched OSC install:

 

oscommerce-2.2ms2\catalog\admin\index.php
209: echo '				  <tr>' . "\n";
212: echo '					<td><table border="0" cellspacing="0" cellpadding="2">' . "\n" .
213: '					  <tr>' . "\n" .
214: '						<td><a href="' . $cat[$i]['href'] . '">' . tep_image(DIR_WS_IMAGES . 'categories/' . $cat[$i]['image'], $cat[$i]['title'], '32', '32') . '</a></td>' . "\n" .
215: '						<td><table border="0" cellspacing="0" cellpadding="2">' . "\n" .
216: '						  <tr>' . "\n" .
217: '							<td class="main"><a href="' . $cat[$i]['href'] . '" class="main">' . $cat[$i]['title'] . '</a></td>' . "\n" .
218: '						  </tr>' . "\n" .
219: '						  <tr>' . "\n" .
228: echo '</td> ' . "\n" .
229: '						  </tr>' . "\n" .
230: '						</table></td>' . "\n" .
231: '					  </tr>' . "\n" .
232: '					</table></td>' . "\n";
235: echo '				  </tr>' . "\n";

Contributions

 

Discount Coupon Codes

Donations

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...