This is a discussion on easypopulate- blank lines at top of file within the osCMax v2 Customization/Mods forums, part of the osCMax v2.0 Forums category; I am getting 18 blank lines at the top of pages i get from easypopulate. i2m trying to use it ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
#1
| |||
| |||
| I am getting 18 blank lines at the top of pages i get from easypopulate. i2m trying to use it for xml export so i need to remove these lines for correct formatting. does anyone have any idea why these blank lines are formed on top of file? i'm modifying froogle csv file download option by the way. |
|
#2
| |||
| |||
| Did you check your database and make sure you dont have some blank data in their. Also is it completely blank or does it have something in the "v_products_model" also does it end in EOREOR? I would check the first then look at the code you added. Adam |
|
#3
| |||
| |||
| I changed the following code as follows (besides many other changes) so the file has to start with xml header, but it still adds 18 blank lines before this header and programs cannot read the xml file giving error. there is no EOREOR at the end of lines as I changed line break to \n but these blank lines start before the products are started to be inserted into file. if ( $download == 'stream' or $download == 'tempfile' ){ //******************************* //******************************* // DOWNLOAD FILE //******************************* //******************************* $filestring = ""; // this holds the csv file we want to download if ( $dltype=='froogle' ){ // set the things froogle wants at the top of the file $filestring .= " <?xml version=\"1.0\" encoding=\"iso-8859-9\" ?> \n"; $filestring .= "<Urunler>\n"; } |
|
#4
| |||
| |||
| What ver of Ep you on? 2.76f Does it give you the 18 lines no matter what file your downloading? |
|
#5
| |||
| |||
| i've tested this code also on the live server and there was no problem! it makes those blank lines only on the test server on my local machine which has exactly the same database as the live version. i suspect some sort of php, mysql etc. quirkiness. i'll try to check the reason later. anyway, my problem is solved for now, thanks everyone. |
| Thread Tools | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Categories Box Lines help | theengineer | osCMax v2 Customization/Mods | 0 | 09-10-2007 01:24 PM |
| Part of file appearing at top of screen? | mq-james | osCMax v2 Installation issues | 0 | 08-09-2005 02:22 PM |
| "Top" Link Located top left corner of catalog. | bgharder | osCommerce 2.2 Modification Help | 1 | 01-30-2005 05:35 AM |
| Froogle file mixes languages (Easypopulate 2.72) | kjedr | osCMax v1.7 Installation | 0 | 10-21-2004 07:28 AM |