Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Adding New Pages - Help


Guest

Recommended Posts

Posted

I have searched the forum and found a few threads pertaining to this issue, however have yet to be able to get my new pages to work I get this.....

 

Warning: main(includes/languages/english/ABOUTUS) [function.main]: failed to open stream: No such file or directory in /usr/home/admin/public_html/shop/about_us.php on line 15

Fatal error: main() [function.require]: Failed opening required 'includes/languages/english/ABOUTUS' (include_path='.:/usr/lib/php') in /usr/home/admin/public_html/shop/about_us.php on line 15

 

I have added the info required to the application_top.php...

 

// added about_us and links
  define('FILENAME_LINKS', 'links.php'); 
  define('FILENAME_ABOUT_US', 'about_us.php');

 

I have added the files...

 

.../shop/links.php and .../shop/about_us.php

 

as well as

 

.../shop/includes/languages/english/links.php and .../shop/includes/languages/english/about_us.php

 

Please someone tell me what the hell I am doing wrong?

Posted

I amn't trying to add a new box, I want to add an entire page. I already have the links up and running, it is just getting the pages to work i can't manage lol.

Posted

Managed to fix the issue, it was pertaining to the NOSSL tag at the end of the line on application_top.php

 

Thanks for trying to help.

Posted

Then just go to the second link. It is still considered a box. Just like the shipping & returns, the contact us, Privacy notice, Conditiond of use. They are all box pages.

 

The first link tells how to be sure to put the link in one of the boxes correctly.

The second link tells you how to do the page.

 

Did you even go read it or just get pissed because it says box in the link.

Posted
Managed to fix the issue, it was pertaining to the NOSSL tag at the end of the line on application_top.php

 

Thanks for trying to help.

 

 

This the line you refering to.

// set the type of request (secure or not)

$request_type = (getenv('HTTPS') == 'on') ? 'SSL' : 'NONSSL';

 

Yeah take that out they only put it there to stop you from adding pages.

Posted

Managed to get the pages up an running, as above, with their own headings and titles, and just a plain text sentence, however when I tried to change the content to HTML I get this:

 

Fatal error: Cannot redeclare tep_db_connect() (previously declared in /usr/home/admin/public_html/shop/includes/functions/database.php:13) in /usr/home/admin/public_html/shop/includes/functions/database.php on line 13

 

Even after reverting to the backup, plain text, i know get this all the time, what is this error, and how do I fix it??

 

TIA

Posted

watch the files you're overriding. Code files go in the catalog folder, string files go in the catalog\includes\languages\english\ folder. If you mix them up you end up with that result. The files have the same name so it's easy to get confused.

 

And you should install one of the contributions that provides text pages instead of flooding your osc catalog with scripts.

http://www.oscommerce.com/community/contributions,1026

Archived

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

×
×
  • Create New...