Forums / Installing on a Linux/Unix Server / Installation Error Message

Installation Error Message

Locked

Started by nitram on 2 Oct 2007, 1:19 AM · Views: 4,493

Results 1 to 20 of 27
This thread is locked. New replies are disabled.
2 Oct 2007, 1:19 AM
#1
nitram avatar

nitram

New Zenner

Join Date:
Oct 2007
Posts:
14
Plugin Contributions:
0

Installation Error Message

Immediately following the installation of the Zen Cart I have the following error message:

Warning: session_start() [function.session-start]: Cannot find save handler files in /home/ibskinc/public_html/shop/includes/functions/sessions.php on line 108

Warning: Cannot modify header information - headers already sent by (output started at /home/ibskinc/public_html/shop/includes/functions/sessions.php:108) in /home/ibskinc/public_html/shop/includes/init_includes/init_templates.php on line 78

Would someone be able to assist me with this error?

Thanks...

2 Oct 2007, 6:22 AM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,515
Plugin Contributions:
176

Re: Installation Error Message

Is your public_html/shop/cache folder "writable", as directed during installation? It needs to be world-writable, which is typically CHMOD 777.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

2 Oct 2007, 12:26 PM
#3
nitram avatar

nitram

New Zenner

Join Date:
Oct 2007
Posts:
14
Plugin Contributions:
0

Re: Installation Error Message

DrByte:

Is your public_html/shop/cache folder "writable", as directed during installation? It needs to be world-writable, which is typically CHMOD 777.
Yes, the folder is already set to CHMOD 777.

2 Oct 2007, 3:23 PM
#4
nitram avatar

nitram

New Zenner

Join Date:
Oct 2007
Posts:
14
Plugin Contributions:
0

Re: Installation Error Message

Please, if anyone can help here, it would be greatly appreciated. I have a client loosing their source of income here...

2 Oct 2007, 8:36 PM
#5
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,515
Plugin Contributions:
176

Re: Installation Error Message

In your /includes/configure.php file, what are these set to?```
define('STORE_SESSIONS', '');
define('SQL_CACHE_METHOD', '
');
define('DIR_FS_SQL_CACHE', '****');

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

3 Oct 2007, 2:15 AM
#6
nitram avatar

nitram

New Zenner

Join Date:
Oct 2007
Posts:
14
Plugin Contributions:
0

Re: Installation Error Message

Here is what I have:

define('STORE_SESSIONS', 'db');
define('SQL_CACHE_METHOD', 'none');
define('DIR_FS_SQL_CACHE', '/home/ibskinc/public_html/shop/cache');

3 Oct 2007, 2:34 AM
#7
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,515
Plugin Contributions:
176

Re: Installation Error Message

If it's set to 'db', then it shouldn't even be trying to save any "files", since it's been directed to use the database.

Were there any warning messages or errors on the System Inspection screen during installation?

What's the URL to your zc_install folder?

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

3 Oct 2007, 2:43 AM
#8
nitram avatar

nitram

New Zenner

Join Date:
Oct 2007
Posts:
14
Plugin Contributions:
0

Re: Installation Error Message

No errors during installation that I am aware of.
That zc_install folder is not there. I used the Fantastico Installer via cPanel to install it...

3 Oct 2007, 3:40 AM
#9
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,515
Plugin Contributions:
176

Re: Installation Error Message

Oh.

Well ... when Fantastico fails, it's best to do a fresh regular install.
It could be that one or more files are corrupted or there is a permissions problem, or something else has gone wrong during the automated installation. We have no quality-control over what fantastico does.

So ... download a fresh copy of Zen Cart, unzip it, and follow the installation instructions in the /docs folder.
You might want to delete the files fantastico installed before you upload yours. Or else upload to a different folder.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

4 Oct 2007, 3:39 AM
#10
nitram avatar

nitram

New Zenner

Join Date:
Oct 2007
Posts:
14
Plugin Contributions:
0

Re: Installation Error Message

Ok, I cleaned out all occurances of Zen Cart per the Fantastico installation. I downloaded the latest release from this site and uploaded it to the server.

Ran the installation routine with no errors and still receive the following error:

Warning: session_start() [function.session-start]: Cannot find save handler files in /home/ibskinc/public_html/store/includes/functions/sessions.php on line 108

Warning: Cannot modify header information - headers already sent by (output started at /home/ibskinc/public_html/store/includes/functions/sessions.php:108) in /home/ibskinc/public_html/store/includes/init_includes/init_templates.php on line 78

Now what?

4 Oct 2007, 3:40 AM
#11
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,515
Plugin Contributions:
176

Re: Installation Error Message

What is the URL to your zc_install folder?
I want to look at the system-inspection details etc.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

4 Oct 2007, 8:08 AM
#13
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,515
Plugin Contributions:
176

Re: Installation Error Message

This is likely your problem:

WARNING: "PHP session.use_trans_sid = ON"

How to resolve it?
You can try the following, and/or work with your hosting company for the best way to do it on "their" servers.

PHP Session.use_trans_sid should be disabled.

The session.use_trans_sid setting in your server's PHP.INI file is set to ON.

This could potentially cause you some problems with session handling and possibly even security concerns.

You can sometimes work around this by setting an .htaccess parameter such as described here: http://www.olate.com/articles/252, or you could disable it in your PHP.INI if you have access to it.

For more information on the security risks it imposes, see: http://shh.thathost.com/secadv/2003-05-11-php.txt.

(You may have to create the .htaccess file if you don't already have one.)

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

4 Oct 2007, 3:04 PM
#14
nitram avatar

nitram

New Zenner

Join Date:
Oct 2007
Posts:
14
Plugin Contributions:
0

Re: Installation Error Message

OK, I did as you recommended and turned it off, but I am still getting the lines at the top of the page.

Do I need to uninstall it and re-install before it will take effect?

4 Oct 2007, 7:03 PM
#15
nitram avatar

nitram

New Zenner

Join Date:
Oct 2007
Posts:
14
Plugin Contributions:
0

Re: Installation Error Message

Also, when I attempt to enter the admin area, I receive the flowing errors as follows and then nothing at all below it:

Warning: session_start() [function.session-start]: Cannot find save handler files in /home/ibskinc/public_html/store/includes/functions/sessions.php on line 108

Warning: Cannot modify header information - headers already sent by (output started at /home/ibskinc/public_html/store/includes/functions/sessions.php:108) in /home/ibskinc/public_html/store/admin/includes/init_includes/init_templates.php on line 36

Warning: Cannot modify header information - headers already sent by (output started at /home/ibskinc/public_html/store/includes/functions/sessions.php:108) in /home/ibskinc/public_html/store/admin/includes/functions/general.php on line 34
Everything seems to center around this line 108 in the sessions.php file?

4 Oct 2007, 7:33 PM
#16
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,515
Plugin Contributions:
176

Re: Installation Error Message

Nitram:

Everything seems to center around this line 108 in the sessions.php file?

That is correct.

That line is part of the driver that tells PHP to activate a "session". A session is used to track everything that happens in your shopping "session" (or admin login "session"). Without a "session", you won't stay logged in, your cart contents will not be remembered from screen to screen, you won't be able to checkout, etc.

It seems your server has something wrong with its PHP configuration as it relates to sessions ... even the custom session manager overrides.

What happens if you change your configure.php files to use this:

define('STORE_SESSIONS', '');
```(ie: blank instead of 'db')

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

4 Oct 2007, 11:46 PM
#17
nitram avatar

nitram

New Zenner

Join Date:
Oct 2007
Posts:
14
Plugin Contributions:
0

Re: Installation Error Message

No difference, I am sorry to say...:unsure:

5 Oct 2007, 4:40 AM
#18
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,515
Plugin Contributions:
176

Re: Installation Error Message

Well, I'm sorry to say ... two things ... first, I've not seen this before -- even with thousands of Zen Cart installs on hundreds of different servers/hosting-companies. Second, I'm going to blame your server's configuration, as I eluded to in my previous post. I'm not sure if it's their PHP configuration or their filesystem permissions configuration, or something else ... or a combination of several things.

I can say with strong certainty that if you were to take this to another host (running a more traditional configuration) you're likely to see it work fine right away. For a list of recommended hosts, click the "hosting" link at the top of this page.

Sorry you're having trouble! Hopefully you'll give Zen Cart a try on another server so that you can enjoy all the benefits it offers you to get your ecommerce business going!

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

5 Oct 2007, 2:06 PM
#19
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,515
Plugin Contributions:
176

Re: Installation Error Message

Zend, the authors of PHP, have this on their forum:
http://www.zend.com/support/knowledgebase.php?kbid=144&view_only=1
... it suggests that either the session.save_handler setting in your php.ini file is set to something invalid (make sure there are no spaces inside the quotation marks), or else the session.save_path folder isn't writable.

Zen Cart attempts to override both of these, thus the suggestions I made earlier about alternate methods.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

5 Oct 2007, 2:23 PM
#20
nitram avatar

nitram

New Zenner

Join Date:
Oct 2007
Posts:
14
Plugin Contributions:
0

Re: Installation Error Message

Thanks for the additional information, but guess what? The 'session.save_handler' is already set to 'files'... :unsure: