Guest Posted October 16, 2008 Posted October 16, 2008 Hello to everybody, My shop it's not working well from a few time¿? But I don´t touch anyting¿? Please HELP!!!!!! I have some files like "Shop\Shop\header_4goczzdy8d.php"¿?¿? This is the code: <?php /* $Id: header.php,v 1.42 2003/06/10 18:20:38 hpdl Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 2003 osCommerce Released under the GNU General Public License */ // include(DIR_WS_BOXES . 'languages.php'); // 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'); } ?> <table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr class="left"> <td valign="middle"><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image(DIR_WS_IMAGES . 'Logo1.JPG', 'World Moto Parts') . '</a>'; ?></td> </tr> </table> <table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr class="Cabecera"> <td class="Cabecera" width="50%" valign="left"><?php echo include(DIR_WS_BOXES . 'languages.php'); ?></td> </tr> </table> <table border="0" width="100%" cellspacing="0" cellpadding="1"> <tr class="headerNavigation"> <td class="headerNavigation"><?php echo $breadcrumb->trail(' » '); ?> </td> <td align="right" class="headerNavigation"><?php if (tep_session_is_registered('customer_id')) { ?><a href="<?php echo tep_href_link(FILENAME_LOGOFF, '', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_LOGOFF; ?></a> | <?php } ?><a href="<?php echo tep_href_link(FILENAME_ACCOUNT, '', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_MY_ACCOUNT; ?></a> | <a href="<?php echo tep_href_link(FILENAME_SHOPPING_CART); ?>" class="headerNavigation"><?php echo HEADER_TITLE_CART_CONTENTS; ?></a> | <a href="<?php echo tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_CHECKOUT; ?></a> </td> </tr> </table> <?php if (isset($HTTP_GET_VARS['error_message']) && tep_not_null($HTTP_GET_VARS['error_message'])) { ?> <table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr class="headerError"> <td class="headerError"><?php echo htmlspecialchars(urldecode($HTTP_GET_VARS['error_message'])); ?></td> </tr> </table> <?php } if (isset($HTTP_GET_VARS['info_message']) && tep_not_null($HTTP_GET_VARS['info_message'])) { ?> <table border="0" width="100%" cellspacing="0" cellpadding="2"> <tr class="headerInfo"> <td class="headerInfo"><?php echo htmlspecialchars($HTTP_GET_VARS['info_message']); ?></td> </tr> </table> <?php } ?> <!-- MMDW:success -->
♥Vger Posted October 16, 2008 Posted October 16, 2008 Well, that's an includes/header.php file - but unless there are other edited files there's nothing in the file you've posted that indicates a hack has been performed. Vger
Guest Posted October 16, 2008 Posted October 16, 2008 Well, that's an includes/header.php file - but unless there are other edited files there's nothing in the file you've posted that indicates a hack has been performed. Vger Thks! But then I don't undertand wy my Store it's not running¿? When I enter it says: "Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/worldmo2/public_html/Shop/includes/functions/general.php:2845) in /home/worldmo2/public_html/Shop/includes/functions/sessions.php on line 102" And if I enter like a Customer I can't see my Cart... It says: "Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/worldmo2/public_html/Shop/includes/functions/general.php:2845) in /home/worldmo2/public_html/Shop/includes/functions/sessions.php on line 102 Warning: Cannot modify header information - headers already sent by (output started at /home/worldmo2/public_html/Shop/includes/functions/general.php:2845) in /home/worldmo2/public_html/Shop/includes/functions/general.php on line 65" And nothing else.... Please HELP!
Guest Posted October 16, 2008 Posted October 16, 2008 http://www.oscommerce.info/kb/osCommerce/G...mon_Problems/15
FIMBLE Posted October 16, 2008 Posted October 16, 2008 Headers already sent error: This means there is an output where there should not be one, an output sounds technical but it is usually a single blank space where it should not be! This is either at the very begining of the script so it may look like <?php when it should look like <?php Or at the end ?> when it should be ?> The file name with th error will be given in the message you recieive.i.e output started at /home/xxxxxxx/public_html/catalog/includes/application_top.php The error happens when a file is worked on by add in code, a contribution or similar. Check your home/worldmo2/public_html/Shop/includes/functions/general.php Sometimes you're the dog and sometimes the lamp post [/url] My Contributions
FIMBLE Posted October 16, 2008 Posted October 16, 2008 oops sorry Tom (again!) Sometimes you're the dog and sometimes the lamp post [/url] My Contributions
Guest Posted October 16, 2008 Posted October 16, 2008 :wacko: YES YES YES YES YES YES YES!!!! :D :lol: :rolleyes: THOUSANDS OF THANKS!!!!!! How you can fix, i'm not a php programer.... It's very nice to work with people like you!!!!!!!!!!!! I thought that something wrong was happening because I didn't touch anything... But my colege...
lindsayanng Posted October 16, 2008 Posted October 16, 2008 you find the blank space (before the opening and after the closeing <?php tags) AND YOU SIMPLY DELETE IT A great place for newbies to start Road Map to oscommerce File Structure DO NOT PM ME FOR HELP. My time is valuable, unless i ask you to PM me, please dont. You will get better help if you post publicly. I am not as good at this as you think anyways! HOWEVER, you can visit my blog (go to my profile to see it) and post a question there, i will find time to get back and answer you Proud Memeber of the CODE BREAKERS CLUB!!
Recommended Posts
Archived
This topic is now archived and is closed to further replies.