shadow_scoob Posted September 12, 2010 Posted September 12, 2010 Apologies if these have already been covered elsewhere and a pointer to the thread would be great. Firstly, I was unsure as to whether I should install v2.2 or v3. I opted for 2.2 as 3 was an alpha version but as it has been available for some time, should I install v3? At the moment, I have gone through the initial stages of installation for Version 2.2. I am now in a situation where I get the following error messages at the top of the catalog screen: Warning: session_save_path(): open_basedir restriction in effect. File(/tmp) is not within the allowed path(s): (d:\temp;g:\websites;G:\Websites;e:\php\pear) in G:\Websites\wwequine\htdocs\catalog\includes\functions\sessions.php on line 169 Warning: session_start(): Cannot send session cookie - headers already sent by (output started at G:\Websites\wwequine\htdocs\catalog\includes\functions\sessions.php:169) in G:\Websites\wwequine\htdocs\catalog\includes\functions\sessions.php on line 102 Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at G:\Websites\wwequine\htdocs\catalog\includes\functions\sessions.php:169) in G:\Websites\wwequine\htdocs\catalog\includes\functions\sessions.php on line 102 However, I am able to see the catalog page below these error messages. If I try to select an option, for example to register, I get a url issue in my browser. The url looks like the following: http://wwequine.com/catalog/:///create_account.php?osCsid=d6a6d80d55dde2977538e147bb695d57 I guess I need to change an entry in my configuration because when I remove the :/// I am able to proceed to the correct page, albeit with the previous error messages repeated. I am not able to access the admin area at all and I receive the following error messages: Warning: session_save_path(): open_basedir restriction in effect. File(/tmp) is not within the allowed path(s): (d:\temp;g:\websites;G:\Websites;e:\php\pear) in G:\Websites\wwequine\htdocs\catalog\admin\includes\functions\sessions.php on line 165 Warning: session_start(): Cannot send session cookie - headers already sent by (output started at G:\Websites\wwequine\htdocs\catalog\admin\includes\functions\sessions.php:165) in G:\Websites\wwequine\htdocs\catalog\admin\includes\functions\sessions.php on line 102 Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at G:\Websites\wwequine\htdocs\catalog\admin\includes\functions\sessions.php:165) in G:\Websites\wwequine\htdocs\catalog\admin\includes\functions\sessions.php on line 102 Warning: Cannot modify header information - headers already sent by (output started at G:\Websites\wwequine\htdocs\catalog\admin\includes\functions\sessions.php:165) in G:\Websites\wwequine\htdocs\catalog\admin\includes\functions\general.php on line 22 I have seen that the error messages on both pages can be caused by an access issue. I have contacted my hosting company to check access to the htdocs area and they have responded by saying that as I am on a Windows server /tmp is not valid and that I need to change my code to allow d:\temp. Where and how would I do this? Apologies for the long post. As is always the case, I am under pressure to have a catalog in place by some time last week ( :lol: :blush:) and so time is of the essence. If I can get around these initial issues, I hope that the rest should be plain sailing. All help gratefully appreciated. Thanks Steve
Jan Zonjee Posted September 12, 2010 Posted September 12, 2010 I have seen that the error messages on both pages can be caused by an access issue. I have contacted my hosting company to check access to the htdocs area and they have responded by saying that as I am on a Windows server /tmp is not valid and that I need to change my code to allow d:\temp. Where and how would I do this? See the knowledge base for that. For your slashes issue you would probably need to take a look at your catalog/includes/configure.php and catalog/admin/includes/configure.php
shadow_scoob Posted September 12, 2010 Author Posted September 12, 2010 See the knowledge base for that. For your slashes issue you would probably need to take a look at your catalog/includes/configure.php and catalog/admin/includes/configure.php Thank you for a quick response. The problem with changing the /tmp directory setting is that it appears I need to do it from within the Admin area and I am not able to get into the admin area. I assume that is because of the error messages that I get on the admin page? Is there another way that I can change the /tmp setting without going into admin. Thanks Steve
shadow_scoob Posted September 12, 2010 Author Posted September 12, 2010 See the knowledge base for that. For your slashes issue you would probably need to take a look at your catalog/includes/configure.php and catalog/admin/includes/configure.php I have made some changes in the configure.php files as you suggested and I think I have now solved that problem. :) I just need a way to access the admin area to change the /tmp reference so that I can get into the admin area ;) :huh: :blink: Thanks Steve
FIMBLE Posted September 12, 2010 Posted September 12, 2010 If you cannot access your admin to do this and are not too sure about phpmyadmin you can use this i made for the same job http://addons.oscommerce.com/info/6593 Nic Sometimes you're the dog and sometimes the lamp post [/url] My Contributions
shadow_scoob Posted September 12, 2010 Author Posted September 12, 2010 If you cannot access your admin to do this and are not too sure about phpmyadmin you can use this i made for the same job http://addons.oscommerce.com/info/6593 Nic Hi Nic Ran the reset file and it worked. Thank you. The catalog page now displays without the error messages. If I go to http://www.mysite.com/catalog/admin/login.php there are no error messages there either. If I try to login with the details I used in the installation I get a 404 message - page not found. This appears to be the address it is trying to find: http://www.wwequine.com/admin/login.php?action=process&osCAdminID=1e16b14e492b73348307e4032ed8e419 Any further thoughts? Chers Steve
FIMBLE Posted September 12, 2010 Posted September 12, 2010 is you admin still called admin? check your settings in the file admin / includes / configure.php via FTP to make sure it is set correctly Nic Sometimes you're the dog and sometimes the lamp post [/url] My Contributions
shadow_scoob Posted September 12, 2010 Author Posted September 12, 2010 is you admin still called admin? check your settings in the file admin / includes / configure.php via FTP to make sure it is set correctly Nic Hi Nic My settings in that file are: define('HTTP_SERVER', '/catalog'); define('HTTP_CATALOG_SERVER', '/catalog/'); define('HTTPS_CATALOG_SERVER', '://'); define('ENABLE_SSL_CATALOG', 'false'); define('DIR_FS_DOCUMENT_ROOT', 'G:/Websites/wwequine/htdocs/catalog/'); define('DIR_WS_ADMIN', '/admin/'); define('DIR_FS_ADMIN', 'G:/Websites/wwequine/htdocs/catalog/admin/'); define('DIR_WS_CATALOG', '/'); define('DIR_FS_CATALOG', 'G:/Websites/wwequine/htdocs/catalog/'); define('DIR_WS_IMAGES', 'images/'); define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/'); define('DIR_WS_CATALOG_IMAGES', DIR_WS_CATALOG . 'images/'); define('DIR_WS_INCLUDES', 'includes/'); 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_CATALOG_LANGUAGES', DIR_WS_CATALOG . 'includes/languages/'); define('DIR_FS_CATALOG_LANGUAGES', DIR_FS_CATALOG . 'includes/languages/'); define('DIR_FS_CATALOG_IMAGES', DIR_FS_CATALOG . 'images/'); define('DIR_FS_CATALOG_MODULES', DIR_FS_CATALOG . 'includes/modules/'); define('DIR_FS_BACKUP', DIR_FS_ADMIN . 'backups/'); I did change the http_server and htp_catalog_server settings from :// to /catalog and that meant that the catalog worked fine in Firefox however, in IE none of the graphics display as there appears to be an extra / being included. Would this change to configure.php have affected the route to the admin folder? Steve
Jan Zonjee Posted September 12, 2010 Posted September 12, 2010 Is there another way that I can change the /tmp setting without going into admin. If you have access to your database (phpMyAdmin?) you can edit it directly in the database, table configuration, column configuration_key: SESSION_WRITE_DIRECTORY then change the configuration_value from /tmp to /temp or whatever works. That row probably has configuration_id 136.
shadow_scoob Posted September 12, 2010 Author Posted September 12, 2010 If you have access to your database (phpMyAdmin?) you can edit it directly in the database, table configuration, column configuration_key: SESSION_WRITE_DIRECTORY then change the configuration_value from /tmp to /temp or whatever works. That row probably has configuration_id 136. Hi I have now managed to change the tmp folder setting and I am in to the admin area. However, I obviously need to make a change to the settings I showed above. In IE I am getting extra / symbols. The urls are showing http:///catalog//product................ How do I need to show the server and catalog settings? Thanks Steve
Jan Zonjee Posted September 12, 2010 Posted September 12, 2010 How do I need to show the server and catalog settings? There are probably thousands and thousands of posts with samples of configure.php like in this post on the forum. The install procedure should have prevented you from messing this up so badly :-"
shadow_scoob Posted September 13, 2010 Author Posted September 13, 2010 There are probably thousands and thousands of posts with samples of configure.php like in this post on the forum. The install procedure should have prevented you from messing this up so badly :-" I followed the install procedure carefully so I am surprised that I ended up "messing this up so badly" :blush: . However, I will check out the sample configurations. Thanks for your help. Steve
shadow_scoob Posted September 15, 2010 Author Posted September 15, 2010 I followed the install procedure carefully so I am surprised that I ended up "messing this up so badly" :blush: . However, I will check out the sample configurations. Thanks for your help. Steve Thanks for all your help. I think I have things almost sorted. I have one last question that I can't seem to solve. When I am in a product in a category using the admin tool, the images do not display. If I check the path I can see that the path is wrong. Can anybody tell me which path in which configure file I need to modify for this image path? Thanks Steve
shadow_scoob Posted September 15, 2010 Author Posted September 15, 2010 Now answered my own question: define('DIR_WS_CATALOG_IMAGES', DIR_WS_CATALOG . 'catalog/images/'); Cheers Steve
MrPhil Posted September 15, 2010 Posted September 15, 2010 Now answered my own question: define('DIR_WS_CATALOG_IMAGES', DIR_WS_CATALOG . 'catalog/images/'); Wrong! If you have to manually add catalog to the string, it means that your DIR_WS_CATALOG definition is faulty. It should contain "/catalog/".
Recommended Posts
Archived
This topic is now archived and is closed to further replies.