Myrddin Posted December 23, 2002 Posted December 23, 2002 ok.... I've tried all of the following: Snapshots: 20021214 20021215 20021217 20021218 20021222 and November Loaded 4 and none have worked..... to which I've been sort of getting annoyed.... I'm running (software) apache 1.3.27 php 4.2.3 MySQL 3.23.49 NetBSD 1.6 Perl 5.6.1 PhpMyAdmin 2.2.0 (hardware) P133mhz 48mb Ram 2x 2gig hdd's these are the errors I've been getting with every version I've tried so far.... [Mon Dec 23 04:00:23 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 23 04:00:23 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 offered would be Greatly appreciated.... couse I'm going nuts here trying to figure this all out..... to see what the catalog looks like with what I've been able to get going so far (again this has been the same results with every version I've tried) http://24.66.247.134 and to see what I've got my php info set to you can look here to see if I've got anything set wrong http://24.66.247.134/php.php as for the installation instructions I've followed them to the letter (both that which came with the program.... and those that I got over at http://www.oscdox.com I've also tried to no avail (again on all versions listed) everything sugguested to me in all of the following threads.... http://www.oscommerce.com/forums/viewtopic.php?t=29602 http://www.oscommerce.com/forums/viewtopic.php?t=29879 http://www.oscommerce.com/forums/viewtopic.php?t=30015 I've also tried asking over at the phpbuilder.com forums as well as talking to the person who first turned me onto php and also a friend of mine who both works at the University of Saskatchewan Computer Science Department and is also the head of the Tech committe over at the Saskatoon Freenet Association...... so basically I've pretty much tapped out my sources.... and I sincerly hope that there's someone here who can give me a hand with this.... I've looked at other setup's on the net but nothing has caught my eye like this program has.... and I've not found anything else that even comes close to what this one offers.... and as it turns out it's exactly what I need for my site (lol.... if I can get it working that is)
Myrddin Posted December 25, 2002 Author Posted December 25, 2002 lol.... if anyone could give me a hand with this it would be most appreciated..... I've not the foggiest idea as to why this isn't working for me but seems to work for everyone else who's tired it.... (including the snapshot's that I've tried.... ) if someone could give me a hand or let me know what I'm doing wrong please let me know.... Thanks again.... Myrddin
Guest Posted December 26, 2002 Posted December 26, 2002 I'm running (software) apache 1.3.27 php 4.2.3 MySQL 3.23.49 NetBSD 1.6 Perl 5.6.1 PhpMyAdmin 2.2.0 All this seems fine ... (hardware)P133mhz 48mb Ram 2x 2gig hdd's The hardware isn't important, as long as the Operating System (NetBSD here) will boot up & do it's thing. The only hardware requirement osC imposes is a teeny weeny bit of disk space. these are the errors I've been getting with every version I've tried so far.... [Mon Dec 23 04:00:23 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 23 04:00:23 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 Could you please post lines 28-38 of catalog/includes/classes/sessions.php?? It looks like a quote or semicolon is missing, but one can't be sure until one looks. The second error /should/ go away once the first one is resolved. ... University of Saskatchewan ? Yay for Saskatchewan. Yay for Sasktel. They are going to start their large-scale rollout of broadband in Newcastle, Australia very very soon. Anything has to be better than Telstra. Do you know any Sasktelians that I can suck up to for a job??
Myrddin Posted December 27, 2002 Author Posted December 27, 2002 I belive these are the lines your asking for.... (I've looked and checked.... they are exactly the same in both sessions.php files...) var $cache_limiter = 'nocache'; var $cache_expire = 180; var $use_cookies = true; var $cookie_lifetime = 0; var $cookie_path = substr(DIR_WS_CATALOG, 0, -1); var $cookie_domain = ''; var $gc_probability = 1; var $gc_maxlifetime = 0;
Ajeh Posted December 27, 2002 Posted December 27, 2002 I know zero about the server side of things ... :shock: But while poking around on some of the links you gave, I was looking at the sameness/differences of php One thing that caught my attention and may have absolutely nothing to do with how it sounds ... This is in your php settings: Configure Command './configure' '--without-mysql' '--without-pcre-regex' '--disable-posix' '--disable-session' '--disable-xml' '--with-config-file-path=/usr/pkg/etc' '--with-exec-dir=/usr/pkg/libexec/php4' '--with-regex=system' '--enable-discard-path' '--enable-force-cgi-redirect' '--enable-memory-limit' '--enable-track-vars' '--with-apxs=/usr/pkg/sbin/apxs' '--host=i386--netbsdelf' '--prefix=/usr/pkg' Mine reads: Configure Command './configure' '--with-apxs=/usr/local/apache/bin/apxs' '--with-xml' '--enable-bcmath' '--enable-calendar' '--enable-ftp' '--with-gd=../gd-1.8.4' '--with-jpeg-dir=/usr/local' '--with-png-dir=/usr' '--with-imap=../imap-2001.BETA.SNAP-0105220031' '--with-mcrypt' '--with-ming=../ming-0.1.1' '--enable-magic-quotes' '--with-mysql' '--with-pear' '--enable-safe-mode' '--enable-track-vars' '--with-ttf' '--enable-versioning' '--with-zlib' The part that caught my eye was mine says with-mysql and your's says without-mysql Granted I have no clue what either really means to the code ... but mine works and your's does not. 8)
VyReN Posted December 27, 2002 Posted December 27, 2002 My thought would be to verify /catalog/includes/configure.php around line 19 where DIR_WS_CATALOG is defined... Verify you didn't get something goofy in there (Like a semicolin)... But I'm guessing. :D Looking in my sessions.php at line 33 was: var $cookie_path = substr(DIR_WS_CATALOG, 0, -1); Other than that -- you have got me... -Glen www.glaceyar.com
Myrddin Posted December 27, 2002 Author Posted December 27, 2002 Sorry don't know anyone at Sasktel who's in charge of hiring..... :) so I'm afraid I'm not much help to you there...... but be warned..... personally for my internet access (also for my web site's access) I use Shaw www.shaw.ca just because it's more relyable than Sasktel and I get much better speeds with it.... (shaw is a cable ISP sasktel is a A-DSL) and tho sasktel has wanted the internet gateway to saskatchewan for many years now.... the University of Saskatchewan won't give it to them as they're not relyable enough (for the past 10 or so years) to be granted permission to host it.... :) (just to let you know a bit about the company before you get to happy about it) :) but then on the other hand they can also be alot better than other company's I've seen around Canada and the US..... (have seen ISP's in 3 provinces in Canada and a couple of the states when I lived there.... ) any way good luck with Sasktel when they get there.... and thanks for all the help :) it's Greatly appreciated :)
Myrddin Posted December 27, 2002 Author Posted December 27, 2002 Posted: Thu Dec 26, 2002 9:14 pm Post subject: -------------------------------------------------------------------------------- I know zero about the server side of things ... But while poking around on some of the links you gave, I was looking at the sameness/differences of php One thing that caught my attention and may have absolutely nothing to do with how it sounds ... This is in your php settings: Configure Command './configure' '--without-mysql' '--without-pcre-regex' '--disable-posix' '--disable-session' '--disable-xml' '--with-config-file-path=/usr/pkg/etc' '--with-exec-dir=/usr/pkg/libexec/php4' '--with-regex=system' '--enable-discard-path' '--enable-force-cgi-redirect' '--enable-memory-limit' '--enable-track-vars' '--with-apxs=/usr/pkg/sbin/apxs' '--host=i386--netbsdelf' '--prefix=/usr/pkg' Mine reads: Configure Command './configure' '--with-apxs=/usr/local/apache/bin/apxs' '--with-xml' '--enable-bcmath' '--enable-calendar' '--enable-ftp' '--with-gd=../gd-1.8.4' '--with-jpeg-dir=/usr/local' '--with-png-dir=/usr' '--with-imap=../imap-2001.BETA.SNAP-0105220031' '--with-mcrypt' '--with-ming=../ming-0.1.1' '--enable-magic-quotes' '--with-mysql' '--with-pear' '--enable-safe-mode' '--enable-track-vars' '--with-ttf' '--enable-versioning' '--with-zlib' The part that caught my eye was mine says with-mysql and your's says without-mysql Granted I have no clue what either really means to the code ... but mine works and your's does not. I was thinking about that too from some other site's and php info pages that I'd been looking at.... and again talking to my friends (the one at the UofS and the one who got me onto php in the first place) and I was told that what it shows in the configure command box is what was set up/running/present at the time of install..... but thank you for the idea :)
Myrddin Posted December 27, 2002 Author Posted December 27, 2002 I looked at configure.php and this is what I found around the lines you where wondering about..... <?php /* osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2002 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://24.66.247.134'); // eg, http://localhost - should not be NULL for productive servers define('ENABLE_SSL', true); // secure webserver for checkout procedure? define('DIR_WS_CATALOG', 'http://24.66.247.134/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', '/usr/pkg/share/httpd/htdocs'); define('DIR_FS_CATALOG', '/usr/pkg/share/httpd/htdocs/catalog/'); define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/'); define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/'); // define our database connection define('DB_SERVER', 'localhost'); // eg, localhost - should not be NULL for productive servers define('DB_SERVER_USERNAME', '********'); define('DB_SERVER_PASSWORD', '********'); define('DB_DATABASE', '********'); define('USE_PCONNECT', 'true'); // use persistent connections? define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql' ?> any ideas? (this is the copy from /root_dir/catalog/includes/configure.php )
kagg Posted December 27, 2002 Posted December 27, 2002 It seems you are two errors: Mon Dec 23 04:00:23 2002] [error] PHP Parse error: parse error, expecting `','' or `';'' in /usr/pkg/share/httpd/htdocs/catalog/includes/classes/sessions.php on line 33 looking at your configure.php , modify Line17 as follows if : define('DIR_WS_CATALOG', '/catalog/'); // absolute path required Make a backup of your file before any modifiactions. the second error: [Mon Dec 23 04:00:23 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 It appears from your server configuration that session has been disabled on the server. You may ask your host to enable the sessions so that session_set_save_handler() may work. Kagg
Myrddin Posted December 27, 2002 Author Posted December 27, 2002 ok :) I have a question for you then.... :) I own my own server.... how would I enable sessions myself? (I'm also the one with the root permissions through out the server)
kagg Posted December 27, 2002 Posted December 27, 2002 locate php.pini on your server. There are following lines related to sessions: ; Handler used to store/retrieve data. session.save_handler = files ; Argument passed to save_handler. In the case of files, this is the path ; where data files are stored. session.save_path = /tmp ; Whether to use cookies. session.use_cookies = 1 ; Name of the session (used as cookie name). session.name = PHPSESSID ; Initialize session on request startup. session.auto_start = 0 compare these lines with ones in your php.ini I am not sure, just a try. Kagg
Myrddin Posted December 27, 2002 Author Posted December 27, 2002 :) k...... I compaired all the lines that you listed ; Handler used to store/retrieve data. session.save_handler = files ; Argument passed to save_handler. In the case of files, this is the path ; where data files are stored. session.save_path = /tmp ; Whether to use cookies. session.use_cookies = 1 ; Name of the session (used as cookie name). session.name = PHPSESSID ; Initialize session on request startup. session.auto_start = 0 and they're all the same :) ....... and restarted apache again and tested.... with the same results.... what's the next step? :)
Myrddin Posted December 28, 2002 Author Posted December 28, 2002 anyone have any other ideas that I might be able to try? (if this helps http://24.66.247.134/php.php http://24.66.247.134/catalog/ )
kagg Posted December 28, 2002 Posted December 28, 2002 Hello, I found nothing at http://24.66.247.134/catalog/ BTW: Mon Dec 23 04:00:23 2002] [error] PHP Parse error: parse error, expecting `','' or `';'' in /usr/pkg/share/httpd/htdocs/catalog/includes/classes/sessions.php on line 33 Is the above error still there? If gone.... then for second problem: [Mon Dec 23 04:00:23 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 You may try commenting line 63 in /catalog/includes/functions/sessions.php I also can not find why session_set_save_handler() is not there in your PHP inspite you have latest version. :? You can out the reason at http://php.net Kagg
Myrddin Posted December 28, 2002 Author Posted December 28, 2002 Hi.... yeah all I've ever been able to get to show from that software http://24.66.247.134/catalog/install/ other than that everything else has showen a blank screen (except for before I ran the install.... then it would tell me that it could not connect to the database...... but that was all) I couldn't even get http://24.66.247.134/catalog/docs/ to work...... also I get the same blank screen when trying to access http://24.66.247.134/catalog/admin/ I don't know why this is the case.... all I've been able to go on so far to see anything is to go by what the error logs are saying..... I've also tried the pages with different browsers.... but all to no avail... I'm still getting the same errors in my log file with regard to line 33.... so I'm really lost :?:
Myrddin Posted December 30, 2002 Author Posted December 30, 2002 these again are the errors I'm getting around line 33 of /catalog/includes/classes/sessions.php [Mon Dec 30 03:52:36 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 30 03:52:36 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 ideas?
Ajeh Posted December 30, 2002 Posted December 30, 2002 I see you are still having fun with your shop. :roll: Looking at your /includes/catalog/configure.php file you posted, it appears you don't have a definition or two and are using the USE_PCONNECT This is my configure.php file and I have USE_PCONNECT set to false: // Define the webserver and path parameters // * DIR_FS_* = Filesystem directories (local/physical) // * DIR_WS_* = Webserver directories (virtual/URL) define('HTTP_SERVER', 'http://www.thewebmakerscorner.com'); // eg, http://localhost - should not be NULL for productive servers define('HTTPS_SERVER', 'https://secure.sashbox.net/thewebmakerscorner.com'); // eg, https://localhost - should not be NULL for productive servers define('ENABLE_SSL', true); // secure webserver for checkout procedure? define('DIR_WS_CATALOG', '/snap_attributes/'); // 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', $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_FS_DOCUMENT_ROOT', '/home/webmaker/public_html'); // 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_FS_CATALOG', DIR_FS_DOCUMENT_ROOT . DIR_WS_CATALOG); define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/'); define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/'); See if configuring your's with the additional definition and path settings for the other definitions helps in any way.
Myrddin Posted December 30, 2002 Author Posted December 30, 2002 is this what your saying my config file should look like.... or am I doing it wrong.... (I don't think I was seeing the lines you where trying to show me to change) <?php/* osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 2002 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://24.66.247.134'); // eg, http://localhost - should not be NULL for productive servers define('ENABLE_SSL', true); // 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', '/usr/pkg/share/httpd/htdocs'); define('DIR_FS_CATALOG', '/usr/pkg/share/httpd/htdocs/catalog/'); define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/'); define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/'); // define our database connection define('DB_SERVER', 'localhost'); // eg, localhost - should not be NULL for productive servers define('DB_SERVER_USERNAME', '********'); define('DB_SERVER_PASSWORD', '********'); define('DB_DATABASE', '********'); define('USE_PCONNECT', 'false'); // use persistent connections? define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql' ?>
Ajeh Posted December 30, 2002 Posted December 30, 2002 If you compare the two ... your's and mine ... you will notice you have a definition or two missing. Also, a few exact paths, are they needed to be exact or can they be defined from previously defined definitions as in mine? Missing at least one definition: define('HTTPS_SERVER', 'https://secure.sashbox.net/thewebmakerscorner.com'); // eg, https://localhost - should not be NULL for productive servers As to the rest, I would think it should work from the defined paths providing they are correct.
Myrddin Posted December 31, 2002 Author Posted December 31, 2002 k........ :) I added in that change ..... to no avail sadly..... I'm still getting the exact same error messages as before...
Myrddin Posted January 2, 2003 Author Posted January 2, 2003 any ideas from anyone? please? I've tried everything that's been suggested to me.... but so far with no luck at all.... and I am still getting all the same errors.... can anyone help?
Recommended Posts
Archived
This topic is now archived and is closed to further replies.