Hak Foo Posted August 1, 2006 Share Posted August 1, 2006 So I'm migrating an osCommerce shop to a new server. After finally breaking through a blank-admin-page problem, I've got several more issues: -The admin page is "half populated"-- some options have sensible English names, while others have names like CATALOG_CONTENTS and TOOLS_FILES. Tables have titles of HEADING_TITLE and such. -Several control panels don't work as expected. All the "configuration" sidebars go to "my store". -If you get an control panel item with more than one page, where the navigation should be there's a: Error! Unable to determine the page link! Function used: tep_href_link('', '', 'NONSSL') I also get lots of [client 172.192.82.178] PHP Warning: main() [<a href='function.main'>function.main</a>]: open_basedir restriction in effect. File(/includes/languages/english/) is not within the allowed path(s): (/var/www/vhosts/njkleathers.com/httpdocs:/tmp) in /var/www/vhosts/njkleathers.com/httpdocs/admin/includes/application_top.php on line 133 [client 172.192.82.178] PHP Warning: main(includes/languages/english/) [<a href='function.main'>function.main</a>]: failed to open stream: Operation not permitted in /var/www/vhosts/njkleathers.com/httpdocs/admin/includes/application_top.php on line 133 [client 172.192.82.178] PHP Warning: main() [<a href='function.include'>function.include</a>]: Failed opening 'includes/languages/english/' for inclusion (include_path='.:') in /var/www/vhosts/njkleathers.com/httpdocs/admin/includes/application_top.php on line 133 when attempting to browse the administrative area. The person who originally set up the site set up a (root)/catalog and (root)/admin, rather than making the latter (root)/catalog/admin -- could it affect things? Link to comment Share on other sites More sharing options...
Hak Foo Posted August 1, 2006 Author Share Posted August 1, 2006 To ease diagnosis (database details removed): admin/includes/configure.php define('HTTP_SERVER', 'http://www.njkleathers.com'); // eg, http://localhost or - https://localhost should not be NULL for productive servers define('HTTP_CATALOG_SERVER', 'http://www.njkleathers.com'); define('HTTPS_CATALOG_SERVER', 'https://www.njkleathers.com'); define('ENABLE_SSL_CATALOG', 'true'); // secure webserver for catalog module define('DIR_FS_DOCUMENT_ROOT', '/httpdocs/'); // 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_WS_ADMIN', '/admin/'); define('DIR_FS_ADMIN', '/httpdocs/admin'); define('DIR_WS_CATALOG', '/catalog/'); define('DIR_FS_CATALOG', '/httpdocs/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/'); ---END FILE--- /configure.php define('HTTP_SERVER', 'http://www.njkleathers.com'); // eg, http://localhost or - https://localhost should not be NULL for productive servers define('HTTP_CATALOG_SERVER', 'http://www.njkleathers.com'); define('HTTPS_CATALOG_SERVER', 'https://www.njkleathers.com'); define('ENABLE_SSL_CATALOG', 'true'); // secure webserver for catalog module define('DIR_FS_DOCUMENT_ROOT', '/httpdocs/'); // 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_WS_ADMIN', '/admin/'); define('DIR_FS_ADMIN', '/httpdocs/admin/'); define('DIR_WS_CATALOG', '/catalog/'); define('DIR_FS_CATALOG', '/httpdocs/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/'); --END FILE-- Link to comment Share on other sites More sharing options...
♥Vger Posted August 1, 2006 Share Posted August 1, 2006 Okay, there's so much that's wrong in those files that I have edited them for you (it's quicker) Vger To ease diagnosis (database details removed): admin/includes/configure.php define('HTTP_SERVER', 'http://www.njkleathers.com'); // eg, http://localhost or - https://localhost should not be NULL for productive servers define('HTTP_CATALOG_SERVER', 'http://www.njkleathers.com'); define('HTTPS_CATALOG_SERVER', 'https://www.njkleathers.com'); define('ENABLE_SSL_CATALOG', 'true'); // secure webserver for catalog module define('DIR_FS_DOCUMENT_ROOT', '/httpdocs/'); // 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_WS_ADMIN', '/catalog/admin/'); define('DIR_FS_ADMIN', '/httpdocs/catalog/admin'); define('DIR_WS_CATALOG', '/catalog/'); define('DIR_FS_CATALOG', '/httpdocs/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/'); ---END FILE--- /configure.php Not the configure.php file define('HTTP_SERVER', 'http://www.njkleathers.com'); // eg, http://localhost or - https://localhost should not be NULL for productive servers define('HTTP_CATALOG_SERVER', 'http://www.njkleathers.com'); define('HTTPS_CATALOG_SERVER', 'https://www.njkleathers.com'); define('ENABLE_SSL_CATALOG', 'true'); // secure webserver for catalog module define('DIR_FS_DOCUMENT_ROOT', '/httpdocs/'); // 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_WS_ADMIN', '/admin/'); define('DIR_FS_ADMIN', '/httpdocs/admin/'); define('DIR_WS_CATALOG', '/catalog/'); define('DIR_FS_CATALOG', '/httpdocs/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/'); --END FILE-- This is the configure.php file: define('HTTP_SERVER', 'http://www.njkleathers.com'); // eg, http://localhost - should not be empty for productive servers define('HTTPS_SERVER', 'https://www.njkleathers.com'); define('ENABLE_SSL', true); // secure webserver for checkout procedure? define('HTTP_COOKIE_DOMAIN', 'www.njkleathers.com'); define('HTTPS_COOKIE_DOMAIN', 'www.njkleathers.com'); define('HTTP_COOKIE_PATH', '/catalog'); define('HTTPS_COOKIE_PATH', '/catalog'); define('DIR_WS_HTTP_CATALOG', '/catalog/'); define('DIR_WS_HTTPS_CATALOG', '/catalog/'); define('DIR_WS_IMAGES', 'images/'); define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/'); 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_DOWNLOAD_PUBLIC', 'pub/'); define('DIR_FS_CATALOG', '/httpdocs/osc_default/'); define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/'); define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/'); As you have an httpdocs folder then it's a pretty safe bet that you also have an httpsdocs folder, so you'll have to duplicate all of your folders/files in the httpsdocs folder - after which you can remove the 'admin' folder from the httpdocs folder. Vger Link to comment Share on other sites More sharing options...
cYon Posted October 10, 2006 Share Posted October 10, 2006 I just migrated my OSC site to a new server and I'm having the exact same problem! Can anyone provide any insight into this issue? I'm desperate as now my web site is down and I'm losing money. Link to comment Share on other sites More sharing options...
cYon Posted October 10, 2006 Share Posted October 10, 2006 sorry, dup post. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.