Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

install on w2k can't get past admin page


MeGaHeRtZ

Recommended Posts

I am still having troubles just getting the index.php in admin to come up properly.This is the original problem I have had from the beginning of working with oscommerce. At this menu screen this is the error I get at the top of the page.

 

Warning: main(includes/languages/english/): failed to open stream: No such

file or directory in

C:Xitamiwebpagescatalogadminincludesapplication_top.php on line 193

 

Warning: main(): Failed opening 'includes/languages/english/' for inclusion

(include_path='.;c:php4pear') in

C:Xitamiwebpagescatalogadminincludesapplication_top.php on line 193

 

 

Any selection I make off of this menu contains this error.

 

 

 

Error!

 

Unable to determine the page link!

 

Function used:

 

tep_href_link('', 'selected_box=configuration', 'NONSSL')

 

 

 

 

I have been working on these errors for two weeks. I have coded around them but the farther I go the more errors I come up with. Most functions in the catalog seem to work. I just can't access the Admin functions. I have been told it is a configuration problem. There must be one key to solve all the problems. But What? Could you please help me sort this out? Thanks in Advance, JIm

 

Also here is catalog/admin/include/configure.php

 

<?php

/*

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright © 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://localhost'); // eg, http://localhost or -

https://localhost should not be empty for productive servers

define('HTTP_CATALOG_SERVER', 'http://localhost');

define('HTTPS_CATALOG_SERVER', 'https://localhost');

define('ENABLE_SSL_CATALOG', 'false'); // secure webserver for catalog

module

define('DIR_FS_DOCUMENT_ROOT', 'C:/Xitami/webpages'); // where the pages

are located on the server

define('DIR_WS_ADMIN', '/catalog/admin/'); // absolute path required

define('DIR_FS_ADMIN', 'C:/Xitami/webpages/catalog/admin/'); // absolute

pate required

define('DIR_WS_CATALOG', '/catalog/'); // absolute path required

define('DIR_FS_CATALOG', 'C:/Xitami/webpages/catalog/'); // absolute path

required

define('DIR_WS_IMAGES', 'images/');

define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');

define('DIR_WS_CATALOG_IMAGES', DIR_WS_CATALOG . 'images/');

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_CATALOG_LANGUAGES', DIR_WS_CATALOG .

'includes/languages/');

define('DIR_FS_CATALOG_LANGUAGES', DIR_FS_CATALOG .

'includes/languages/');

define('DIR_FS_CATALOG_IMAGES', DIR_FS_CATALOG . 'images/');

define('DIR_FS_CATALOG_MODULES', DIR_FS_CATALOG . 'includes/modules/');

define('DIR_FS_BACKUP', DIR_FS_ADMIN . 'backups/');

 

// define our database connection

define('DB_SERVER', 'localhost'); // eg, localhost - should not be empty

for productive servers

define('DB_SERVER_USERNAME', 'Jim');

define('DB_SERVER_PASSWORD', '');

define('DB_DATABASE', 'islandgifts');

define('USE_PCONNECT', 'false'); // use persisstent connections?

define('STORE_SESSIONS', ''); // leave empty '' for default handler or set

to 'mysql'

Link to comment
Share on other sites

Take the easy way out, get on a server that oscommerce is installed .

Then cusomize it for your needs. * Edit * - Please do not make commercial postings to the forums - Johnson

Link to comment
Share on other sites

Take the easy way out, get on a server that oscommerce is installed .

Then cusomize it for your needs. * Edit *

I disagree with this option.

 

A few reasons...

 

First:

Get your hands dirty and know your store... there will be times when you pull your hair out, though we are all here to help and you will learn more and more about your store all the time.

 

Second:

I don't know any host that supplies the most current version of the osCommerce cart as part of their hosting packages. The majority of them supply version 2.1 (WAY outdated now!).

 

Third:

By looking at your initial post, are you trying to setup a local testing server? If so, than a host with osCommerce would be irrelevant.

 

Now that that's out of the way.

Check out this thread here...

http://www.oscommerce.com/forums/viewtopic.php?t=38964

 

If you're still having problems, post to the forums and I'll help where I can.

 

Cheers,

Tony

"The price of success is perseverance. The price of failure comes much cheaper."

Link to comment
Share on other sites

as a matter of fact I am trying to set up a local test server. then to become live server. win2k,xitami server, php & oscommerce. the catalog portion is no problem it works. I just can't access the admin portion (admin/index.php). I get the above mentioned errors. To make this more frustrating my first test server was on win98, xitami server, php & oscommerce. admin worked. I was just looking for the stability of win2k. There must be something I am missing . Any help would be appreciated.

Link to comment
Share on other sites

This path has me curious:

 

Warning: main(includes/languages/english/):

 

I have seen it display /.php before but not this.... :shock:

 

Have you altered application_top.php... or are using a mismatched version?

 

The error is generated from a call at line 193 of this file... a perfect place o begin looking :wink:

 

You say that "most" functions in the catalog work... which do not....?

Link to comment
Share on other sites

Have you altered application_top.php... or are using a mismatched version?

 

The error is generated from a call at line 193 of this file... a perfect place o begin looking

 

 

No I get this message from a fresh install. I have tried tweeking application_top.php and change the error message. If I delete the entire block of code preceding from line 193 up the error goes away. But there are problems further on in the heading_title not appearing and the table_heading_?????? not appearing. what tells oscommerce where to look for the files mentioned in application_top.php.

 

 

 

You say that "most" functions in the catalog work... which do not....?

 

 

I have been spending most of my time trying to get admin to work...

Link to comment
Share on other sites

This is what you should have around line 193:

 

// include the language translations

 require(DIR_WS_LANGUAGES . $language . '.php');

 $current_page = split('?', basename($PHP_SELF)); $current_page = $current_page[0]; // for BadBlue(Win32) webserver compatibility

 if (file_exists(DIR_WS_LANGUAGES . $language . '/' . $current_page)) {

   include(DIR_WS_LANGUAGES . $language . '/' . $current_page);

 }

 

 

From the error, it doesn't appear to be determining what the current page is - index.php ?

 

What happens if you type in http://localhost/catalog/admin/categories.php .....?

Link to comment
Share on other sites

From the error, it doesn't appear to be determining what the current page is - index.php ?

 

What happens if you type in http://localhost/catalog/admin/categories.php .....?

 

 

 

I am away from the machine in question will be back to it around 5:30 local time about 7 hrs. will you be on line then. if not can I email you.

Link to comment
Share on other sites

From the error' date=' it doesn't appear to be determining what the current page is - index.php ?

 

What happens if you type in http://localhost/catalog/admin/categories.php .....?

 

 

 

I get the same error I get from any selection on admin/index.php.

 

Error!

 

Unable to determine the page link!

 

Function used:

 

tep_href_link('', 'selected_box=configuration', 'NONSSL')

Link to comment
Share on other sites

Had a look around... others have had trouble with Xitami... any particular reason you need this?... make sure you edited the *correct* php.ini (Win System)

 

I develop locally on Win 2000 using the Easyphp package - Apache, MySQL, PHP4, PhpMyAdmin... takes me five minutes to do a fresh install, never had a problem.. :shock:

Link to comment
Share on other sites

Here is a localhost admin/includes/configure.php from one of my installations.... hope it helps - note the store sessions also:

 

<?php

/*

 $Id: configure.php,v 1.13 2002/07/20 09:08:31 project3000 Exp $



 osCommerce, Open Source E-Commerce Solutions

 http://www.oscommerce.com



 Copyright (c) 2002 osCommerce



 Released under the GNU General Public License

*/



// define our webserver variables

// FS = Filesystem (physical)

// WS = Webserver (virtual)

 define('HTTP_SERVER', 'http://localhost'); // eg, http://localhost or - https://localhost should not be NULL for productive servers

 define('HTTP_CATALOG_SERVER', 'http://localhost');

 define('HTTPS_CATALOG_SERVER', '');

 define('ENABLE_SSL_CATALOG', 'false'); // secure webserver for catalog module

 define('DIR_FS_DOCUMENT_ROOT', $DOCUMENT_ROOT); // where your pages are located on the server. if $DOCUMENT_ROOT doesnt suit you, replace with your local path. (eg, /usr/local/apache/htdocs)

 define('DIR_WS_ADMIN', '/admin/');

 define('DIR_FS_ADMIN', DIR_FS_DOCUMENT_ROOT . DIR_WS_ADMIN);

 define('DIR_WS_CATALOG', '/catalog/');

 define('DIR_FS_CATALOG', DIR_FS_DOCUMENT_ROOT . DIR_WS_CATALOG);

 define('DIR_WS_IMAGES', 'images/');

 define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');

 define('DIR_WS_CATALOG_IMAGES', DIR_WS_CATALOG . 'images/');

 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_CATALOG_LANGUAGES', DIR_WS_CATALOG . 'includes/languages/');

 define('DIR_FS_CATALOG_LANGUAGES', DIR_FS_CATALOG . 'includes/languages/');

 define('DIR_FS_CATALOG_IMAGES', DIR_FS_CATALOG . 'images/');

 define('DIR_FS_CATALOG_MODULES', DIR_FS_CATALOG . 'includes/modules/');

 define('DIR_FS_BACKUP', DIR_FS_ADMIN . 'backups/');



// define our database connection

 define('DB_SERVER', 'localhost');

 define('DB_SERVER_USERNAME', 'root');

 define('DB_SERVER_PASSWORD', '');

 define('DB_DATABASE', 'milestone');

 define('USE_PCONNECT', 'false');

 define('STORE_SESSIONS', 'mysql');

?>

Link to comment
Share on other sites

I develop locally on Win 2000 using the Easyphp package - Apache, MySQL, PHP4, PhpMyAdmin... takes me five minutes to do a fresh install, never had a problem.. :shock:

 

Maybe I was looking in thew wrong place but easyphp seems to be written in french ??? I cant speak or read french.. Is there an english version . . . site??

Link to comment
Share on other sites

http://www.easyphp.org/telechargements.php3

 

Choose the english download.... make the language change for mySQL as outlined here:

 

http://www.oscommerce.com/forums/viewtopic.php...=40351&start=20

 

Yes, the install process is in French... but its not too difficult to figure which buttons to click - well worth it. There *are* other packages which are similar out there.

Link to comment
Share on other sites

  • 2 weeks later...

I am having the same errors, I am running install mine on

FreeBSD 4.7 running apache and php 4.3.3

and have listed them here

http://www.oscommerce.com/forums/viewtopic.php?t=51439

 

the problem seems to be that $PHP_SELF is no longer supported in 4.3.3 and has to be replaced with $_SERVER["PHP_SELF"] we seemed to solve the problem by just adding

 

$PHP_SELF = $_SERVER["PHP_SELF"];

 

to the top line of application_top.php

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...