celina2007 Posted April 9, 2008 Posted April 9, 2008 Hey friends, When i try www.domain.com/admin Warning: include(includes/languages/english/) [function.include]: failed to open stream: No such file or directory in /var/www/vhosts/domain.com/httpdocs/admin/includes/application_top.php on line 136 Warning: include() [function.include]: Failed opening 'includes/languages/english/' for inclusion (include_path='.:') in /var/www/vhosts/domain.com/httpdocs/admin/includes/application_top.php on line 136 Fatal error: Cannot re-assign $this in /var/www/vhosts/domain.com/httpdocs/admin/includes/classes/upload.php on line 31 Could anyone help me resolve this?
olsonsp4c Posted April 9, 2008 Posted April 9, 2008 Hey friends,When i try www.domain.com/admin Warning: include(includes/languages/english/) [function.include]: failed to open stream: No such file or directory in /var/www/vhosts/domain.com/httpdocs/admin/includes/application_top.php on line 136 Warning: include() [function.include]: Failed opening 'includes/languages/english/' for inclusion (include_path='.:') in /var/www/vhosts/domain.com/httpdocs/admin/includes/application_top.php on line 136 Fatal error: Cannot re-assign $this in /var/www/vhosts/domain.com/httpdocs/admin/includes/classes/upload.php on line 31 Could anyone help me resolve this? It looks like admin/includes/configure.php might not be configured properly... just a guess though. It might be helpful to post line 136 of admin/includes/application_top.php Also, try www.domain.com/httpdocs/admin/ - do you get the same error? Scott Addons I've crafted: osC reCaptcha | Live Support phpOnline | Store Mode | Simple Categories Header | Authorize.Net Infobox Package Tracking Plus | USPS Flat Rate Shipping | USPS Shipping Insurance | RapidSSL Infobox
bpopelar Posted April 9, 2008 Posted April 9, 2008 Does the front side of the web site work or do you get a similar error message? There are two configure.php files; one in includes/ and the other is in admin/includes/. Both need to be defined correctly. Ben
celina2007 Posted April 9, 2008 Author Posted April 9, 2008 It looks like admin/includes/configure.php might not be configured properly... just a guess though. It might be helpful to post line 136 of admin/includes/application_top.php Also, try www.domain.com/httpdocs/admin/ - do you get the same error? I tried www.domain.com/httpdocs/admin/ but i got "Not Found The requested document was not found on this server". The line 136 of admin/includes/application_top.php include(DIR_WS_LANGUAGES . $language . '/' . $current_page); // include the language translations require(DIR_WS_LANGUAGES . $language . '.php'); $current_page = basename($PHP_SELF); if (file_exists(DIR_WS_LANGUAGES . $language . '/' . $current_page)) { include(DIR_WS_LANGUAGES . $language . '/' . $current_page); } The line 31 of admin/includes/classes/upload.php // self destruct $this = null; Does the front side of the web site work or do you get a similar error message? The front page is another issue :( I can see only the products of the main page, but when I click on the photos i got " PRODUCT NOT FOUND" message and the same thing when I click on a category or best sellers etc.. http://www.domain.com/product_info.php?products_id=1026 ====> Product not found! :unsure: :(
olsonsp4c Posted April 9, 2008 Posted April 9, 2008 it sounds like your includes/configure.php and admin/includes/configure.php are not configured properly. It might be good if you posted the contents of both of these files here using the "code" tags... Scott Addons I've crafted: osC reCaptcha | Live Support phpOnline | Store Mode | Simple Categories Header | Authorize.Net Infobox Package Tracking Plus | USPS Flat Rate Shipping | USPS Shipping Insurance | RapidSSL Infobox
celina2007 Posted April 9, 2008 Author Posted April 9, 2008 it sounds like your includes/configure.php and admin/includes/configure.php are not configured properly. It might be good if you posted the contents of both of these files here using the "code" tags... Scott Here it is: For admin <?php /* osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2003 osCommerce Released under the GNU General Public License */ // Define the webserver and path parameters // * DIR_FS_* = Filesystem directories (local/physical) // * DIR_WS_* = Webserver directories (virtual/URL) define('HTTP_SERVER', 'http://www.domain.com'); // eg, http://localhost - should not be empty for productive servers define('HTTP_CATALOG_SERVER', 'http://www.domain.com'); define('HTTPS_CATALOG_SERVER', ''); define('ENABLE_SSL_CATALOG', 'false'); // secure webserver for catalog module define('DIR_FS_DOCUMENT_ROOT', '/home/httpd/vhosts/domain.com/httpdocs/'); // where the pages are located on the server define('DIR_WS_ADMIN', '/admin/'); // absolute path required define('DIR_FS_ADMIN', '/home/httpd/vhosts/domain.com/httpdocs/admin/'); // absolute pate required define('DIR_WS_CATALOG', '/'); // absolute path required define('DIR_FS_CATALOG', '/home/httpd/vhosts/domain.com/httpdocs/'); // absolute path required 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/'); // define our database connection define('DB_SERVER', 'localhost'); // eg, localhost - should not be empty for productive servers define('DB_SERVER_USERNAME', 'baseuser'); define('DB_SERVER_PASSWORD', 'password'); define('DB_DATABASE', 'basename'); define('USE_PCONNECT', 'false'); // use persisstent connections? define('STORE_SESSIONS', ''); // leave empty '' for default handler or set to 'mysql' ?> For Catalog: <?php /* osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2003 osCommerce Released under the GNU General Public License */ // Define the webserver and path parameters // * DIR_FS_* = Filesystem directories (local/physical) // * DIR_WS_* = Webserver directories (virtual/URL) define('HTTP_SERVER', 'http://www.domain.com'); // eg, http://localhost - should not be empty for productive servers define('HTTPS_SERVER', ''); // eg, https://localhost - should not be empty for productive servers define('ENABLE_SSL', false); // secure webserver for checkout procedure? define('HTTP_COOKIE_DOMAIN', 'www.domain.com'); define('HTTPS_COOKIE_DOMAIN', ''); define('HTTP_COOKIE_PATH', '/'); define('HTTPS_COOKIE_PATH', ''); define('DIR_WS_HTTP_CATALOG', '/'); define('DIR_WS_HTTPS_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', '/home/httpd/vhosts/domain.com/httpdocs/'); define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/'); define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/'); // define our database connection define('DB_SERVER', 'localhost'); // eg, localhost - should not be empty for productive servers define('DB_SERVER_USERNAME', 'baseuser'); define('DB_SERVER_PASSWORD', 'password'); define('DB_DATABASE', 'basename'); define('USE_PCONNECT', 'false'); // use persistent connections? define('STORE_SESSIONS', ''); // leave empty '' for default handler or set to 'mysql' ?> Thanks in advance
olsonsp4c Posted April 9, 2008 Posted April 9, 2008 i have to go to bed; however, for starters, everywhere that is says "https" fill it in with the same text as the "http" path in both files. This includes when it just would read '/' Scott Addons I've crafted: osC reCaptcha | Live Support phpOnline | Store Mode | Simple Categories Header | Authorize.Net Infobox Package Tracking Plus | USPS Flat Rate Shipping | USPS Shipping Insurance | RapidSSL Infobox
Guest Posted April 9, 2008 Posted April 9, 2008 Try these pieces (this is not the entire configure.php file): catalog side: define('HTTP_SERVER', 'http://www.domain.com'); // eg, http://localhost - should not be empty for productive servers define('HTTPS_SERVER', 'http://www.domain.com'); // eg, https://localhost - should not be empty for productive servers define('ENABLE_SSL', false); // secure webserver for checkout procedure? define('HTTP_COOKIE_DOMAIN', '.domain.com'); define('HTTPS_COOKIE_DOMAIN', '.domain.com'); define('HTTP_COOKIE_PATH', '/'); define('HTTPS_COOKIE_PATH', '/'); define('DIR_WS_HTTP_CATALOG', '/'); define('DIR_WS_HTTPS_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', dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME'])); define('DIR_FS_CATALOG', '/home/httpd/vhosts/domain.com/httpdocs'); define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . '/download/'); define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/'); I am assuming that /home/httpd/vhosts/domain.com/httpdocs/ is the correct filesystem path to your actual files. Admin side: define('HTTP_SERVER', 'http://www.domain.com'); // eg, http://localhost or - https://localhost should not be NULL for productive servers define('HTTP_CATALOG_SERVER', 'http://www.domain.com'); define('HTTPS_CATALOG_SERVER', 'http://www.domain.com'); define('ENABLE_SSL_CATALOG', 'false'); // secure webserver for catalog module define('DIR_FS_DOCUMENT_ROOT', '/home/httpd/vhosts/domain.com/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', DIR_FS_DOCUMENT_ROOT . DIR_WS_ADMIN); define('DIR_WS_CATALOG', '/'); define('DIR_FS_CATALOG', DIR_FS_DOCUMENT_ROOT . DIR_WS_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/');
celina2007 Posted April 9, 2008 Author Posted April 9, 2008 I am afraid it didn't work, got the same error as the first post
olsonsp4c Posted April 9, 2008 Posted April 9, 2008 try this. if you are unsure about your filesystem path, then contact your webhost support and ask them for it. also, check with ftp and make sure that admin/index.php is there and that admin/includes/languages/index.php is there using an ftp program... Scott Try these pieces (this is not the entire configure.php file): catalog side: define('HTTP_SERVER', 'http://www.domain.com'); // eg, http://localhost - should not be empty for productive servers define('HTTPS_SERVER', 'http://www.domain.com'); // eg, https://localhost - should not be empty for productive servers define('ENABLE_SSL', false); // secure webserver for checkout procedure? define('HTTP_COOKIE_DOMAIN', 'http://www.domain.com'); define('HTTPS_COOKIE_DOMAIN', 'http://www.domain.com'); define('HTTP_COOKIE_PATH', '/'); define('HTTPS_COOKIE_PATH', '/'); define('DIR_WS_HTTP_CATALOG', '/'); define('DIR_WS_HTTPS_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', dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME'])); define('DIR_FS_CATALOG', '/home/httpd/vhosts/domain.com/httpdocs'); define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . '/download/'); define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . '/pub/'); I am assuming that /home/httpd/vhosts/domain.com/httpdocs/ is the correct filesystem path to your actual files. Admin side: define('HTTP_SERVER', 'http://www.domain.com'); // eg, http://localhost or - https://localhost should not be NULL for productive servers define('HTTPS_SERVER', 'http://www.domain.com'); // eg, https://localhost - should not be empty for productive servers define('HTTP_CATALOG_SERVER', 'http://www.domain.com'); define('HTTPS_CATALOG_SERVER', 'http://www.domain.com'); define('ENABLE_SSL_CATALOG', 'false'); // secure webserver for catalog module define('DIR_FS_DOCUMENT_ROOT', $DOCUMENT_ROOT); // 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', DIR_FS_DOCUMENT_ROOT . '/admin/'); define('DIR_WS_CATALOG', '/'); define('DIR_FS_CATALOG', DIR_FS_DOCUMENT_ROOT . '/'); 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/'); Addons I've crafted: osC reCaptcha | Live Support phpOnline | Store Mode | Simple Categories Header | Authorize.Net Infobox Package Tracking Plus | USPS Flat Rate Shipping | USPS Shipping Insurance | RapidSSL Infobox
Guest Posted April 9, 2008 Posted April 9, 2008 Hi, It was kinda different getting a PM request for help. It really would have been nice if you had included a URL with which to reach your site, I could have hopped on the frontpage and asked the server about itself. /home/httpd/vhosts/domain.com/httpdocs/ is a most unusual path for a 'nix machine, in my limited experience. I have accounts with 5 different 'nix servers and the file paths are all different but hold many common points. /domain.com/ jumps off the page at me. I would guess that your path should be like: /home/httpd/vhosts/username/httpdocs/ because domain.com:80 points to the stuff in httpdocs. (When I FTP to my accounts, the FTP leads me to username, the non-public directory (In my FTP it "shows" as domain.com not username as it actually is)). Of course servers probably can be set up most any way but I would make my bet on this setting. I don't know why you are getting a frontpage. If you want to set up a temporary username and password for your account and PM it to me I will check out and play with the files. Warning: There are risks involved. Just because I am involved with this forum does not make me a good guy. I could put bad things on your server. (Of course you could overwrite everything on the server except for the fixed configuration files in case I did put something funny up.) And what does your host say about your filesystem path?
Recommended Posts
Archived
This topic is now archived and is closed to further replies.