Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.

Trouble Adding a Information Page


Recommended Posts

i downloaded a osc template and had it installed on my server database.

everything looked nice except it doesnt have a "about us" link/page.

i want the "about us" to be the same format as "terms & conditions" or "privacy policy"


so this is what i did trying to add this "about us" page


osc>about.php (a copy of conditions.php and made following changes)




$Id: about.php 1739 2007-12-20 00:52:16Z hpdl $


osCommerce, Open Source E-Commerce Solutions



Copyright © 2003 osCommerce


Released under the GNU General Public License





require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_ABOUT);


$breadcrumb->add(NAVBAR_TITLE, tep_href_link(FILENAME_ABOUT));



osc>includes>filenames.php (added following information)


define('FILENAME_CONTACT_US', 'contact_us.php');

define('FILENAME_CONDITIONS', 'conditions.php');

define('FILENAME_ABOUT', 'about.php');

define('FILENAME_COOKIE_USAGE', 'cookie_usage.php');

define('FILENAME_CREATE_ACCOUNT', 'create_account.php');


osc>includes>footer.php (added following information)


<table cellpadding="0" cellspacing="0" border="0" class="footer">

<tr><td class="footer_td">

<table cellpadding="0" cellspacing="0" border="0"><tr><td><?php echo FOOTER_TEXT_BODY?>  <b><br /><a href="<?php echo tep_href_link('privacy.php')?>"><?php echo BOX_INFORMATION_PRIVACY?></a>  |  <a href="<?php echo tep_href_link('conditions.php')?>"><?php echo BOX_INFORMATION_CONDITIONS?></a>  |  <a href="<?php echo tep_href_link('about.php')?>"><?php echo BOX_INFORMATION_ABOUT?></a></b></td></tr></table>


osc>includes>boxes>information.php (added following information)


$info_box_contents = array();

$info_box_contents[] = array('text' => '<ul class="information">

<li class="bg_list3_un"><a href="' . tep_href_link(FILENAME_SHIPPING) . '">' . BOX_INFORMATION_SHIPPING . '</a></li>' .

'<li class="bg_list3"><a href="' . tep_href_link(FILENAME_PRIVACY) . '">' . BOX_INFORMATION_PRIVACY . '</a></li>' .

'<li class="bg_list3"><a href="' . tep_href_link(FILENAME_CONDITIONS) . '">' . BOX_INFORMATION_CONDITIONS . '</a></li>' .

'<li class="bg_list3"><a href="' . tep_href_link(FILENAME_ABOUT) . '">' . BOX_INFORMATION_ABOUT . '</a></li>' .

'<li class="bg_list3"><a href="' . tep_href_link(FILENAME_CONTACT_US) . '">' . BOX_INFORMATION_CONTACT . '</a></li>' .


osc>includes>languages>english.php (added following information)


// information box text in includes/boxes/information.php

define('BOX_HEADING_INFORMATION', 'Information');

define('BOX_INFORMATION_PRIVACY', 'Privacy Notice');

define('BOX_INFORMATION_CONDITIONS', 'Conditions of Use');

define('BOX_INFORMATION_ABOUT', 'About Us');

define('BOX_INFORMATION_SHIPPING', 'Shipping & Returns');

define('BOX_INFORMATION_CONTACT', 'Contact Us');


osc>includes>languages>english>about.php (a copy of conditions.php under the same directory, made several changes)




$Id: about.php 1739 2007-12-20 00:52:16Z hpdl $


osCommerce, Open Source E-Commerce Solutions



Copyright © 2002 osCommerce


Released under the GNU General Public License



define('NAVBAR_TITLE', 'About Us');

define('HEADING_TITLE', 'About Us');


define('TEXT_INFORMATION', 'Put here your About Us information.');





The "About Us" link did appear on my homepage footer next to conditions and privacy, but when i click on the link,

i was directed to mysite.com/osc/about.php. which seem to be correct, but the page doesnt load, instead i get this message:


Internal Server Error


The server encountered an internal error or misconfiguration and was unable to complete your request.


Please contact the server administrator, webmaster@mysite.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.


More information about this error may be available in the server error log.


Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.



I already did everything i could think of, PLEASE HELP!!!!


Link to comment
Share on other sites

Here's what i found in my server error log:


[error] [client xx.xxx.xx.x] SoftException in Application.cpp:xxx: File "/home/myserver/public_html/mysite.com/osc/about.php" is writeable by group, referer: http://mysite.com/osc/


[error] [client xx.xxx.xx.x] File does not exist:/home/myserver/public_html/mysite.com/404.shtml" referer: http://mysite.com/osc/


[error] [client xx.xxx.xx.x] File does not exist:/home/myserver/public_html/mysite.com/500.shtml" referer: http://mysite.com/osc/

Link to comment
Share on other sites


This topic is now archived and is closed to further replies.

  • Create New...