Jack_Lewan Posted January 14, 2007 Share Posted January 14, 2007 Hi guys, I am new in here!! I have installed everything and all went smoothely, however when I enter any page on my site including admin: I get the following messages:- Warning: session_save_path() [function.session-save-path]: SAFE MODE Restriction in effect. The script whose uid is 236606 is not allowed to access owned by uid 0 in /customers/norpolhusoghytte.no/norpolhusoghytte.no/httpd.www/catalog/includes/functions/sessions.php on line 148 Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /customers/norpolhusoghytte.no/norpolhusoghytte.no/httpd.www/catalog/includes/functions/sessions.php:148) in /customers/norpolhusoghytte.no/norpolhusoghytte.no/httpd.www/catalog/includes/functions/sessions.php on line 97 Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /customers/norpolhusoghytte.no/norpolhusoghytte.no/httpd.www/catalog/includes/functions/sessions.php:148) in /customers/norpolhusoghytte.no/norpolhusoghytte.no/httpd.www/catalog/includes/functions/sessions.php on line 97 Warning: I am able to write to the configuration file: /customers/norpolhusoghytte.no/norpolhusoghytte.no/httpd.www/catalog/includes/configure.php. This is a potential security risk - please set the right user permissions on this file. What do I need to alter to make them disappear!! :) With regards to the last warning message, I use Ipswitch FTP and try to set the file attributes to 644/444 according to instructs but when I leave the directory and renter they are back on 755!! Am I doing something wrong? Please please please guys, help! Thanks in advance, with kind regards. Jack Link to comment Share on other sites More sharing options...
davidinottawa Posted January 14, 2007 Share Posted January 14, 2007 With regards to the last warning message, I use Ipswitch FTP and try to set the file attributes to 644/444 according to instructs but when I leave the directory and renter they are back on 755!! Am I doing something wrong? use the file manager in your hosts control panel to chmod this file. chmod to 644. Link to comment Share on other sites More sharing options...
davidinottawa Posted January 14, 2007 Share Posted January 14, 2007 Warning: session_save_path() [function.session-save-path]: SAFE MODE Restriction in effect. The script whose uid is 236606 is not allowed to access owned by uid 0 in /customers/norpolhusoghytte.no/norpolhusoghytte.no/httpd.www/catalog/includes/functions/sessions.php on line 148 the safe mode comment is a php initialization setting by your host/server. see : the function on line 148 tries to return this : http://ca3.php.net/manual/en/ref.session.p...ssion.save-path also see : http://ca3.php.net/session_save_path Link to comment Share on other sites More sharing options...
Jack_Lewan Posted January 14, 2007 Author Share Posted January 14, 2007 use the file manager in your hosts control panel to chmod this file.chmod to 644. Thanks!!! :) I will try that, however I have now noticed that I cannot do any mods in admin!! I get these messages:- Warning: session_save_path() [function.session-save-path]: SAFE MODE Restriction in effect. The script whose uid is 236606 is not allowed to access owned by uid 0 in /customers/norpolhusoghytte.no/norpolhusoghytte.no/httpd.www/catalog/admin/includes/functions/sessions.php on line 110 Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /customers/norpolhusoghytte.no/norpolhusoghytte.no/httpd.www/catalog/admin/includes/functions/sessions.php:110) in /customers/norpolhusoghytte.no/norpolhusoghytte.no/httpd.www/catalog/admin/includes/functions/sessions.php on line 67 Sorry to be a pain guys but I didn't anticipate that this would be so difficult, I have zero knowledge of these things :( So all help is greatly appreciated. Thanks all Jack Link to comment Share on other sites More sharing options...
davidinottawa Posted January 14, 2007 Share Posted January 14, 2007 /customers/norpolhusoghytte.no/norpolhusoghytte.no/httpd.www/catalog/admin/includes/functions/sessions.php:110) chmod this to /catalog/includes/functions/sessions.php 755 open /catalog/includes/functions/sessions.php in a 'proper' text editor like editplus or text pad and make sure there are not leading spaces after the : <?php or after the last : ?> in the file. Link to comment Share on other sites More sharing options...
Jack_Lewan Posted January 14, 2007 Author Share Posted January 14, 2007 The fille looks like this:- <?php /* $Id: specials.php,v 1.6 2003/06/09 21:25:32 hpdl Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 2003 osCommerce Released under the GNU General Public License */ //// // Sets the status of a special product function tep_set_specials_status($specials_id, $status) { return tep_db_query("update " . TABLE_SPECIALS . " set status = '" . $status . "', date_status_change = now() where specials_id = '" . (int)$specials_id . "'"); } //// // Auto expire products on special function tep_expire_specials() { $specials_query = tep_db_query("select specials_id from " . TABLE_SPECIALS . " where status = '1' and now() >= expires_date and expires_date > 0"); if (tep_db_num_rows($specials_query)) { while ($specials = tep_db_fetch_array($specials_query)) { tep_set_specials_status($specials['specials_id'], '0'); } } } ?> I can't see any spaces before or after the first and last tags Link to comment Share on other sites More sharing options...
Jack_Lewan Posted January 14, 2007 Author Share Posted January 14, 2007 SORRY :( WRONG FILE!! but I checked the correct file and no spaces there either!! Link to comment Share on other sites More sharing options...
davidinottawa Posted January 14, 2007 Share Posted January 14, 2007 SORRY :( WRONG FILE!! but I checked the correct file and no spaces there either!! http://www.oscommerce.info/kb/osCommerce/G...mon_Problems/15 Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.