Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.

Unable to add new page to site


Recommended Posts

I have just put up a new site for my father-in-law (www.bobhaider.com). I created a new page called about.php and added the appropriate information in Information.php and english.php. Originally, everything looked great. Under the Information section on the front page was a new item called About the Author. When you clicked on it, it would go to the appropriate page. All was well, until I get a call the next day. Apparently users were no longer able to create accounts or were able to purchase anything. Every time they attempted to create an account or purchase something, the old: Warning: Cannot modify header information - headers already sent by (output started at /home/content/h/a/i/haiderrobert/html/catalog/includes/languages/english.php:1) in /home/content/h/a/i/haiderrobert/html/catalog/includes/functions/general.php on line 33


error message would appear (or some similar version).


I even tried just modifying an existing item in the english.php information catagory and it still does the same thing. I'm really perplexed by this one... Any ideas why this would happen?


Thanks all!



Link to comment
Share on other sites

Well, after working on this for a couple of hours, I finally got it to work if I just used existing item (privacy.php). I didn't need it anyway. Still, someday I'd like to figure out exactly what was breaking the code. I double-checked for all whitespaces and all other known issues of this type of error, but never did find anything. Oh well...

Link to comment
Share on other sites

Here is a description on how to add a new page.




There is a specific process you need to go through to add a page, or yyou can get errors like this. Basically your new page ended up from your renaming and copying to have some duplicate code in it, or rather the page you renamed to 'about.php' still had some code in it that refered back to it's original name, privacy.php.


Privacy.php however is a good choice to start with because it has minimal programming in it. In a nutshell a better way be to duplicate the page privacy.php and rename it 'about.php'. Do the same for it's language 'partner' in includes/languages/english/privacy.php so you end up with includes/languages/english/about.php.


Now you need to change the info in about.php so it connects to the language file about.php and then you have to 'tell' oscommerce you have a new page called 'about.php' by adding a definition in includes/filenames.php


The link describes this process.

Oscommerce site:



OSC to CSS, http://addons.oscommerce.com/info/7263 -Mail Manager, http://addons.oscommerce.com/info/8120

Link to comment
Share on other sites

You could always go for a dynamic pages contribution instead of creating them manually. Here is an example: Information Pages Unlimted

Upon receiving fixes and advice, too many people don't bother to post updates informing the forum of how it went. Until of course they need help again on other issues and they come running back!


Why receive the information you require in good faith for free, only to then have the attitude to ignore the people who gave it to you?


There's no harm in saying, 'Thanks, it worked'. On the contrary, it creates a better atmosphere.



Link to comment
Share on other sites


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

  • Create New...