archedesoisy Posted April 20, 2008 Posted April 20, 2008 Hi all. I've been working to make my website bilingual (french and newly english) [well, we have orders from all europe asking us what does THIS or THAT means :-). And here is my problem : In my english home page, at the top left corner, there is an unexpected "?>". Here is the link to the english index : http://www.archedesoisy.com/index.php?language=en But with the french home page, no problem + no problem with the english product pages. Therefore I thought it might be a pb with my index.php code. But I don't understand where is the pb. Here my head index code where I think the pb might be : <?php /* $Id: index.php,v 1.1 2003/06/11 17:37:59 hpdl Exp $ osCommerce, Open Source E-Commerce Solutions [url="http://www.oscommerce.com"]http://www.oscommerce.com[/url] Copyright © 2003 osCommerce Released under the GNU General Public License */ require('includes/application_top.php'); $page_query = tep_db_query("select p.pages_id, p.sort_order, p.status, s.pages_title, s.pages_html_text from " . TABLE_PAGES . " p LEFT JOIN " .TABLE_PAGES_DESCRIPTION . " s on p.pages_id = s.pages_id where p.status = 1 and s.language_id = '" . (int)$languages_id . "' and p.page_type = 1"); $page_check = tep_db_fetch_array($page_query); $pagetext=stripslashes($page_check[pages_html_text]); // the following cPath references come from application_top.php $category_depth = 'top'; if (isset($cPath) && tep_not_null($cPath)) { $categories_products_query = tep_db_query("select count(*) as total from " . TABLE_PRODUCTS_TO_CATEGORIES . " where categories_id = '" . (int)$current_category_id . "'"); $cateqories_products = tep_db_fetch_array($categories_products_query); if ($cateqories_products['total'] > 0) { $category_depth = 'products'; // display products } else { $category_parent_query = tep_db_query("select count(*) as total from " . TABLE_CATEGORIES . " where parent_id = '" . (int)$current_category_id . "'"); $category_parent = tep_db_fetch_array($category_parent_query); if ($category_parent['total'] > 0) { $category_depth = 'nested'; // navigate through the categories } else { $category_depth = 'products'; // category has no products, but display the 'no products' message } } } require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_DEFAULT); ?> <!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN"> <html <?php echo HTML_PARAMS; ?>> <head> <?php if ( file_exists(DIR_WS_INCLUDES . 'header_tags.php') ) { require(DIR_WS_INCLUDES . 'header_tags.php'); } else { ?> <title><?php echo TITLE; ?></title> <?php } ?> <meta name="verify-v1" content="uWineXFc6RxtJNtWIPr1Gq0nW7DTjUisvvQ87Un6aHc="/> <base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG; ?>"> <?php if (!isset($lng) || (isset($lng) && !is_object($lng))) { include(DIR_WS_CLASSES . 'language.php'); $lng = new language; } reset($lng->catalog_languages); while (list($key, $value) = each($lng->catalog_languages)) { ?> <link rel="alternate" type="application/rss+xml" title="<?php echo STORE_NAME . ' - ' . BOX_INFORMATION_RSS; ?>" href="<?php echo FILENAME_RSS, '?language=' . $key; ?>"> <?php } ?> <link rel="stylesheet" type="text/css" href="stylesheet.css"> </head> I would be grateful if someone might help a newbie like me.
dmnalven Posted April 20, 2008 Posted April 20, 2008 Use a browsers' 'View Source' feature to narrow down where in the osC (or your) code the superfluous characters are generated. For ALL problems, please review this link first -> osCommerce Knowledge Base
Guest Posted April 20, 2008 Posted April 20, 2008 If it is just on your engilish language page check your english.php file.
archedesoisy Posted April 20, 2008 Author Posted April 20, 2008 Use a browsers' 'View Source' feature to narrow down where in the osC (or your) code the superfluous characters are generated. When I check the source it appears just after the meta tag description : </head><body>?> <!-- EOF: Generated Meta Tags -->
archedesoisy Posted April 20, 2008 Author Posted April 20, 2008 If it is just on your engilish language page check your english.php file. I can't find any pb in my english.php language file Here it is : <?php /* $Id: english.php,v 1.114 2003/07/09 18:13:39 dgw_ Exp $ osCommerce, Open Source E-Commerce Solutions [url="http://www.oscommerce.com"]http://www.oscommerce.com[/url] Copyright © 2003 osCommerce Released under the GNU General Public License */ // look in your $PATH_LOCALE/locale directory for available locales // or type locale -a on the server. // Examples: // on RedHat try 'en_US' // on FreeBSD try 'en_US.ISO_8859-1' // on Windows try 'en', or 'English' @setlocale(LC_TIME, 'en_US.ISO_8859-1'); define('DATE_FORMAT_SHORT', '%m/%d/%Y'); // this is used for strftime() define('DATE_FORMAT_LONG', '%A %d %B, %Y'); // this is used for strftime() define('DATE_FORMAT', 'm/d/Y'); // this is used for date() define('DATE_TIME_FORMAT', DATE_FORMAT_SHORT . ' %H:%M:%S'); //// // Return date in raw format // $date should be in format mm/dd/yyyy // raw date is in format YYYYMMDD, or DDMMYYYY function tep_date_raw($date, $reverse = false) { if ($reverse) { return substr($date, 3, 2) . substr($date, 0, 2) . substr($date, 6, 4); } else { return substr($date, 6, 4) . substr($date, 0, 2) . substr($date, 3, 2); } } define('LANGUAGE_CURRENCY', 'USD'); define('HTML_PARAMS','dir="LTR" lang="en"'); define('CHARSET', 'iso-8859-1'); define('TITLE', STORE_NAME); define('HEADER_TITLE_CREATE_ACCOUNT', 'Create an Account'); define('HEADER_TITLE_MY_ACCOUNT', 'My Account'); define('HEADER_TITLE_CART_CONTENTS', 'Cart Contents'); define('HEADER_TITLE_CHECKOUT', 'Checkout'); define('HEADER_TITLE_TOP', 'Top'); define('HEADER_TITLE_CATALOG', 'Catalog'); define('HEADER_TITLE_LOGOFF', 'Log Off'); define('HEADER_TITLE_LOGIN', 'Log In'); define('FOOTER_TEXT_REQUESTS_SINCE', 'requests since'); define('MALE', 'Male'); define('FEMALE', 'Female'); define('MALE_ADDRESS', 'Mr.'); define('FEMALE_ADDRESS', 'Ms.'); define('CLOSE_POPUP', 'Close window'); define('MORE_PIC', 'Thumbnails'); define('DOB_FORMAT_STRING', 'mm/dd/yyyy'); define('BOX_HEADING_CATEGORIES', 'Categories'); define('BOX_HEADING_MANUFACTURERS', 'Manufacturers'); define('BOX_HEADING_WHATS_NEW', 'What\'s New?'); define('BOX_HEADING_SEARCH', 'Quick Find'); define('BOX_SEARCH_TEXT', 'Use keywords.'); define('BOX_SEARCH_ADVANCED_SEARCH', 'Advanced Search'); define('BOX_HEADING_SPECIALS', 'Special products'); define('BOX_HEADING_REVIEWS', 'Reviews'); define('BOX_REVIEWS_WRITE_REVIEW', 'Write a review on this product!'); define('BOX_REVIEWS_NO_REVIEWS', 'There are currently no product reviews'); define('BOX_REVIEWS_TEXT_OF_5_STARS', '%s of 5 Stars!'); define('BOX_HEADING_SHOPPING_CART', 'Shopping Cart'); define('BOX_SHOPPING_CART_EMPTY', 'Your cart is empty.'); define('BOX_HEADING_CUSTOMER_ORDERS', 'Order History'); define('BOX_HEADING_BESTSELLERS', 'Bestsellers'); define('BOX_HEADING_BESTSELLERS_IN', 'Bestsellers in<br> '); define('BOX_HEADING_NOTIFICATIONS', 'Notifications'); define('BOX_NOTIFICATIONS_NOTIFY', 'Notify me of updates to <b>%s</b>'); define('BOX_NOTIFICATIONS_NOTIFY_REMOVE', 'Do not notify me of updates to <b>%s</b>'); define('BOX_HEADING_MANUFACTURER_INFO', 'Manufacturer Info'); define('BOX_MANUFACTURER_INFO_HOMEPAGE', '%s Homepage'); define('BOX_MANUFACTURER_INFO_OTHER_PRODUCTS', 'Other products'); define('BOX_HEADING_LANGUAGES', 'Languages'); define('BOX_HEADING_CURRENCIES', 'Currencies'); define('BOX_HEADING_NEW_PRODUCTS', 'New products'); define('BOX_HEADING_INFORMATION', 'Information'); define('BOX_INFORMATION_PRIVACY', 'Privacy Notice'); define('BOX_INFORMATION_CONDITIONS', 'Conditions of Use'); define('BOX_INFORMATION_SHIPPING', 'Shipping & Returns'); define('BOX_INFORMATION_CONTACT', 'Contact Us');define('BOX_HEADING_TELL_A_FRIEND', 'Tell A Friend'); define('BOX_INFORMATION_MY_POINTS_HELP', 'Points help'); define('BOX_HEADING_TELL_A_FRIEND', 'Tell a friend'); define('BOX_TELL_A_FRIEND_TEXT', 'Tell someone you know about this product.'); define('CHECKOUT_BAR_DELIVERY', 'Delivery Information'); define('CHECKOUT_BAR_PAYMENT', 'Payment Information'); define('CHECKOUT_BAR_CONFIRMATION', 'Confirmation'); define('CHECKOUT_BAR_FINISHED', 'Finished!'); define('PULL_DOWN_DEFAULT', 'Please Select'); define('TYPE_BELOW', 'Type Below'); define('PULL_DOWN_OTHER', 'Other - (Please specify)'); //rmh referral define('JS_ERROR', 'Errors have occured during the process of your form.\n\nPlease make the following corrections:\n\n'); define('JS_REVIEW_TEXT', '* The \'Review Text\' must have at least ' . REVIEW_TEXT_MIN_LENGTH . ' characters.\n'); define('JS_REVIEW_RATING', '* You must rate the product for your review.\n'); define('JS_ERROR_NO_PAYMENT_MODULE_SELECTED', '* Please select a payment method for your order.\n'); define('JS_ERROR_SUBMITTED', 'This form has already been submitted. Please press Ok and wait for this process to be completed.'); define('ERROR_NO_PAYMENT_MODULE_SELECTED', 'Please select a payment method for your order.'); define('CATEGORY_COMPANY', 'Company Details'); define('CATEGORY_PERSONAL', 'Your Personal Details'); define('CATEGORY_ADDRESS', 'Your Address'); define('CATEGORY_CONTACT', 'Your Contact Information'); define('CATEGORY_OPTIONS', 'Options'); define('CATEGORY_SOURCE', 'How did you find our website ?'); define('CATEGORY_PASSWORD', 'Your Password'); define('ENTRY_COMPANY', 'Company Name:'); define('ENTRY_COMPANY_ERROR', ''); define('ENTRY_COMPANY_TEXT', ''); define('ENTRY_GENDER', 'Gender:'); define('ENTRY_GENDER_ERROR', 'Please select your Gender.'); define('ENTRY_GENDER_TEXT', '*'); define('ENTRY_FIRST_NAME', 'First Name:'); define('ENTRY_FIRST_NAME_ERROR', 'Your First Name must contain a minimum of ' . ENTRY_FIRST_NAME_MIN_LENGTH . ' characters.'); define('ENTRY_FIRST_NAME_TEXT', '*'); define('ENTRY_LAST_NAME', 'Last Name:'); define('ENTRY_LAST_NAME_ERROR', 'Your Last Name must contain a minimum of ' . ENTRY_LAST_NAME_MIN_LENGTH . ' characters.'); define('ENTRY_LAST_NAME_TEXT', '*'); define('ENTRY_DATE_OF_BIRTH', 'Date of Birth:'); define('ENTRY_DATE_OF_BIRTH_ERROR', 'Your Date of Birth must be in this format: MM/DD/YYYY (eg 05/21/1970)'); define('ENTRY_DATE_OF_BIRTH_TEXT', '* (eg. 05/21/1970)'); define('ENTRY_EMAIL_ADDRESS', 'E-Mail Address:'); define('ENTRY_EMAIL_ADDRESS_ERROR', 'Your E-Mail Address must contain a minimum of ' . ENTRY_EMAIL_ADDRESS_MIN_LENGTH . ' characters.'); define('ENTRY_EMAIL_ADDRESS_CHECK_ERROR', 'Your E-Mail Address does not appear to be valid - please make any necessary corrections.'); define('ENTRY_EMAIL_ADDRESS_ERROR_EXISTS', 'Your E-Mail Address already exists in our records - please log in with the e-mail address or create an account with a different address.'); define('ENTRY_EMAIL_ADDRESS_TEXT', '*'); define('ENTRY_STREET_ADDRESS', 'Street Address:'); define('ENTRY_STREET_ADDRESS_ERROR', 'Your Street Address must contain a minimum of ' . ENTRY_STREET_ADDRESS_MIN_LENGTH . ' characters.'); define('ENTRY_STREET_ADDRESS_TEXT', '*'); define('ENTRY_SUBURB', 'Suburb:'); define('ENTRY_SUBURB_ERROR', ''); define('ENTRY_SUBURB_TEXT', ''); define('ENTRY_POST_CODE', 'Post Code:'); define('ENTRY_POST_CODE_ERROR', 'Your Post Code must contain a minimum of ' . ENTRY_POSTCODE_MIN_LENGTH . ' characters.'); define('ENTRY_POST_CODE_TEXT', '*'); define('ENTRY_CITY', 'City:'); define('ENTRY_CITY_ERROR', 'Your City must contain a minimum of ' . ENTRY_CITY_MIN_LENGTH . ' characters.'); define('ENTRY_CITY_TEXT', '*'); define('ENTRY_STATE', 'State/Province:'); define('ENTRY_STATE_ERROR', 'Your State must contain a minimum of ' . ENTRY_STATE_MIN_LENGTH . ' characters.'); define('ENTRY_STATE_ERROR_SELECT', 'Please select a state from the States pull down menu.'); define('ENTRY_STATE_TEXT', '*'); define('ENTRY_COUNTRY', 'Country:'); define('ENTRY_COUNTRY_ERROR', 'You must select a country from the Countries pull down menu.'); define('ENTRY_COUNTRY_TEXT', '*'); define('ENTRY_TELEPHONE_NUMBER', 'Telephone Number:'); define('ENTRY_TELEPHONE_NUMBER_ERROR', 'Your Telephone Number must contain a minimum of ' . ENTRY_TELEPHONE_MIN_LENGTH . ' characters.'); define('ENTRY_TELEPHONE_NUMBER_TEXT', '*'); define('ENTRY_FAX_NUMBER', 'Fax Number:'); define('ENTRY_FAX_NUMBER_ERROR', ''); define('ENTRY_FAX_NUMBER_TEXT', ''); define('ENTRY_NEWSLETTER', 'Newsletter:'); define('ENTRY_NEWSLETTER_TEXT', ''); define('ENTRY_NEWSLETTER_YES', 'Subscribed'); define('ENTRY_NEWSLETTER_NO', 'Unsubscribed'); define('ENTRY_NEWSLETTER_ERROR', ''); define('ENTRY_PASSWORD', 'Password:'); define('ENTRY_PASSWORD_ERROR', 'Your Password must contain a minimum of ' . ENTRY_PASSWORD_MIN_LENGTH . ' characters.'); define('ENTRY_PASSWORD_ERROR_NOT_MATCHING', 'The Password Confirmation must match your Password.'); define('ENTRY_PASSWORD_TEXT', '*'); define('ENTRY_PASSWORD_CONFIRMATION', 'Password Confirmation:'); define('ENTRY_PASSWORD_CONFIRMATION_TEXT', '*'); define('ENTRY_PASSWORD_CURRENT', 'Current Password:'); define('ENTRY_PASSWORD_CURRENT_TEXT', '*'); define('ENTRY_PASSWORD_CURRENT_ERROR', 'Your Password must contain a minimum of ' . ENTRY_PASSWORD_MIN_LENGTH . ' characters.'); define('ENTRY_PASSWORD_NEW', 'New Password:'); define('ENTRY_PASSWORD_NEW_TEXT', '*'); define('ENTRY_PASSWORD_NEW_ERROR', 'Your new Password must contain a minimum of ' . ENTRY_PASSWORD_MIN_LENGTH . ' characters.'); define('ENTRY_PASSWORD_NEW_ERROR_NOT_MATCHING', 'The Password Confirmation must match your new Password.'); define('PASSWORD_HIDDEN', '--HIDDEN--'); define('ENTRY_SOURCE', 'Please select an answer :'); define('FORM_REQUIRED_INFORMATION', '* Required information'); define('ENTRY_SOURCE_OTHER', '(If "Others", please specify)'); define('ENTRY_SOURCE_OTHER_ERROR', 'Please specify how you found our website.'); if (REFERRAL_REQUIRED == 'true') { define('ENTRY_SOURCE_TEXT', '*'); define('ENTRY_SOURCE_OTHER_TEXT', '*'); } else { define('ENTRY_SOURCE_TEXT', ''); define('ENTRY_SOURCE_OTHER_TEXT', ''); } define('FORM_REQUIRED_INFORMATION', '* Information requise'); define('TEXT_RESULT_PAGE', 'Result Pages:'); define('TEXT_DISPLAY_NUMBER_OF_PRODUCTS', 'Displaying <b>%d</b> to <b>%d</b> (of <b>%d</b> products)'); define('TEXT_DISPLAY_NUMBER_OF_ORDERS', 'Displaying <b>%d</b> to <b>%d</b> (of <b>%d</b> orders)'); define('TEXT_DISPLAY_NUMBER_OF_REVIEWS', 'Displaying <b>%d</b> to <b>%d</b> (of <b>%d</b> reviews)'); define('TEXT_DISPLAY_NUMBER_OF_PRODUCTS_NEW', 'Displaying <b>%d</b> to <b>%d</b> (of <b>%d</b> new products)'); define('TEXT_DISPLAY_NUMBER_OF_SPECIALS', 'Displaying <b>%d</b> to <b>%d</b> (of <b>%d</b> specials)'); define('PREVNEXT_TITLE_FIRST_PAGE', 'First Page'); define('PREVNEXT_TITLE_PREVIOUS_PAGE', 'Previous Page'); define('PREVNEXT_TITLE_NEXT_PAGE', 'Next Page'); define('PREVNEXT_TITLE_LAST_PAGE', 'Last Page'); define('PREVNEXT_TITLE_PAGE_NO', 'Page %d'); define('PREVNEXT_TITLE_PREV_SET_OF_NO_PAGE', 'Previous Set of %d Pages'); define('PREVNEXT_TITLE_NEXT_SET_OF_NO_PAGE', 'Next Set of %d Pages'); define('PREVNEXT_BUTTON_FIRST', '<<FIRST'); define('PREVNEXT_BUTTON_PREV', '[<< Prev]'); define('PREVNEXT_BUTTON_NEXT', '[Next >>]'); define('PREVNEXT_BUTTON_LAST', 'LAST>>'); define('IMAGE_BUTTON_ADD_ADDRESS', 'Add Address'); define('IMAGE_BUTTON_ADDRESS_BOOK', 'Address Book'); define('IMAGE_BUTTON_BACK', 'Back'); define('IMAGE_BUTTON_BUY_NOW', 'Buy Now'); define('IMAGE_BUTTON_CHANGE_ADDRESS', 'Change Address'); define('IMAGE_BUTTON_CHECKOUT', 'Checkout'); define('IMAGE_BUTTON_CONFIRM_ORDER', 'Confirm Order'); define('IMAGE_BUTTON_CONTINUE', 'Continue'); define('IMAGE_BUTTON_CONTINUE_SHOPPING', 'Continue Shopping'); define('IMAGE_BUTTON_DELETE', 'Delete'); define('IMAGE_BUTTON_EDIT_ACCOUNT', 'Edit Account'); define('IMAGE_BUTTON_HISTORY', 'Order History'); define('IMAGE_BUTTON_LOGIN', 'Sign In'); define('IMAGE_BUTTON_IN_CART', 'Add to Cart'); define('IMAGE_BUTTON_MORE_INFO', 'More info'); define('IMAGE_BUTTON_NOTIFICATIONS', 'Notifications'); define('IMAGE_BUTTON_QUICK_FIND', 'Quick Find'); define('IMAGE_BUTTON_REMOVE_NOTIFICATIONS', 'Remove Notifications'); define('IMAGE_BUTTON_REVIEWS', 'Reviews'); define('IMAGE_BUTTON_SEARCH', 'Search'); define('IMAGE_BUTTON_SHIPPING_OPTIONS', 'Shipping Options'); define('IMAGE_BUTTON_TELL_A_FRIEND', 'Tell a Friend'); define('IMAGE_BUTTON_UPDATE', 'Update'); define('IMAGE_BUTTON_UPDATE_CART', 'Update Cart'); define('IMAGE_BUTTON_WRITE_REVIEW', 'Write Review'); define('SMALL_IMAGE_BUTTON_DELETE', 'Delete'); define('SMALL_IMAGE_BUTTON_EDIT', 'Edit'); define('SMALL_IMAGE_BUTTON_VIEW', 'View'); define('ICON_ARROW_RIGHT', 'more'); define('ICON_CART', 'In Cart'); define('ICON_ERROR', 'Error'); define('ICON_SUCCESS', 'Success'); define('ICON_WARNING', 'Warning'); define('TEXT_GREETING_PERSONAL', 'Welcome back <span class="greetUser">%s!</span> Would you like to see which <a href="%s"><u>new products</u></a> are available to purchase?'); define('TEXT_GREETING_PERSONAL_RELOGON', '<small>If you are not %s, please <a href="%s"><u>log yourself in</u></a> with your account information.</small>'); define('TEXT_GREETING_GUEST', 'Welcome <span class="greetUser">Guest!</span> Would you like to <a href="%s"><u>log yourself in</u></a>? Or would you prefer to <a href="%s"><u>create an account</u></a>?'); define('TEXT_SORT_PRODUCTS', 'Sort products '); define('TEXT_DESCENDINGLY', 'descendingly'); define('TEXT_ASCENDINGLY', 'ascendingly'); define('TEXT_BY', ' by '); define('TEXT_REVIEW', 'Reviews'); define('TEXT_REVIEW_BY', 'by %s'); define('TEXT_REVIEW_WORD_COUNT', '%s words'); define('TEXT_REVIEW_RATING', 'Rating: %s [%s]'); define('TEXT_REVIEW_DATE_ADDED', 'Date Added: %s'); define('TEXT_NO_REVIEWS', 'There are currently no product reviews.'); define('TEXT_NO_NEW_PRODUCTS', 'There are currently no products.'); define('TEXT_UNKNOWN_TAX_RATE', 'Unknown tax rate'); define('TEXT_REQUIRED', '<span class="errorText">Required</span>'); define('ERROR_TEP_MAIL', '<font face="Verdana, Arial" size="2" color="#ff0000"><b><small>TEP ERROR:</small> Cannot send the email through the specified SMTP server. Please check your php.ini setting and correct the SMTP server if necessary.</b></font>'); define('WARNING_INSTALL_DIRECTORY_EXISTS', 'Warning: Installation directory exists at: ' . dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']) . '/install. Please remove this directory for security reasons.'); define('WARNING_CONFIG_FILE_WRITEABLE', 'Warning: I am able to write to the configuration file: ' . dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']) . '/includes/configure.php. This is a potential security risk - please set the right user permissions on this file.'); define('WARNING_SESSION_DIRECTORY_NON_EXISTENT', 'Warning: The sessions directory does not exist: ' . tep_session_save_path() . '. Sessions will not work until this directory is created.'); define('WARNING_SESSION_DIRECTORY_NOT_WRITEABLE', 'Warning: I am not able to write to the sessions directory: ' . tep_session_save_path() . '. Sessions will not work until the right user permissions are set.'); define('WARNING_SESSION_AUTO_START', 'Warning: session.auto_start is enabled - please disable this php feature in php.ini and restart the web server.'); define('WARNING_DOWNLOAD_DIRECTORY_NON_EXISTENT', 'Warning: The downloadable products directory does not exist: ' . DIR_FS_DOWNLOAD . '. Downloadable products will not work until this directory is valid.'); define('TEXT_CCVAL_ERROR_INVALID_DATE', 'The expiry date entered for the credit card is invalid.<br>Please check the date and try again.'); define('TEXT_CCVAL_ERROR_INVALID_NUMBER', 'The credit card number entered is invalid.<br>Please check the number and try again.'); define('TEXT_CCVAL_ERROR_UNKNOWN_CARD', 'The first four digits of the number entered are: %s<br>If that number is correct, we do not accept that type of credit card.<br>If it is wrong, please try again.'); define('FOOTER_TEXT_BODY', 'Copyright © ' . date('Y') . ' <a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . STORE_NAME . '</a><br>Powered by <a href="http://www.oscommerce.com" target="_blank">osCommerce</a>'); define('ENTRY_SOURCE', 'Please let us know:'); define('ENTRY_SOURCE_FIELD', 'Where you heard about yesUdo.com ?'); define('REFERRAL_ERROR_NOT_FOUND', 'The email you entered hasn\'t been found.'); define('TEXT_POINTS_BALANCE', 'Informations on your products.'); define('TEXT_POINTS', 'Points :'); define('TEXT_VALUE', 'Value:'); define('REVIEW_HELP_LINK', ' Write a review makes you earn 20 points.<br />For details, look at <a href="' . tep_href_link(FILENAME_MY_POINTS_HELP,'faq_item=13', 'NONSSL') . '" title="Points help"><u>the Points help</u></a>.'); define('FOOTER_TEXT_BODY', ''); define('BOX_INFORMATION_RSS', 'RSS Catalog'); define('HEADING_PRODUCTS', 'Products in your cart'); define('BOX_INFORMATION_GV', 'Gift Voucher FAQ'); define('VOUCHER_BALANCE', 'Voucher Balance'); define('BOX_HEADING_GIFT_VOUCHER', 'Gift Voucher Account'); define('GV_FAQ', 'Gift Voucher FAQ'); define('ERROR_REDEEMED_AMOUNT', 'The coupon has been successfully applied for '); define('ERROR_NO_REDEEM_CODE', 'You did not enter a redeem code.'); define('ERROR_NO_INVALID_REDEEM_GV', 'Invalid Gift Voucher Code'); define('TABLE_HEADING_CREDIT', 'Gift Vouchers & Coupons'); define('GV_HAS_VOUCHERA', 'You have funds in your Gift Voucher Account. If you want <br>you can send those funds by <a class="pageResults" href="'); define('GV_HAS_VOUCHERB', '"><b>email</b></a> to someone'); define('ENTRY_AMOUNT_CHECK_ERROR', 'You do not have enough funds to send this amount.'); define('BOX_SEND_TO_FRIEND', 'Send Gift Voucher'); define('VOUCHER_REDEEMED', 'Voucher Redeemed'); define('CART_COUPON', 'Coupon :'); define('CART_COUPON_INFO', 'more info'); define('MODULE_ORDER_TOTAL_COUPON_TEXT_ERROR', 'Coupon Redemption'); define('ERROR_REDEEMED_AMOUNT_ZERO', '<BR>***HOWEVER:No reducion available, please see the coupon restrictions***'); define('DEFAULT_META_TITLE', 'Arche de Soisy :Decoration and gifts'); define('DEFAULT_META_DESCRIPTION', 'Buy online decoration products and beautiful gifts for women and kids'); define('DEFAULT_META_KEYWORDS', 'shop, online shop, decoration shop, kid gift, woman gift, linen, beauty, decoration, table cloth, angels, angels decoration, fairies decoration, african decoration, porcelain dolls, artificial flowers, flowers, vase, candlesticks, candles, key box, picture frame, painting, statue, plates'); define('BOX_INFORMATION_LINKS', 'Partner links'); define('BOX_HEADING_LINKS', 'Best links'); define('BOX_INFORMATION_ALLPRODS', 'Catalog'); define('BOX_SPECIALS_ALLPRODS', '<b>Show all specials</b>'); define('BOX_WHATSNEW_ALLPRODS', '<b>Last product added</b>'); define('HEADER_TITLE_ALLPRODS', '<b>All products</b>'); define('FILENAME_PDF_CATALOGUE', 'pdf_catalogue_info.php'); // PDF Catalog v.1.51 define('BOX_INFORMATION_PDF_CATALOGUE', 'Downloadable catalog'); // PDF Catalog v.1.51 define('TEXT_STOCK_WHITE', 'Out of stock'); define('TEXT_STOCK_YELLOW', 'Stock : 1'); define('TEXT_STOCK_GREEN', 'Available'); define('PRICE_RANGE_SEARCH', 'Search by price'); define('SELECT_RANGE_PRICE', 'Select by price'); define('FROM_RANGE_PRICE', 'From '); define('TO_RANGE_PRICE', ' to '); define('UPTO_RANGE_PRICE', 'Less than '); define('ABOVE_RANGE_PRICE', 'More than '); define('TEXT_ADD_TO_GET_FREE_SHIPPING', '[More than %s]'); define('TEXT_FREE_SHIPPING_RECEIVED', 'You are eligible for free shipping.'); define('TEXT_FREE_SHIPPING_LIMIT', 'Free shipping for orders over %s.'); define('TEXT_FREE_SHIPPING_LIMIT_INTERNATIONAL', 'Free shipping for orders over %s.'); define('TEXT_FREE_SHIPPING_LIMIT_NATIONAL', 'Free shipping for orders over %s.'); define('TEXT_FREE_SHIPPING_RECEIVED_INTERNATIONAL', 'You are eligible for free shipping.'); define('TEXT_FREE_SHIPPING_RECEIVED_NATIONAL', 'You are eligible for free shipping.'); define('ENTRY_CONFIRM_EMAIL_ADDRESS', 'Confirm email adress:'); define('ENTRY_CONFIRM_EMAIL_ADDRESS_CHECK_ERROR', 'The two email adresses don\'t match.'); define('BOX_HEADING_SITEMONITOR', 'SiteMonitor'); define('BOX_SITEMONITOR_ADMIN', 'Admin'); define('BOX_SITEMONITOR_CONFIG_SETUP', 'Configure'); define('IMAGE_EXCLUDE', 'Exclude'); require(DIR_WS_LANGUAGES . $language . '/' . 'loginbox.php'); // LoginBox define('BOX_HEADING_MOSTVIEWED', 'The most popular'); define('BOX_HEADING_MOSTVIEWED_IN', 'The most popular in'); define('BOX_HEADING_PAGES', 'Informations'); define('BOX_INFORMATION_DYNAMIC_SITEMAP', 'Site map'); define('BOX_HEADING_GIFTS', '<b>Free gifts</b>'); define('BOX_HEADING_ALSO_CONSIDER', 'Products in the same category'); define('BOX_HEADING_PAYMENTLOGO','Payment'); define('PREVNEXT_TITLE_VIEW_ALL', 'See all products in this category'); define('PREVNEXT_BUTTON_VIEW_ALL', 'Show all'); define('TEXT_ICON_NEW_PRODUCT', 'New'); require(DIR_WS_LANGUAGES . $language . '/privacy2.php'); define('MUST_AGREE_TO_PRIVACY', 'Privacy conditions approval'); define('AGREE', 'I accept'); define('NOT_AGREE', 'I refuse'); define('TEXT_PRIVACY_INFORMATION' , $TEXT_PRIVACY_INFORMATION); define('ENTRY_PRIVACY_ERROR', 'To registrer, you have to accept the privacy conditions.'); define('BOX_HEADING_MABOXE', 'Informations'); // mon titre de la boxe define('BOX_INFORMATION_MABOXE', 'Secured payment.'); // mon texte define('BOX_COMMENTAIRE_MABOXE', 'Seciured payments via french bank or Paypal'); define('BOX_COMMENTAIRE_MABOXE_DELAIENVOI', 'Order sent in 48H.'); define('BOX_COMMENTAIRE_MABOXE_NOTE_CLIENTS', 'Our customers marked us. Our average mark : 9,5/10'); define('BOX_HEADING_LINKS2', 'Make a link'); define('BOX_LINKS_TEXT', 'Text link'); define('BOX_LINKS_IMAGE', 'Picture link'); define('BOX_LINKS_COPY', 'Make a link in a forum.'); define('BOX_LINKS_SIZE', '22'); // The width of your textbox define('BOX_LINKS_PRODUCT_URL', 'http://www.archedesoisy.com'); // Do NOT include a trailing '/' define('BOX_LINKS_IMAGE_URL', 'http://www.archedesoisy.com/images'); // Do NOT include a trailing '/' define('HEADER_ABOUT_US', 'About us !'); ?> No strange "?>" except at the end
archedesoisy Posted April 20, 2008 Author Posted April 20, 2008 When I check the source it appears just after the meta tag description : </head><body>?> <!-- EOF: Generated Meta Tags --> The problem seems to appear just after the "<body>" In my index, just after the <body> there is this <body> <?php require(DIR_WS_INCLUDES . 'header.php'); ?> <!-- body //--> Then I thought the probleme is in my header.php ...? But again, can't find the problem there : <?php /* $Id: header.php,v 1.42 2003/06/10 18:20:38 hpdl Exp $ osCommerce, Open Source E-Commerce Solutions [url="http://www.oscommerce.com"]http://www.oscommerce.com[/url] Copyright © 2003 osCommerce Released under the GNU General Public License */ // check if the 'install' directory exists, and warn of its existence if (WARN_INSTALL_EXISTENCE == 'true') { if (file_exists(dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']) . '/install')) { $messageStack->add('header', WARNING_INSTALL_DIRECTORY_EXISTS, 'warning'); } } // check if the configure.php file is writeable if (WARN_CONFIG_WRITEABLE == 'true') { if ( (file_exists(dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']) . '/includes/configure.php')) && (is_writeable(dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']) . '/includes/configure.php')) ) { $messageStack->add('header', WARNING_CONFIG_FILE_WRITEABLE, 'warning'); } } // check if the session folder is writeable if (WARN_SESSION_DIRECTORY_NOT_WRITEABLE == 'true') { if (STORE_SESSIONS == '') { if (!is_dir(tep_session_save_path())) { $messageStack->add('header', WARNING_SESSION_DIRECTORY_NON_EXISTENT, 'warning'); } elseif (!is_writeable(tep_session_save_path())) { $messageStack->add('header', WARNING_SESSION_DIRECTORY_NOT_WRITEABLE, 'warning'); } } } // check session.auto_start is disabled if ( (function_exists('ini_get')) && (WARN_SESSION_AUTO_START == 'true') ) { if (ini_get('session.auto_start') == '1') { $messageStack->add('header', WARNING_SESSION_AUTO_START, 'warning'); } } if ( (WARN_DOWNLOAD_DIRECTORY_NOT_READABLE == 'true') && (DOWNLOAD_ENABLED == 'true') ) { if (!is_dir(DIR_FS_DOWNLOAD)) { $messageStack->add('header', WARNING_DOWNLOAD_DIRECTORY_NON_EXISTENT, 'warning'); } } if ($messageStack->size('header') > 0) { echo $messageStack->output('header'); } ?> <!-- TITRE A 994//--> <table Phew .... Hope I made myself clear... I searched and researched and can't find anything !
dmnalven Posted April 20, 2008 Posted April 20, 2008 Check your meta tag add-on installation. For ALL problems, please review this link first -> osCommerce Knowledge Base
Recommended Posts
Archived
This topic is now archived and is closed to further replies.