Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Errors on the front page of my live shop. (index.php)


visc

Recommended Posts

Posted

Warning: session_start(): open(SESSION_WRITE_DIRECTORY\sess_da9648bced65363e099731e334779b67, O_RDWR) failed: No such file or directory (2) in D:\inetpub\xxx.com\wwwroot\catalog\includes\functions\sessions.php on line 97

 

Warning: session_start(): Cannot send session cookie - headers already sent by (output started at D:\inetpub\xxx.com\wwwroot\catalog\includes\functions\sessions.php:97) in D:\inetpub\xxx.com\wwwroot\catalog\includes\functions\sessions.php on line 97

 

Even the root is wrong.. How to change it (and where) to the correct one? My shop has gone live but received such errors at the index.php page.. I think there must be a problem with my configure.php page.. but i don't know where and which.. I suspected I got these lines wronged, which i copied from another website.

 

define('DIR_FS_DOCUMENT_ROOT', '/export/vhost/replicawatcheshouse.com/htdocs');

define('DIR_FS_CATALOG', '/export/vhost/replicawatcheshouse.com/htdocs/catalog/');

 

-visc

Posted

I would guess that your register_globals are set to off, when they need to be set to on in OSC. You can check this out in your admin tool, under server info. Do a search for register_globals.

 

If it's off, just ask your host to turn i on. OR you can install the Register Globals Patch (do a search on OSC under community/contributions.

 

OR you can download your .htaccess tool in your root directory, and add this line to it, anywhere:

 

php_value register_globals 1

 

If you don't have an .htaccess file, well, you should .... open up notepad and put the default OSC .htaccess in there:

# $Id: .htaccess,v 1.3 2003/06/12 10:53:20 hpdl Exp $

#

# This is used with Apache WebServers

#

# For this to work, you must include the parameter 'Options' to

# the AllowOverride configuration

#

# Example:

#

# <Directory "/usr/local/apache/htdocs">

# AllowOverride Options

# </Directory>

#

# 'All' with also work. (This configuration is in the

# apache/conf/httpd.conf file)

 

# The following makes adjustments to the SSL protocol for Internet

# Explorer browsers

 

<IfModule mod_setenvif.c>

<IfDefine SSL>

SetEnvIf User-Agent ".*MSIE.*" \

nokeepalive ssl-unclean-shutdown \

downgrade-1.0 force-response-1.0

</IfDefine>

</IfModule>

 

# Fix certain PHP values (commented out by default to prevent errors occuring on certain servers)

# The <IfModule container should be used to house these listings otherwise, if the PHP installation fails so will the web server.

<IfModule mod_php4.c>

#php_value session.use_trans_sid 0

php_value register_globals 1

</IfModule>

 

and name it .htaccess -- not as a text file ... but as just that file, and upload it to your root directory.

Jason

 

Simple 1-2-3 Intructions on how to get, install and configure SSL

 

The Google Sandbox explained

 

Simple to follow instructions on how to change the look of your OSC

 

How To Make A Horrible OSC Website

 

my toolbox: All things WordPress-related - All things Adobe-related - PHP Designer 2007 - Codecanyon Junkie - Crimson Editor - Winmerge - phpMyAdmin - WS_FTP

 

my installed contributions: Category Banners, File Upload feature-.77, Header Tags, Sort_Product_Attributes_1, XSellv2.3, Price Break 1.11.2, wishlist 3.5, rollover_category_images_v1.2, Short_Description_v2.1, UPSXML_v1_2_3, quickbooks qbi_v2_10, allprods v4.4, Mouseover-effect for image-buttons 1.0, Ultimate_SEO, AAP 1.41, Auto Select State Value, Fast Easy Checkout, Dynamic SiteMap v2.0, Image Magic, Links Manager 1.14, Featured Products, Customer Testimonials, Article Manager, FAQ System, and I'm sure more ...

Archived

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

×
×
  • Create New...