lynkep1 Posted November 19, 2006 Posted November 19, 2006 I am totally new to oscommerce and php. To date our shop has been embedded in website coding with paypal shopping cart. We have just changed hosts and now have access to oscommerce which is more like I wanted the shop to resemble. I installed through cpanelx as directed but when I go to admin of shop I get error messages at the top. I followed the steps given by hosting faq to replace error reporting and got the following message, and file reverted back to original: -------------------------------------------------------------------------------- /home/scrappy/public_html/Shop/includes/application_top.php File Saved -------------------------------------------------------------------------------- [a fatal error or timeout occurred while processing this directive] I also had the following error messages: Warning: session_save_path() [function.session-save-path]: SAFE MODE Restriction in effect. The script whose uid is 32049 is not allowed to access owned by uid 0 in /home/scrappy/public_html/Shop/admin/includes/functions/sessions.php on line 213 Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/scrappy/public_html/Shop/admin/includes/functions/sessions.php:213) in /home/scrappy/public_html/Shop/admin/includes/functions/sessions.php on line 68 and tried to amend the configure.php as directed to change the text showing to our personal welcome etc and now my error messages are showing as follows, I think I totally screwed up the configure.php file. Warning: session_save_path() [function.session-save-path]: SAFE MODE Restriction in effect. The script whose uid is 32049 is not allowed to access owned by uid 0 in /home/scrappy/public_html/Shop/includes/functions/sessions.php on line 252 Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /home/scrappy/public_html/Shop/includes/functions/sessions.php:252) in /home/scrappy/public_html/Shop/includes/functions/sessions.php on line 98 Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/scrappy/public_html/Shop/includes/functions/sessions.php:252) in /home/scrappy/public_html/Shop/includes/functions/sessions.php on line 98 ?php /* $Id: index.php,v 1.1 2003/06/11 17:38:00 hpdl Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 2003 osCommerce Released under the GNU General Public License */ define('TEXT_MAIN', . Welcome to Scrappy Cards and Capers Online Store. To view products click on the links to the left and then the item of your choice. Where there is a drop down box in the item description that mains you can make a choice prior to adding to your cart, ' . tep_image(DIR_WS_IMAGES . 'default/1.gif') . ' ' . tep_image(DIR_WS_IMAGES . 'default/2.gif') . ' Editing Page Texts The text shown here can be modified in the following file, on each language basis: [path to catalog]/includes/languages/' . $language . '/' . FILENAME_DEFAULT . ' That file can be edited manually, or via the Administration Tool with the Languages->' . ucfirst($language) . '->Define or Tools->File Manager modules. The text is set in the following manner: define(\'TEXT_MAIN\', \'This is a default setup of the osCommerce project...\'); The text highlighted in green may be modified - it is important to keep the define() of the TEXT_MAIN keyword. To remove the text for TEXT_MAIN completely, the following example is used where only two single quote characters exist: define(\'TEXT_MAIN\', \'\'); More information concerning the PHP define() function can be read here. ' . tep_image(DIR_WS_IMAGES . 'default/3.gif') . ' Securing The Administration Tool It is important to secure the Administration Tool as there is currently no security implementation available. ' . tep_image(DIR_WS_IMAGES . 'default/4.gif') . ' Online Documentation Online documentation can be read at the osCommerce Knowledge Base site. Community support is available at the osCommerce Community Support Forums site. If you wish to download the solution powering this shop, or if you wish to contribute to the osCommerce project, please visit the support site of osCommerce. This shop is running on osCommerce version ' . PROJECT_VERSION . '.'); define('TABLE_HEADING_NEW_PRODUCTS', 'New Products For %s'); define('TABLE_HEADING_UPCOMING_PRODUCTS', 'Upcoming Products'); define('TABLE_HEADING_DATE_EXPECTED', 'Date Expected'); if ( ($category_depth == 'products') || (isset($HTTP_GET_VARS['manufacturers_id'])) ) { define('HEADING_TITLE', 'Let\'s See What We Have Here'); define('TABLE_HEADING_IMAGE', ''); define('TABLE_HEADING_MODEL', 'Model'); define('TABLE_HEADING_PRODUCTS', 'Product Name'); define('TABLE_HEADING_MANUFACTURER', 'Manufacturer'); define('TABLE_HEADING_QUANTITY', 'Quantity'); define('TABLE_HEADING_PRICE', 'Price'); define('TABLE_HEADING_WEIGHT', 'Weight'); define('TABLE_HEADING_BUY_NOW', 'Buy Now'); define('TEXT_NO_PRODUCTS', 'There are no products to list in this category.'); define('TEXT_NO_PRODUCTS2', 'There is no product available from this manufacturer.'); define('TEXT_NUMBER_OF_PRODUCTS', 'Number of Products: '); define('TEXT_SHOW', 'Show:'); define('TEXT_BUY', 'Buy 1 \''); define('TEXT_NOW', '\' now'); define('TEXT_ALL_CATEGORIES', 'All Categories'); define('TEXT_ALL_MANUFACTURERS', 'All Manufacturers'); } elseif ($category_depth == 'top') { define('HEADING_TITLE', 'What\'s New Here?'); } elseif ($category_depth == 'nested') { define('HEADING_TITLE', 'Categories'); } ?> How do I get the file back? No I didn't do a backup, as I didn't realise I could at that stage. Our shop url is www.scrappycardsandcapers.com/Shop Any help would be greatly appreciated. Thanks
lynkep1 Posted November 19, 2006 Author Posted November 19, 2006 ok found a solution in another post to part of my problem, got rid of the 3 main error messages that kept appearing (/tmp instead of tmp in sessions) now am just down to this problem showing when click on online catalog from admin area, I think I just need a copy of the original index.php file to replace the following ?php /* $Id: index.php,v 1.1 2003/06/11 17:38:00 hpdl Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 2003 osCommerce Released under the GNU General Public License */ define('TEXT_MAIN', . Welcome to Scrappy Cards and Capers Online Store. To view products click on the links to the left and then the item of your choice. Where there is a drop down box in the item description that mains you can make a choice prior to adding to your cart, ' . tep_image(DIR_WS_IMAGES . 'default/1.gif') . ' ' . tep_image(DIR_WS_IMAGES . 'default/2.gif') . ' Editing Page Texts The text shown here can be modified in the following file, on each language basis: [path to catalog]/includes/languages/' . $language . '/' . FILENAME_DEFAULT . ' That file can be edited manually, or via the Administration Tool with the Languages->' . ucfirst($language) . '->Define or Tools->File Manager modules. The text is set in the following manner: define(\'TEXT_MAIN\', \'This is a default setup of the osCommerce project...\'); The text highlighted in green may be modified - it is important to keep the define() of the TEXT_MAIN keyword. To remove the text for TEXT_MAIN completely, the following example is used where only two single quote characters exist: define(\'TEXT_MAIN\', \'\'); More information concerning the PHP define() function can be read here. ' . tep_image(DIR_WS_IMAGES . 'default/3.gif') . ' Securing The Administration Tool It is important to secure the Administration Tool as there is currently no security implementation available. ' . tep_image(DIR_WS_IMAGES . 'default/4.gif') . ' Online Documentation Online documentation can be read at the osCommerce Knowledge Base site. Community support is available at the osCommerce Community Support Forums site. If you wish to download the solution powering this shop, or if you wish to contribute to the osCommerce project, please visit the support site of osCommerce. This shop is running on osCommerce version ' . PROJECT_VERSION . '.'); define('TABLE_HEADING_NEW_PRODUCTS', 'New Products For %s'); define('TABLE_HEADING_UPCOMING_PRODUCTS', 'Upcoming Products'); define('TABLE_HEADING_DATE_EXPECTED', 'Date Expected'); if ( ($category_depth == 'products') || (isset($HTTP_GET_VARS['manufacturers_id'])) ) { define('HEADING_TITLE', 'Let\'s See What We Have Here'); define('TABLE_HEADING_IMAGE', ''); define('TABLE_HEADING_MODEL', 'Model'); define('TABLE_HEADING_PRODUCTS', 'Product Name'); define('TABLE_HEADING_MANUFACTURER', 'Manufacturer'); define('TABLE_HEADING_QUANTITY', 'Quantity'); define('TABLE_HEADING_PRICE', 'Price'); define('TABLE_HEADING_WEIGHT', 'Weight'); define('TABLE_HEADING_BUY_NOW', 'Buy Now'); define('TEXT_NO_PRODUCTS', 'There are no products to list in this category.'); define('TEXT_NO_PRODUCTS2', 'There is no product available from this manufacturer.'); define('TEXT_NUMBER_OF_PRODUCTS', 'Number of Products: '); define('TEXT_SHOW', 'Show:'); define('TEXT_BUY', 'Buy 1 \''); define('TEXT_NOW', '\' now'); define('TEXT_ALL_CATEGORIES', 'All Categories'); define('TEXT_ALL_MANUFACTURERS', 'All Manufacturers'); } elseif ($category_depth == 'top') { define('HEADING_TITLE', 'What\'s New Here?'); } elseif ($category_depth == 'nested') { define('HEADING_TITLE', 'Categories'); } ?> Thanks Lyn.
Guest Posted November 21, 2006 Posted November 21, 2006 looks like you are missing a < Edit the index.php file find: ?php /* $Id: index.php,v 1.1 2003/06/11 17:38:00 change to <?php /* $Id: index.php,v 1.1 2003/06/11 17:38:00 h
lynkep1 Posted November 21, 2006 Author Posted November 21, 2006 thanks, This problem is now fixed, shop working perfectly, thanks to all who have helped.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.