Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Help - new page not found on server


artonsilk

Recommended Posts

Hello

I have followed the quote below to create a new page and added it succesfully to the information box - the only problem is when you click on the link on the website you get the error message page not found.

 

Any ideas. . . . . .

 

NB I couldn't find the new page.php so I created my own by copying the conditions.php

1. Rename the enclosed page (catalog/new_page.php) to whatever you need e.g foobar.php. Open it and change the 2 occurances of FILENAME_NEW_PAGE to match your chosen page name e.g FILENAME_FOOBAR. Upload to your catalog/ directory

 

2. Rename the enclosed new_page.php in catalog/includes/languages/english/

to your new name e.g foobar.php (Dont forget to add your contents!) Now upload to your server into catalog/includes/languages/english/

 

 

3. add to application_top.php the following

 

Define('FILENAME_FOOBAR', 'foobar.php');

 

Changing 'foobar' for your own chosen name of course!

 

4. in catalog/includes/boxes

 

add to information.php (or whichever box you want the new link to go into)a new line

 

'<a href="' . tep_href_link(FILENAME_FOOBAR, '', 'NONSSL') . '">' . BOX_INFORMATION_FOOBAR . '</a><br>' .

 

5. In catalog/includes/languages/english.php add new line

 

define('BOX_INFORMATION_FOOBAR', 'Foobar');

 

Again, change foobar to your own name.

artonsilk

Link to comment
Share on other sites

If I'm looking in the right place, it appears to me that you haven't defined FILENAME_WASHING in your /includes/filenames.php

:blush:

 

Or, reading your directions:

 

3. add to application_top.php the following

Define('FILENAME_FOOBAR', 'foobar.php');

Is it defined there?

:unsure:

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Link to comment
Share on other sites

After you get the link working, you'll need to work on the PHP page a bit.

 

It comes up blank now....

:blink:

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Link to comment
Share on other sites

Thank you for your help, I now have the page working - opening up as a blank page

please excuse my stupidity, but I am a complete novice of php code

 

where and how do I work on the php? - the actual file washing.php . . .

 

when the blank page opens up I noticed in the url 3 forward slashes

.co.uk///osCommerce/washing.php

but this happens nowhere else . . .

I have read somewhere that I nead to fix this - can you point me in the right direction

artonsilk

Link to comment
Share on other sites

You can either work on the washing.php using the control panel on your web site (NOT THE OSC FILE MANAGER!), or transfer it to your local PC and use a text editor like Notepad (NOT WORD!) to make changes then transfer it back.

 

About the extra slashes....

 

All your category links and information pages have too many slashes.

 

That's from an error in your /osCommerce/includes/configure.php file.

 

Please post it's contents (between CODE tags to preserve formatting if possible).

 

PLEASE NOTE!

 

THERE MAY BE SENSITIVE INFO REGARDING YOUR DATABASE IN THIS FILE (USERNAME AND PASSWORD).

 

WE DON'T NEED THAT, SO PLEASE DO NOT POST THOSE LINES.

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Link to comment
Share on other sites

the configure.php file - thank you for your help

used XXX for the info

 

<?php
/*
osCommerce, Open Source E-Commerce Solutions
http://www.oscommerce.com

Copyright (c) 2003 osCommerce

Released under the GNU General Public License
*/

// Define the webserver and path parameters
// * DIR_FS_* = Filesystem directories (local/physical)
// * DIR_WS_* = Webserver directories (virtual/URL)
define('HTTP_SERVER', 'http://paula.alivewww.co.uk//');
define('HTTPS_SERVER', 'http://paula.alivewww.co.uk//');
define('ENABLE_SSL', false);
define('HTTP_COOKIE_DOMAIN', 'paula.alivewww.co.uk'); 
define('HTTPS_COOKIE_DOMAIN', 'paula.alivewww.co.uk'); 
define('HTTP_COOKIE_PATH', 'http:// paula.alivewww.co.uk/osCommerce/');
define('HTTPS_COOKIE_PATH', 'https://paula.alivewww.co.uk/osCommerce/');
define('DIR_WS_HTTP_CATALOG', '/osCommerce/');
define('DIR_WS_HTTPS_CATALOG', '/osCommerce/');
define('DIR_WS_IMAGES', 'images/');
define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');
define('DIR_WS_INCLUDES', 'includes/');
define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/');
define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');
define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/');
define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');
define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');

define('DIR_WS_DOWNLOAD_PUBLIC', 'pub/');
define('DIR_FS_CATALOG', '');
define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');
define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');

// define our database connection
define('DB_SERVER', 'localhost');
define('DB_SERVER_USERNAME', 'XXX'); 
define('DB_SERVER_PASSWORD', 'XXX'); 
define('DB_DATABASE', 'XXX');
define('USE_PCONNECT', 'true');
define('STORE_SESSIONS', 'mysql');
?>

artonsilk

Link to comment
Share on other sites

This part:

 

define('HTTP_SERVER', 'http://paula.alivewww.co.uk//');
define('HTTPS_SERVER', 'http://paula.alivewww.co.uk//');
define('ENABLE_SSL', false);
define('HTTP_COOKIE_DOMAIN', 'paula.alivewww.co.uk'); 
define('HTTPS_COOKIE_DOMAIN', 'paula.alivewww.co.uk'); 
define('HTTP_COOKIE_PATH', 'http:// paula.alivewww.co.uk/osCommerce/');
define('HTTPS_COOKIE_PATH', 'https://paula.alivewww.co.uk/osCommerce/');

Should be:

 

define('HTTP_SERVER', 'http://paula.alivewww.co.uk');
define('HTTPS_SERVER', 'http://paula.alivewww.co.uk');
define('ENABLE_SSL', false);
define('HTTP_COOKIE_DOMAIN', '.paula.alivewww.co.uk'); 
define('HTTPS_COOKIE_DOMAIN', '.paula.alivewww.co.uk'); 
define('HTTP_COOKIE_PATH', '/');
define('HTTPS_COOKIE_PATH', '/');

If you need help ironing the kinks out of washing.php, I can probably help there.

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Link to comment
Share on other sites

very many thanks for your help

the /// problem is now sorted and working as it should with just one /

 

I am going to give the file washing.php ago, but I may get back to you . . .

thanks again

artonsilk

Link to comment
Share on other sites

I went on your advice into the new file page, added to the information box, via my web hosts domain control panel.

The new page washing.php now works, brilliant!! - it was easy when I realised that the 2 new files contained different code

oscommerce/washing.php

oscommerce/includes/languages/english/washing.php

 

thank again you for your help - much appreciated

artonsilk

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...