Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Installing osCommerce


Myrddin

Recommended Posts

Posted

I've been having is that after I set up and run the install files in osCommerce 2.2 nothing shows up on either the admin tools page or the catalog page..... and I keep getting the following error on my server

 

---ERROR----

 

[sun Dec 15 20:17:42 2002] [error] PHP Parse error: parse error, expecting `','' or `';'' in /u1/shop/www/admin/admin/includes/classes/sessions.php on line 33

[sun Dec 15 20:17:42 2002] [error] PHP Fatal error: Call to undefined function: session_set_save_handler() in /u1/shop/www/admin/admin/includes/functions/sessions.php on line 63

 

 

----END of ERROR----

 

any ideas?

 

I've tried it in several different locations on my server as well as with several different ways of configuring the catalog including both manually and as well as useing the install scripts

 

I've also looked at all the pages in question to no avail....

Posted

Look at the file /u1/shop/www/admin/admin/includes/classes/sessions.php, line 33.

Seems there is a ; missing there (or one or two lines above it).

If you have downloaded the snapshot AFTER Fri Nov 22 your sessions.php should look EXACTLY like this:

 

http://cvs.sourceforge.net/cgi-bin/viewcvs....viewcvs-markup

 

HTH

Mattice

"Politics is the art of preventing people from taking part in affairs which properly concern them"

Posted

I followed your instructions to the letter..... (and even reinstalled the latest version of the script -20021215) and went even as far as copying the code from the screen you showed me only to once again run into this error

 

---befor I added the new code that you had shown----

 

[Mon Dec 16 13:03:37 2002] [error] PHP Parse error:  parse error, expecting `','' or `';'' in /usr/pkg/share/httpd/htdocs/catalog2/includes/classes/sessions.php on line 33

[Mon Dec 16 13:03:37 2002] [error] PHP Fatal error:  Call to undefined function:  session_set_save_handler() in /usr/pkg/share/httpd/htdocs/catalog2/includes/functions/sessions.php on line 63

 

 

---- after I added the code that you had shown ----

 

[Mon Dec 16 13:07:19 2002] [error] PHP Parse error:  parse error, expecting `','' or `';'' in /usr/pkg/share/httpd/htdocs/catalog2/includes/classes/sessions.php on line 33

[Mon Dec 16 13:07:19 2002] [error] PHP Fatal error:  Call to undefined function:  session_set_save_handler() in /usr/pkg/share/httpd/htdocs/catalog2/includes/functions/sessions.php on line 63

[Mon Dec 16 13:07:25 2002] [error] PHP Parse error:  parse error, expecting `','' or `';'' in /usr/pkg/share/httpd/htdocs/catalog2/admin/includes/classes/sessions.php on line 34

[Mon Dec 16 13:07:25 2002] [error] PHP Fatal error:  Call to undefined function:  session_set_save_handler() in /usr/pkg/share/httpd/htdocs/catalog2/admin/includes/functions/sessions.php on line 63

 

any ideas now? :?

thank you for your help so far :)

Posted

My instructions did mention you needed to check your snapshot version

so I hope you did that...

;)

Anyway.. can you post the lines that seem to be giving the first error?

 

Mattice

"Politics is the art of preventing people from taking part in affairs which properly concern them"

Posted

this is the code mentioned in the first error as is shown using the following command at the prompt

 

cat sessions.php|more

 

 

class php3session {

   var $name = PHP_SESSION_NAME;

   var $auto_start = false;

   var $referer_check = false;



   var $save_path = PHP_SESSION_SAVE_PATH;

   var $save_handler = 'php3session_files';



   var $lifetime = 0;



   var $cache_limiter = 'nocache';

   var $cache_expire = 180;



   var $use_cookies = true;

   var $cookie_lifetime = 0;

   var $cookie_path = substr(DIR_WS_ADMIN, 0, -1);

   var $cookie_domain = '';



   var $gc_probability = 1;

   var $gc_maxlifetime = 0;



   var $serialize_handler = 'php';

   var $ID;



   var $nr_open_sessions = 0;

   var $mod_name = '';

   var $id;

   var $delimiter = "n";

   var $delimiter_value = '[==]';



   function php3session() {

     $this->mod_name = $this->save_handler;

   }

 }

Posted

ok...... so...... I'm having the worst time with this.... but I know from what I've seen that this can and will be a Great Catalog program once I get it up and running and can get worked through all the problems I've been having with it ....... my concern as of late while trying to install this script is that the problem with it is not the program itself.... but rather between the keyboard and the chair.....

 

would there be anyone willing to help me with a step by step install to help me get it up and running atleast once? if so please message me!!

Posted

ok...... so I've redone the fresh install from scratch again... (including recreating the mysql users and database) in the directory:

 

/usr/pkg/share/httpd/htdocs/catalog

/usr/pkg/share/httpd/htdocs/catalog/admin

 

using the Instalation guide I got over at oscdox.com (thank you very much for telling me about this Aodhan no one had mentioned it before)

 

and tho the install script worked nothing else at all worked not even the documentation pages when I tried running the scripts I got the following error in my /var/log/httpd/error_log file

 

[Mon Dec 16 21:41:32 2002] [error] PHP Parse error:  parse error, expecting `','' or `';'' in /usr/pkg/share/httpd/htdocs/catalog/admin/includes/classes/sessions.php on line 33

[Mon Dec 16 21:41:32 2002] [error] PHP Fatal error:  Call to undefined function:  session_set_save_handler() in /usr/pkg/share/httpd/htdocs/catalog/admin/includes/functions/sessions.php on line 63

 

and I've checked that file against the one that I was looking at in an earlier post.... and they're exactly the same..... but all I get each time I try to is a blank screen and a set of errors in my error_log file ........

 

the site I'm setting it up on is http://24.66.247.134/catalog/ if you'd like to take a look and tell me what you think... again I know that this can be a great program if it where only possible for me to be able to get it running....

 

if anyone has any ideas please feel free to contact me..... (I'm sorry but I can't afford to pay anyone for they're work right now but any help that could be donated to me would be greatly appreciated) I'm sure I could fix it myself if someone would be willing to tell me how......

 

Thank you for you time

Posted

okie....... it seems that the error is caused by the following code the error in the sessions.php file the ; error has to do with the var keyword. for some reason you can not define a variable this way

 

any ideas as to why this is throing me an error?

 

var $myvar= substr(DIR_WS_ADMIN, 0,-1);

 

for an example......

 

var $myvar= strsub("FRED",0,-1);

 

should return me a varaible with the letters FRE in it

 

but the code that's in the script is giving me this error

 

[Mon Dec 16 23:18:35 2002] [error] PHP Parse error:  parse error, expecting `','' or `';'' in /usr/pkg/share/httpd/htdocs/catalog/includes/classes/sessions.php on line 33

[Mon Dec 16 23:18:35 2002] [error] PHP Fatal error:  Call to undefined function:  session_set_save_handler() in /usr/pkg/share/httpd/htdocs/catalog/includes/functions/sessions.php on line 63

 

 

any help please?

Posted

I am also having the same problems as Myrddin and I am wondering if it is my own doing. Currently I have the snapshot from 12-12-02 installed but nothing is coming up on the Catalog and Admin default pages. I have no way of seeing if I am generating any errors because I have it on my Service Providers machine.

Posted

I have the 2002 12 15 snapshot

 

I've looked around at the php web site and so forth.....

 

and it says not to do

 

var $cookie_path = substr(DIR_WS_ADMIN, 0, -1);

 

couse it won't work... and that's why it's generating the errors that it is

 

 

but I don't know how to change it so that the site will work properly with the way it was set up to generate cookies...

 

any ideas?

Posted

I was just wondering if anyone had any ideas yet as to the problems I've been having with running this script?

  • 1 year later...
Posted

I was having this problem as well. I just now realized how old these posts are.

 

I too was receiving the Parse error: parse error, expecting `','' or `';'' in /path/to/admin/functions/sessions.php

 

After what seemed like an eternity of searching I found this gem:

 

http://www.oscommerce.nl/forums/index.php?showtopic=2166

 

It seems to be mostly posts from the Netherlands but there is a tidbit towards the end in English that states:

 

Re: Fatal error: Call to undefined function:session_set_save_handler()

This problem was solved by installing an additional php4 extension module: 'php4-session' - which is described as 'PHP functions for preserving certain data across subsequent accesses'. Under SuSE 9.1 this was not one of the extension modules installed by default when php was installed.

 

 

Sure, enough...My server is Suse 9.1 running about as stripped down as it could be...and I was in fact missing php4-session. After I installed that (which requires mm libraries which were also not installed...) , restarted httpd, the admin page suddenly worked.

 

I am not sure how many other people would be boneheaded enough to leave out crucial modules...but thats what worked for me. YMMV

 

:rolleyes:

Archived

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

×
×
  • Create New...