Nielsen_Trading Posted April 7, 2007 Posted April 7, 2007 Hello Everyone, I'm in the process of installing OS COMMERCE SHOPPING CART. I have this error message. Yes , I've the the other recent posts. I don't know which .htacess files to fix (all their locations) or where exactly or how to fix the problem. I also seent the link for a patch that nuls the need to even fix the .htacess file, But I don't even know where to begin on that one. Can anyone tell me in explicit detail how to make these changes. Thank you Sheri
usernamenone Posted April 7, 2007 Posted April 7, 2007 Here is the link to the contrib http://www.oscommerce.com/community/contri...egister_globals Choose the second down as the top one is a blank folder for some unknown reason. There are step by step instructions Hello Everyone, I'm in the process of installing OS COMMERCE SHOPPING CART. I have this error message. Yes , I've the the other recent posts. I don't know which .htacess files to fix (all their locations) or where exactly or how to fix the problem. I also seent the link for a patch that nuls the need to even fix the .htacess file, But I don't even know where to begin on that one. Can anyone tell me in explicit detail how to make these changes. Thank you Sheri
♥Vger Posted April 7, 2007 Posted April 7, 2007 Double posting - already asked and answered in the Quick Install Guide thread. Vger
Nielsen_Trading Posted April 8, 2007 Author Posted April 8, 2007 Double posting - already asked and answered in the Quick Install Guide thread. Vger This is NOT a double posting . http://www.oscommerce.com/forums/index.php?sho...&start=1446 I mentioned, I had a register gobal problem. I didn't ask for help in that tread, has I had read through some of the old posts in that thread. I found I didn't understand what was being said very well. That is why I had asked for explicit directions. I truely have no idea what you said or how to implement the information you did give. I have very little experience with this. That is why I bought the 5 years. I found it to be the best choice for my experience level. Thank you for helping me. If the tone of this post sounds a bit harsh I truely don't mean it to be. I sincerly appreciate all the help ,you all are giving me. Thank you again, Sheri
♥Vger Posted April 8, 2007 Posted April 8, 2007 I did tell you how to turn on Register Globals using a .htaccess file in the other thread - but here goes again. Go to your web hosting control panel and use the File Manager to navigate to the root of where your osCommerce website is - check to see if there is already a .htaccess file there. If not, and if the server is Apache based (not Windows) then do the following: 1. Create a new text document on your desktop - rename it to txt.htaccess, put this code in it: php_flag register_globals On 2. Upload it to the root of your website using FTP, then rename it to .htaccess 3. If this causes a "500 Internal Server Error" then try php_value register_globals On and if that doesn't work then try 1 instead of On 4. If none of those work then delete the .htaccess file - because your server doesn't allow you to turn on Register Globals using .htaccess If the above doesn't work then create a new text document on your desktop and rename it to php.ini and put this code in it and upload to the root of your website and to the 'admin' and 'install' folders. Register Globals = On If that doesn't work then your only solution is to install the Register Globals patch or find a new host and write off what you've paid. Vger
Nielsen_Trading Posted April 9, 2007 Author Posted April 9, 2007 I replaced the file .htacess in the Root & admin areas and this worked. I've been trying to configure the permissions like you said in your quick install, but not sure where the permissions to change are. I found none of the values you mention. I also have the following warning messages in the admin section: Warning: session_save_path() [function.session-save-path]: SAFE MODE Restriction in effect. The script whose uid is 10702 is not allowed to access owned by uid 0 in /misc/32/000/044/717/9/user/web/nielsentradingco.com/admin/includes/functions/sessions.php on line 110 Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /misc/32/000/044/717/9/user/web/nielsentradingco.com/admin/includes/functions/sessions.php:110) in /misc/32/000/044/717/9/user/web/nielsentradingco.com/admin/includes/functions/sessions.php on line 67 Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /misc/32/000/044/717/9/user/web/nielsentradingco.com/admin/includes/functions/sessions.php:110) in /misc/32/000/044/717/9/user/web/nielsentradingco.com/admin/includes/functions/sessions.php on line 67 And on the home page I get this: Warning: session_save_path() [function.session-save-path]: SAFE MODE Restriction in effect. The script whose uid is 10702 is not allowed to access owned by uid 0 in /misc/32/000/044/717/9/user/web/nielsentradingco.com/includes/functions/sessions.php on line 148 Warning: Cannot modify header information - headers already sent by (output started at /misc/32/000/044/717/9/user/web/nielsentradingco.com/includes/functions/sessions.php:148) in /misc/32/000/044/717/9/user/web/nielsentradingco.com/includes/functions/general.php on line 1226 Warning: I am able to write to the configuration file: /misc/32/000/044/717/9/user/web/nielsentradingco.com/includes/configure.php. This is a potential security risk - please set the right user permissions on this file. How do I fix these ? Thank you for your Help I am truely greatful. I am definately learning a lot. Sheri
Nielsen_Trading Posted April 9, 2007 Author Posted April 9, 2007 I replaced the file .htacess in the Root & admin areas and this worked. I've been trying to configure the permissions like you said in your quick install, but not sure where the permissions to change are. I found none of the values you mention. I also have the following warning messages in the admin section: Warning: session_save_path() [function.session-save-path]: SAFE MODE Restriction in effect. The script whose uid is 10702 is not allowed to access owned by uid 0 in /misc/32/000/044/717/9/user/web/nielsentradingco.com/admin/includes/functions/sessions.php on line 110 Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /misc/32/000/044/717/9/user/web/nielsentradingco.com/admin/includes/functions/sessions.php:110) in /misc/32/000/044/717/9/user/web/nielsentradingco.com/admin/includes/functions/sessions.php on line 67 Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /misc/32/000/044/717/9/user/web/nielsentradingco.com/admin/includes/functions/sessions.php:110) in /misc/32/000/044/717/9/user/web/nielsentradingco.com/admin/includes/functions/sessions.php on line 67 And on the home page I get this: Warning: session_save_path() [function.session-save-path]: SAFE MODE Restriction in effect. The script whose uid is 10702 is not allowed to access owned by uid 0 in /misc/32/000/044/717/9/user/web/nielsentradingco.com/includes/functions/sessions.php on line 148 Warning: Cannot modify header information - headers already sent by (output started at /misc/32/000/044/717/9/user/web/nielsentradingco.com/includes/functions/sessions.php:148) in /misc/32/000/044/717/9/user/web/nielsentradingco.com/includes/functions/general.php on line 1226 Warning: I am able to write to the configuration file: /misc/32/000/044/717/9/user/web/nielsentradingco.com/includes/configure.php. This is a potential security risk - please set the right user permissions on this file. How do I fix these ? Thank you for your Help I am truely greatful. I am definately learning a lot. Sheri
twacking Posted April 9, 2007 Posted April 9, 2007 Hello Everyone, I'm in the process of installing OS COMMERCE SHOPPING CART. I have this error message. Yes , I've the the other recent posts. I don't know which .htacess files to fix (all their locations) or where exactly or how to fix the problem. I also seent the link for a patch that nuls the need to even fix the .htacess file, But I don't even know where to begin on that one. Can anyone tell me in explicit detail how to make these changes. Thank you Sheri Hi, I contacted my service provider and asked them to turn on globals for me and they did, no problems at all. Cheers, Nicholle
♥Vger Posted April 9, 2007 Posted April 9, 2007 To remove the Session Save Path warnings go to your osCommerce admin panel --> Configuration --> Sessions and change the session path to just tmp with no slash before or after tmp. Reset the permissions on the two configure.php files to either 644, 444 or 400 (which is right for you depends on your server). Use the File Manager in your Web Hosting control panel to change the permissions. Vger I replaced the file .htacess in the Root & admin areas and this worked. I've been trying to configure the permissions like you said in your quick install, but not sure where the permissions to change are. I found none of the values you mention. I also have the following warning messages in the admin section: Warning: session_save_path() [function.session-save-path]: SAFE MODE Restriction in effect. The script whose uid is 10702 is not allowed to access owned by uid 0 in /misc/32/000/044/717/9/user/web/nielsentradingco.com/admin/includes/functions/sessions.php on line 110 Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /misc/32/000/044/717/9/user/web/nielsentradingco.com/admin/includes/functions/sessions.php:110) in /misc/32/000/044/717/9/user/web/nielsentradingco.com/admin/includes/functions/sessions.php on line 67 Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /misc/32/000/044/717/9/user/web/nielsentradingco.com/admin/includes/functions/sessions.php:110) in /misc/32/000/044/717/9/user/web/nielsentradingco.com/admin/includes/functions/sessions.php on line 67 And on the home page I get this: Warning: session_save_path() [function.session-save-path]: SAFE MODE Restriction in effect. The script whose uid is 10702 is not allowed to access owned by uid 0 in /misc/32/000/044/717/9/user/web/nielsentradingco.com/includes/functions/sessions.php on line 148 Warning: Cannot modify header information - headers already sent by (output started at /misc/32/000/044/717/9/user/web/nielsentradingco.com/includes/functions/sessions.php:148) in /misc/32/000/044/717/9/user/web/nielsentradingco.com/includes/functions/general.php on line 1226 Warning: I am able to write to the configuration file: /misc/32/000/044/717/9/user/web/nielsentradingco.com/includes/configure.php. This is a potential security risk - please set the right user permissions on this file. How do I fix these ? Thank you for your Help I am truely greatful. I am definately learning a lot. Sheri
Nielsen_Trading Posted April 10, 2007 Author Posted April 10, 2007 To remove the Session Save Path warnings go to your osCommerce admin panel --> Configuration --> Sessions and change the session path to just tmp with no slash before or after tmp. Reset the permissions on the two configure.php files to either 644, 444 or 400 (which is right for you depends on your server). Use the File Manager in your Web Hosting control panel to change the permissions. Vger I removed the slash and all warning are gone except : Warning: I am able to write to the configuration file: /misc/32/000/044/717/9/user/web/nielsentradingco.com/includes/configure.php. This is a potential security risk - please set the right user permissions on this file. I know you said to change the permissions. I have the configure.php in the admin. section open to make the changes, but I don't see where I have to make those changes. Is this the section I would make those changes? if (tep_not_null($action)) { switch ($action) { case 'save': $configuration_value = tep_db_prepare_input($HTTP_POST_VARS['configuration_value']); $cID = tep_db_prepare_input($HTTP_GET_VARS['cID']); Do I put a numeral value where it says ['configuration_value'] The values 644, 444 or 400 (which is right for you depends on your server). How do I find which is right for my server? How do I get the admin section to be password protect through my hosting comp. ? Thank you again for your time, Sheri
Nielsen_Trading Posted April 10, 2007 Author Posted April 10, 2007 I found your patch: http://www.oscommerce.com/forums/index.php?sho...ssions&st=0 And followed the file upload it worked. I removed the slash and all warning are gone except : Warning: I am able to write to the configuration file: /misc/32/000/044/717/9/user/web/nielsentradingco.com/includes/configure.php. This is a potential security risk - please set the right user permissions on this file. I know you said to change the permissions. I have the configure.php in the admin. section open to make the changes, but I don't see where I have to make those changes. Is this the section I would make those changes? if (tep_not_null($action)) { switch ($action) { case 'save': $configuration_value = tep_db_prepare_input($HTTP_POST_VARS['configuration_value']); $cID = tep_db_prepare_input($HTTP_GET_VARS['cID']); Do I put a numeral value where it says ['configuration_value'] The values 644, 444 or 400 (which is right for you depends on your server). How do I find which is right for my server? How do I get the admin section to be password protect through my hosting comp. ? Thank you again for your time, Sheri
jdice Posted September 6, 2007 Posted September 6, 2007 Good - glad that's all sorted now. Vger Hello...not sure if you can help...I am getting ready to upload a contribution that allows me to load 1000's of products from an excel spreadsheet at once.However, the contribution says it only works with register_globals=off. For one...I am not sure what they mean and for two, I don't know how to turn my registered globals off. And once they are off...how do you know they are off? The following is my code in my htsaccess file. What do I change? I have seen a contribution for turning registered globals on...but I am not sure it turns it off plus the contribution list is so long with downloads and questions...how do I choose? I am on an apache server. Any help is appreciated...thanks...Janet # $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> # If Search Engine Friendly URLs do not work, try enabling the # following Apache configuration parameter # # AcceptPathInfo On # Fix certain PHP values # (commented out by default to prevent errors occuring on certain # servers) # #<IfModule mod_php4.c> # php_value session.use_trans_sid 0 # php_value register_globals 1 #</IfModule>
♥Vger Posted September 6, 2007 Posted September 6, 2007 If you turn Register Globals 'Off' via php.ini or .htaccess then your whole oscommerce site has to be Register Globals 'off' compatible. This means replacing all instances of Globals with Super Globals e.g. $HTTP_POST_VARS with $_VARS etc. and by making sure any local globals are properly declared. Vger
Recommended Posts
Archived
This topic is now archived and is closed to further replies.