VWAntigo Posted November 26, 2008 Share Posted November 26, 2008 My Online-payment serviceprovider is getting an error and he complains about a "\n" that he receives. He sent me the following lines: order_history.php - line 38 ' <td class="infoBoxContents" align="right" valign="top"><a href="' . tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('action')) . 'action=cust_order&pid=' . $products['products_id']) . '">' . tep_image(DIR_WS_ICONS . 'cart.gif', ICON_CART) . "</a></td>\n" . and order_history.php - line 38 ' <td class="infoBoxContents" align="right" valign="top"><a href="' . tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('action')) . 'action=cust_order&pid=' . $products['products_id']) . '">' . tep_image(DIR_WS_ICONS . 'cart.gif', ICON_CART) . "</a></td>\n" . ... and so on for almost all my boxes. I checked my files but there is no \n in the files. I found it only in the file classes/boxes.php like here: function tableBox($contents, $direct_output = false) { $tableBox_string = '<table border="' . tep_output_string($this->table_border) . '" width="' . tep_output_string($this->table_width) . '" cellspacing="' . tep_output_string($this->table_cellspacing) . '" cellpadding="' . tep_output_string($this->table_cellpadding) . '"'; if (tep_not_null($this->table_parameters)) $tableBox_string .= ' ' . $this->table_parameters; $tableBox_string .= '>' . "\n"; why does my shop deliver him this "\n"-thing and what is it for. Sorry, I am not an expert. But what can I do that he will not receive it any more? Thanks for your help Link to comment Share on other sites More sharing options...
spooks Posted November 26, 2008 Share Posted November 26, 2008 If you care to look there is another post even today with randon n's Don`t edit with file manager!!! Sam Remember, What you think I ment may not be what I thought I ment when I said it. Contributions: Auto Backup your Database, Easy way Multi Images with Fancy Pop-ups, Easy way Products in columns with multi buy etc etc Disable any Category or Product, Easy way Secure & Improve your account pages et al. Link to comment Share on other sites More sharing options...
VWAntigo Posted November 26, 2008 Author Share Posted November 26, 2008 If you care to look there is another post even today with randon n's Don`t edit with file manager!!! Hi! I had a look at the other topic but that didn't help me. I didn't edit with filemanagers. My shop is working and looking normal. The index.php shows all the \n like discribed in this topic: http://www.oscommerce.info/kb/osCommerce/G...on_Problems/212 Somehow I received the lines I included above from the online-payment-service to be the cause of nonfunctioning of the online-payment. When I look at these boxes-files, there are no \n's But he is getting them... Link to comment Share on other sites More sharing options...
spooks Posted November 27, 2008 Share Posted November 27, 2008 what do you use to edit with. check all files in store that have been modified recently even those you think you did'nt alter. Sam Remember, What you think I ment may not be what I thought I ment when I said it. Contributions: Auto Backup your Database, Easy way Multi Images with Fancy Pop-ups, Easy way Products in columns with multi buy etc etc Disable any Category or Product, Easy way Secure & Improve your account pages et al. Link to comment Share on other sites More sharing options...
VWAntigo Posted November 27, 2008 Author Share Posted November 27, 2008 nobody able to tell me how these "\n" get into my files? * order_history.php - line 38 ' <td class="infoBoxContents" align="right" valign="top"><a href="' . tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('action')) . 'action=cust_order&pid=' . $products['products_id']) . '">' . tep_image(DIR_WS_ICONS . 'cart.gif', ICON_CART) . "</a></td>\n" . *Manufacturers.php - line 30 + 31 if (isset($HTTP_GET_VARS['manufacturers_id']) && ($HTTP_GET_VARS['manufacturers_id'] == $manufacturers['manufacturers_id'])) $manufacturers_name = '<b>' . $manufacturers_name ."</b>\n"; $manufacturers_list .= '<a href="' . tep_href_link(FILENAME_DEFAULT, 'manufacturers_id=' . $manufacturers['manufacturers_id']) . '">' . $manufacturers_name . "</a><br>\n"; * line 53 'text' => tep_draw_pull_down_menu('manufacturers_id', $manufacturers_array, (isset($HTTP_GET_VARS['manufacturers_id']) ? $HTTP_GET_VARS['manufacturers_id'] : ''), 'onChange="this.form.submit();" size="' . MAX_MANUFACTURERS_LIST . '" style="width: 100%"') . tep_hide_session_id())."\n"; * categories.php - line 54 $categories_string .= "<br>\n"; * bestsellers.php - line 34 $bestsellers_list .= '<tr><td class="infoBoxContents" valign="top">' . tep_row_number_format($rows) . '.</td><td class="infoBoxContents"><center><a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $best_sellers['products_id']) . '">'.tep_image(DIR_WS_IMAGES . $best_sellers['products_image'], $best_sellers['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT)."<br/>" . $best_sellers['products_name'] . "</a><br><br></td></tr>\n"; Link to comment Share on other sites More sharing options...
spooks Posted November 27, 2008 Share Posted November 27, 2008 your editor, what do you use to edit with.!!!! Sam Remember, What you think I ment may not be what I thought I ment when I said it. Contributions: Auto Backup your Database, Easy way Multi Images with Fancy Pop-ups, Easy way Products in columns with multi buy etc etc Disable any Category or Product, Easy way Secure & Improve your account pages et al. Link to comment Share on other sites More sharing options...
VWAntigo Posted November 27, 2008 Author Share Posted November 27, 2008 your editor, what do you use to edit with.!!!! Sorry, I didn't see your previous post. I edit with Wordpad. I checked the files and the backslashes are still there. Link to comment Share on other sites More sharing options...
spooks Posted November 27, 2008 Share Posted November 27, 2008 Just as bad, use a proper editor. I recommend HTML KIT http://www.chami.com/html-kit Sam Remember, What you think I ment may not be what I thought I ment when I said it. Contributions: Auto Backup your Database, Easy way Multi Images with Fancy Pop-ups, Easy way Products in columns with multi buy etc etc Disable any Category or Product, Easy way Secure & Improve your account pages et al. Link to comment Share on other sites More sharing options...
VWAntigo Posted November 27, 2008 Author Share Posted November 27, 2008 Just as bad, use a proper editor. I recommend HTML KIT http://www.chami.com/html-kit Thanks. I will keep that in mind in the future. Actually, I accidently stumbled across the problem that caused the problem with my payment service. Would you believe it? after I deactivated "Scrolling bestsellers", it worked... Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.