tbsg Posted March 17, 2006 Posted March 17, 2006 i've searched through old posts about this error and they all say to check my admin/includes/configure.php file to make sure it's set correctly. well, i've done that and have tried just about every combination i can think of to get this working and no luck. here's my configure.php file: define('HTTP_SERVER', 'https://visioncanadaltd.com'); define('HTTP_CATALOG_SERVER', 'http://visioncanadaltd.com'); define('HTTPS_CATALOG_SERVER', 'https://visioncanadaltd.com'); define('ENABLE_SSL_CATALOG', 'true'); define('DIR_FS_DOCUMENT_ROOT', '/var/www/vhosts/visioncanadaltd.com/httpdocs'); define('DIR_WS_ADMIN', '/./admin/'); define('DIR_FS_ADMIN', '/var/www/vhosts/visioncanadaltd.com/httpsdocs/./admin'); define('DIR_WS_CATALOG', '/./'); define('DIR_FS_CATALOG', '/var/www/vhosts/visioncanadaltd.com/httpdocs/./'); 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/'); this is the directory that the code generates: Backup Directory: /var/www/vhosts/visioncanadaltd.com/httpsdocs/./admin/backups/ this is the only directory that's still giving me problems but i can't seem to get it to cooperate. any ideas?
spax Posted March 17, 2006 Posted March 17, 2006 I think that unless you have a directory named '.' this line of code and the path it is trying to find, is incorrect. define('DIR_WS_ADMIN', '/./admin/'); I'm no expert, but I think you need to lose /. so it reads: define('DIR_WS_ADMIN', '/admin/'); Also, by looking at my configure.php, on the last line of code: define('DIR_FS_BACKUP', DIR_FS_ADMIN . '/backups/'); In mine, there is only a / at the end, so 'backups/' That doesn't appear to affecting the path but worth a check. BTW - Obviously you have created a 'backups' directory. Yes?
tbsg Posted March 17, 2006 Author Posted March 17, 2006 yes, that seemed like the thing to do to me too. i tried it and no change which doesn't make sense to me. i've verified that the backups directory exists and changed the permissions to 777. very confusing.
spax Posted March 17, 2006 Posted March 17, 2006 And it is called backups, not backup or Backups or something similar?
spax Posted March 17, 2006 Posted March 17, 2006 Ok, two more things I noticed. 1, There are three instances where you have /./ I suggest copying the file, just in case, and removing /. from each of them. 2, Do you have the httpsdocs directory, where you have put the admin directory, within the root?
tbsg Posted March 17, 2006 Author Posted March 17, 2006 i noticed that but have been hesitant to remove all of them in case it impacts other areas of the store or the admin. i'll cross my fingers and give it a go.
tbsg Posted March 17, 2006 Author Posted March 17, 2006 well, that didn't work either. this just doesn't seem to make any sense.
spax Posted March 17, 2006 Posted March 17, 2006 You have SSL? Do you have two directories named httpdocs and httpsdocs? I noticed that your HTTP_SERVER is defined for https:// I haven't installed SSL so I don't know if that is correct but it doesn't seem right.
tbsg Posted March 20, 2006 Author Posted March 20, 2006 yes, i have ssl but all files are being served from the httpdocs folder. i needed to do that to get the admin section working properly - the client was having trouble adding content when i had the shop in httpdocs and the admin in httpsdocs I noticed that your HTTP_SERVER is defined for https://[\] i'm not sure if i can alter this or it needs to stay that way because the files are served from one folder
tbsg Posted March 27, 2006 Author Posted March 27, 2006 i've changed the http_server code and still no luck. this is what my code looks like now. define('HTTP_SERVER', 'http://visioncanadaltd.com'); define('HTTP_CATALOG_SERVER', 'http://visioncanadaltd.com'); define('HTTPS_CATALOG_SERVER', 'https://visioncanadaltd.com'); define('ENABLE_SSL_CATALOG', 'true'); define('DIR_FS_DOCUMENT_ROOT', '/var/www/vhosts/visioncanadaltd.com/httpdocs'); define('DIR_WS_ADMIN', '/admin/'); define('DIR_FS_ADMIN', '/var/www/vhosts/visioncanadaltd.com/httpsdocs/admin'); define('DIR_WS_CATALOG', '/./'); define('DIR_FS_CATALOG', '/var/www/vhosts/visioncanadaltd.com/httpdocs/./'); 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/'); does anyone else have any suggestions? this site is going to go live soon and i'd really like to be able to provide the client with the backup.
♥Vger Posted March 27, 2006 Posted March 27, 2006 I don't know why you ignore advice and insist upon putting extra slashes in your files, but that's the cause of your problem: define('DIR_FS_DOCUMENT_ROOT', '/var/www/vhosts/visioncanadaltd.com/httpdocs'); define('DIR_WS_ADMIN', '/admin/'); define('DIR_FS_ADMIN', '/var/www/vhosts/visioncanadaltd.com/httpsdocs/admin/'); define('DIR_WS_CATALOG', '/'); define('DIR_FS_CATALOG', '/var/www/vhosts/visioncanadaltd.com/httpdocs/'); define('DIR_FS_BACKUP', DIR_FS_ADMIN . 'backups/'); Vger
tbsg Posted March 27, 2006 Author Posted March 27, 2006 vger, tried that and now i get this error - same as before but now there's no slash between admin and backups: Backup Directory: /var/www/vhosts/visioncanadaltd.com/httpsdocs/adminbackups/ tried putting the slash back in front of backups/ but still get an error message.
tbsg Posted March 27, 2006 Author Posted March 27, 2006 finally able to resolve this. it was connected to the http & https files being served from 1 folder changed the line setting the backup directory to this and all is well. define('DIR_FS_BACKUP', '/var/www/vhosts/visioncanadaltd.com/httpdocs/admin/backups/');
Recommended Posts
Archived
This topic is now archived and is closed to further replies.