mrbags Posted August 1, 2005 Share Posted August 1, 2005 First the formalities: New to Osc, yada, yada, yada. I've been scouring the forums for some help on this and I havent quite found out my problems. I've managed to get the catalog "visible" with some minor changes that show up, images, titles, etc. So far so good. However, there are several issues I'm having with my admin controls. First of all, these two errors appear at the top of my browser when I turn my php debugging on: Warning: main(includes/languages/english/) [function.main]: failed to open stream: No such file or directory in /var/www/html/controls/includes/application_top.php on line 133 Warning: main() [function.include]: Failed opening 'includes/languages/english/' for inclusion (include_path='.:/php/includes') in /var/www/html/controls/includes/application_top.php on line 133 a quick look at this file at this line shows this, with line 133 in red: // include the language translations require(DIR_WS_LANGUAGES . $language . '.php'); $current_page = basename($PHP_SELF); if (file_exists(DIR_WS_LANGUAGES . $language . '/' . $current_page)) { [COLOR=red] include(DIR_WS_LANGUAGES . $language . '/' . $current_page);[/COLOR] } While I have the admin area gurus' attention, let me try and knock out my other birds with one stone. Im pretty sure there might be a few things thats wrong with my admin files, as I am not able to edit any fields, etc. My column names all show the Variable names, eg. under "my store" there is a TABLE_HEADING_CONFIGURATION_TITLE, VALUE, AND ACTION . In addition when I select the "Catalog" under the left navigation box, I get a nice pink error message up top of my browser that says "ERROR_CATALOG_IMAGE_DIRECTORY_NOT_WRITEABLE." Im pretty sure it should be, as I've set it to permission 777 in frustration--to no avail. If anyone has some information for me, Id appreciate it. Here is my admin/includes/configure.php file: <?php /* $Id: configure.php,v 1.14 2003/02/21 16:55:24 dgw_ Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2002 osCommerce Released under the GNU General Public License */ // define our webserver variables // FS = Filesystem (physical) // WS = Webserver (virtual) // eg, http://localhost should not be NULL for productive servers define('HTTP_SERVER', 'http://xx.xxx.xx.xxx/'); define('HTTP_CATALOG_SERVER', 'http://xx.xxx.xx.xxx/'); define('HTTPS_CATALOG_SERVER', ''); define('ENABLE_SSL_CATALOG', 'false'); // secure webserver for catalog module define('DIR_FS_DOCUMENT_ROOT', '/var/www/html/'); define('DIR_WS_ADMIN', 'controls/'); define('DIR_FS_ADMIN', '/var/www/html/controls/'); define('DIR_WS_CATALOG', ''); define('DIR_FS_CATALOG', '/var/www/html/'); define('DIR_WS_IMAGES', 'images/'); define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/'); define('DIR_WS_CATALOG_IMAGES', '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', 'includes/languages/'); define('DIR_FS_CATALOG_LANGUAGES', '/var/www/html/includes/languages/'); define('DIR_FS_CATALOG_IMAGES', '/var/www/html/images/'); define('DIR_FS_CATALOG_MODULES', '/var/www/html/includes/modules/'); define('DIR_FS_BACKUP', DIR_FS_ADMIN . 'backups/'); // define our database connection define('DB_SERVER', 'localhost'); define('DB_SERVER_USERNAME', '*****'); define('DB_SERVER_PASSWORD', '*****'); define('DB_DATABASE', 'osCommerce'); define('USE_PCONNECT', 'false'); define('STORE_SESSIONS', ''); ?> and just for good measures, here is my catalog configure file: <?php /* $Id: configure.php,v 1.14 2003/07/09 01:15:48 hpdl Exp $ 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) // eg, http://localhost - should not be empty for productive servers define('HTTP_SERVER', 'http://xx.xxx.xx.xxx/'); // eg, https://localhost - should not be empty for productive servers define('HTTPS_SERVER', 'https://xx.xxx.xx.xxx/'); define('ENABLE_SSL', false); // secure webserver for checkout procedure? define('HTTP_COOKIE_DOMAIN', ''); define('HTTPS_COOKIE_DOMAIN', ''); define('HTTP_COOKIE_PATH', ''); define('HTTPS_COOKIE_PATH', ''); 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', dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME'])); 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 define('DB_SERVER_USERNAME', '*****'); define('DB_SERVER_PASSWORD', '*****'); define('DB_DATABASE', 'osCommerce'); define('USE_PCONNECT', 'false'); // use persistent connections? define('STORE_SESSIONS', ''); // leave empty '' for default handler or set to 'mysql' ?> Hopefully someone can help! Thanks in advance. Danny Link to comment Share on other sites More sharing options...
Guest Posted August 1, 2005 Share Posted August 1, 2005 I think you have php running in safe mode :-" Matti Link to comment Share on other sites More sharing options...
mrbags Posted August 1, 2005 Author Share Posted August 1, 2005 I think you have php running in safe mode :-" Matti <{POST_SNAPBACK}> Hhmm, no dice. I just rechecked my php.ini and all safe_modes are set to off. Im running php 5.0.4. if that matters any. I know i searched around in the kb earlier and found an issue with php 5 where i had to comment out a $this=null line in the catalog\admin\includes\classes\upload.php file to run the admin. Any more gotchas like this? Thanks for any help you can offer. Danny Link to comment Share on other sites More sharing options...
Guest Posted August 2, 2005 Share Posted August 2, 2005 Im running php 5.0.4. if that matters any. <{POST_SNAPBACK}> Yes it does - osCommerce is not forward compatible with PHP5 - search the forums for 'PHP5' for possible solutions. Matti Link to comment Share on other sites More sharing options...
mrbags Posted August 18, 2005 Author Share Posted August 18, 2005 FYI, I found out the steps to get os commerce working with php5 . For anyone else wanting to know here it is: 1) in: /admin/includes/classes/upload.php old: // self destruct $this = null; new: // self destruct // $this = null; unset($this); 2) in catalog/admin/includes/classes/split_page_results.php old: $offset = ($max_rows_per_page * ($current_page_number - 1)); $sql_query .= " limit " . $offset . ", " . $max_rows_per_page; new: $offset = ($max_rows_per_page * ($current_page_number - 1)); if ($offset < 0) { $offset = 0; } $sql_query .= " limit " . $offset . ", " . $max_rows_per_page; 3) in catalog/includes/classes/split_page_results.php old: $offset = ($this->number_of_rows_per_page * ($this->current_page_number - 1)); $this->sql_query .= " limit " . $offset . ", " . $this->number_of_rows_per_page; new: $offset = ($this->number_of_rows_per_page * ($this->current_page_number - 1)); if ($offset < 0) { $offset = 0; } $this->sql_query .= " limit " . $offset . ", " . $this->number_of_rows_per_page; } Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.