Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Parse Error enountered


dafoc

Recommended Posts

I've installed the Osc onto a site which runs fine. Then I transfered the system to another domain. The admin is working all right, but when i run the catalog, there is this error:

 

Parse error: parse error in /includes/configure.php on line 38

 

Fatal error: Failed opening required 'DIR_WS_FUNCTIONSsessions.php' (include_path='') in /includes/application_top.php on line 171

 

What's wrong?

Link to comment
Share on other sites

I would look at your configure.php file for this line

  define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');

as both errors appear that they could be related to that line having a problem.

... if you want to REALLY see something that doesn't set up right out of the box without some tweaking,

try being a Foster Parent!

Link to comment
Share on other sites

Thanks. I've checked it but the line in the configure.php is exactly the same as that you listed.

 

I would look at your configure.php file for this line

 ?define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');

as both errors appear that they could be related to that line having a problem.

Link to comment
Share on other sites

check application_top,php for this code

// define how the session functions will be used
 require(DIR_WS_FUNCTIONS . 'sessions.php');

No longer giving free advice. Please place deposit in meter slot provided.  Individual: [=] SME: [==] Corporation: [===]
If deposit does not fit one of the slots provided then you are asking too much! :P

Is your Osc dated try Phoenix  raising oscommerce from the ashes.

Link to comment
Share on other sites

maybe here?

  define('DIR_WS_INCLUDES', 'includes/');

if not, post the section of your configure.php from both Catalog and Admin with the defines EXCLUDING the database defines.

... if you want to REALLY see something that doesn't set up right out of the box without some tweaking,

try being a Foster Parent!

Link to comment
Share on other sites

The line in application_top.php looks fine too. The whole thing works fine on another site which as the exact settings, and I only changed the url and dadabase stuff.

Note that I've added a featured products module so there's the definitions for it at the end.

 

Thanks a lot!

 

// Define the webserver and path parameters

// * DIR_FS_* = Filesystem directories (local/physical)

// * DIR_WS_* = Webserver directories (virtual/URL)

define('HTTP_SERVER', 'http://www.hyic.com'); // eg, http://localhost - should not be NULL for productive servers

define('HTTPS_SERVER', 'https://www.hyic.com'); // eg, https://localhost - should not be NULL for productive servers

define('ENABLE_SSL', false); // secure webserver for checkout procedure?

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

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

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

define('DIR_WS_INCLUDES', 'includes/'); // If "URL fopen wrappers" are enabled in PHP (which they are in the default configuration), this can be a URL instead of a local pathname

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', DIR_WS_CATALOG . 'pub/');

define('DIR_FS_DOCUMENT_ROOT', '/home/wh59950/public_html');

define('DIR_FS_CATALOG', '/home/wh59950/public_html/catalog/');

define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');

define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');

 

// define our database connection

....

 

//featured

define('MAX_DISPLAY_FEATURED_PRODUCTS', '3');

define('MAX_DISPLAY_FEATURED_PRODUCTS_LISTING', '10');

define('FEATURED_PRODUCTS_DISPLAY', true);

?>

Link to comment
Share on other sites

define('DIR_FS_DOCUMENT_ROOT', '/home/wh59950/public_html');

should be

define('DIR_FS_DOCUMENT_ROOT', '/home/wh59950/public_html/catalog');

No longer giving free advice. Please place deposit in meter slot provided.  Individual: [=] SME: [==] Corporation: [===]
If deposit does not fit one of the slots provided then you are asking too much! :P

Is your Osc dated try Phoenix  raising oscommerce from the ashes.

Link to comment
Share on other sites

define('HTTPS_SERVER', ''); //you don't use SSL

 

Where have all these entries gone?

 

define('HTTP_COOKIE_DOMAIN', 'www.hyic.com');

define('HTTPS_COOKIE_DOMAIN', '');

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

define('HTTPS_COOKIE_PATH', '');

 

 

Vger

Link to comment
Share on other sites

David;

 

The file clip you posted above appears to be the ADMIN configure.php

What about the CATALOG configure.php?

... if you want to REALLY see something that doesn't set up right out of the box without some tweaking,

try being a Foster Parent!

Link to comment
Share on other sites

It's bit of an older version which doesn't have the cookies settings included. I'm just comparing the files with those of the working system which dwells in the same host (therefore should have the same server settings). Basically what I've done was just download the files from the server for the other site and uploaded them to the new site, and change the configuration and upload the database. The admin part is working just fine. don't know what's going wrong.

 

define('HTTPS_SERVER', '');  //you don't use SSL

 

Where have all these entries gone?

 

define('HTTP_COOKIE_DOMAIN', 'www.hyic.com');

define('HTTPS_COOKIE_DOMAIN', '');

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

define('HTTPS_COOKIE_PATH', '');

Vger

Link to comment
Share on other sites

If you are referring to the file clip I posted it IS from includes/configure.php. Also, the file clip posted earlier was also from includes/configure.php (there are no references to the 'admin directory anywhere within it).

 

Vger

David;

 

The file clip you posted above appears to be the ADMIN configure.php

What about the CATALOG configure.php?

Link to comment
Share on other sites

oops. here it is

 

// Define the webserver and path parameters

// * DIR_FS_* = Filesystem directories (local/physical)

// * DIR_WS_* = Webserver directories (virtual/URL)

define('HTTP_SERVER', 'http://www.hyic.com'); // eg, http://localhost - should not be NULL for productive servers

define('HTTPS_SERVER', 'https://www.hyic.com'); // eg, https://localhost - should not be NULL for productive servers

define('ENABLE_SSL', false); // secure webserver for checkout procedure?

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

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

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

define('DIR_WS_INCLUDES', 'catalog/includes/'); // If "URL fopen wrappers" are enabled in PHP (which they are in the default configuration), this can be a URL instead of a local pathname

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', DIR_WS_CATALOG . 'pub/');

define('DIR_FS_DOCUMENT_ROOT', '/home/wh59950/public_html');

define('DIR_FS_CATALOG', '/home/wh59950/public_html/catalog/');

define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');

define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');

 

// define our database connection

 

//featured

define('MAX_DISPLAY_FEATURED_PRODUCTS', '3');

define('MAX_DISPLAY_FEATURED_PRODUCTS_LISTING', '10');

define('FEATURED_PRODUCTS_DISPLAY', true);

?>

 

David;

 

The file clip you posted above appears to be the ADMIN configure.php

What about the CATALOG configure.php?

Link to comment
Share on other sites

It's bit of an older version which doesn't have the cookies settings included

It would be much quicker to install a new version of osCommerce, and then swap over your website files. It could be done in under 30 minutes.

 

Vger

Link to comment
Share on other sites

the problem is that a lot of modifications have been done and we just need to have the same look and functions.

 

It would be much quicker to install a new version of osCommerce, and then swap over your website files.  It could be done in under 30 minutes.

 

Vger

Link to comment
Share on other sites

If your last post was indeed from catalog/includes/configure.php and not from catalog/admin/includes/configure.php (the default file structure), you might look at

define('DIR_WS_INCLUDES', 'catalog/includes/'); // If "URL fopen wrappers" are enabled in PHP (which they are in the default configuration), this can be a URL instead of a local pathname

my pre-MS1 version of osC2.2 has that line set as

 define('DIR_WS_INCLUDES', 'includes/'); // If "URL fopen wrappers" are enabled in PHP (which they are in the default configuration), this can be a URL instead of a local pathname

... if you want to REALLY see something that doesn't set up right out of the box without some tweaking,

try being a Foster Parent!

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...