SoloStar Posted July 17, 2010 Posted July 17, 2010 Hi all, I try to migrate from a dedicated server from another but after many problems solved, there's one i really don't understand what's the matter. Every seems to be ok til i go to the admin panel. Admin panel displays : (It should be traduced in french) BOX_TITLE_STATISTICS BOX_ENTRY_CUSTOMERS 15622 BOX_ENTRY_PRODUCTS 303 BOX_ENTRY_REVIEWS 0 Rapports REPORTS_PRODUCTS, REPORTS_ORDERS Outils TOOLS_BACKUP, TOOLS_BANNERS, TOOLS_FILES :(.. and all the links makes the same error : Error! Unable to determine the page link! Function used: tep_href_link('', 'selected_box=information', 'NONSSL') The log file show me the following : [sat Jul 17 07:40:44 2010] [error] [client 88.175.xxx.xx] PHP Warning: include(includes/languages/french/) [<a href="function.include">function.include</a>]: failed to open stream: No such file or directory in /var/www/vhosts/SITEWEB.COM/httpdocs/admin/includes/application_top.php on line 133, referer: http://www.SITEWEB.com/admin/categories.php?selected_box=catalog [sat Jul 17 07:40:44 2010] [error] [client 88.175.xxx.xx] PHP Warning: include(includes/languages/french/) [<a href="function.include">function.include</a>]: failed to open stream: No such file or directory in /var/www/vhosts/SITEWEB.COM/httpdocs/admin/includes/application_top.php on line 133, referer: http://www.SITEWEB.com/admin/categories.php?selected_box=catalog [sat Jul 17 07:40:44 2010] [error] [client 88.175.xxx.xx] PHP Warning: include() [<a href="function.include">function.include</a>]: Failed opening 'includes/languages/french/' for inclusion (include_path='.:/var/www/vhosts/SITEWEB.COM/httpdocs') in /var/www/vhosts/SITEWEB.COM/httpdocs/admin/includes/application_top.php on line 133, referer: http://www.SITEWEB.com/admin/categories.php?selected_box=catalog [sat Jul 17 07:40:46 2010] [error] [client 88.175.xxx.xx] PHP Warning: include(includes/languages/french/) [<a href="function.include">function.include</a>]: failed to open stream: No such file or directory in /var/www/vhosts/SITEWEB.COM/httpdocs/admin/includes/application_top.php on line 133, referer: http://www.SITEWEB.com/admin/configuration.php?gID=1 [sat Jul 17 07:40:46 2010] [error] [client 88.175.xxx.xx] PHP Warning: include(includes/languages/french/) [<a href="function.include">function.include</a>]: failed to open stream: No such file or directory in /var/www/vhosts/SITEWEB.COM/httpdocs/admin/includes/application_top.php on line 133, referer: http://www.SITEWEB.com/admin/configuration.php?gID=1 [sat Jul 17 07:40:46 2010] [error] [client 88.175.xxx.xx] PHP Warning: include() [<a href="function.include">function.include</a>]: Failed opening 'includes/languages/french/' for inclusion (include_path='.:/var/www/vhosts/SITEWEB.COM/httpdocs') in /var/www/vhosts/SITEWEB.COM/httpdocs/admin/includes/application_top.php on line 133, referer: http://www.SITEWEB.com/admin/configuration.php?gID=1 [sat Jul 17 07:40:47 2010] [error] [client 88.175.xxx.xx] PHP Warning: include(includes/languages/french/) [<a href="function.include">function.include</a>]: failed to open stream: No such file or directory in /var/www/vhosts/SITEWEB.COM/httpdocs/admin/includes/application_top.php on line 133, referer: http://www.SITEWEB.com/admin/configuration.php?gID=5 [sat Jul 17 07:40:47 2010] [error] [client 88.175.xxx.xx] PHP Warning: include(includes/languages/french/) [<a href="function.include">function.include</a>]: failed to open stream: No such file or directory in /var/www/vhosts/SITEWEB.COM/httpdocs/admin/includes/application_top.php on line 133, referer: http://www.SITEWEB.com/admin/configuration.php?gID=5 [sat Jul 17 07:40:47 2010] [error] [client 88.175.xxx.xx] PHP Warning: include() [<a href="function.include">function.include</a>]: Failed opening 'includes/languages/french/' for inclusion (include_path='.:/var/www/vhosts/SITEWEB.COM/httpdocs') in /var/www/vhosts/SITEWEB.COM/httpdocs/admin/includes/application_top.php on line 133, referer: http://www.SITEWEB.com/admin/configuration.php?gID=5 And the user account creation don't work and don't show any failed messages even in the logs :( All the files needed are includes/languages/french/ and i verified both configure.php and admin/configure.php about 126 times. And chmod looks like ok ! I Hope somebody can help me. Thx in advance Cheers PS : Old serveur : Php 4.1 / Mysql 3.3 / Apache 1.3 New: php 5.2 / Mysql 5 / Apache 2.2.3 OSC MS2 RC1 with patches + contribs...
MrPhil Posted July 17, 2010 Posted July 17, 2010 The text not translated means that the proper language files are not being brought in. For example, BOX_TITLE_STATISTICS would be defined in admin/includes/languages/<your language, e.g., french>/index.php. If that file exists, it's not being brought in for some reason (perhaps your language setting is not properly defined?). Your error message says that includes/languages/french/ is unable to be included. That's odd -- that's a directory, not a file. Something dropped the filename (e.g., index.php) -- did someone edit the files and change the code? In application_top, it's trying to include french.php file. I would fix the language definitions problem first, and then see if you still have the other problem(s). There's no such thing as osC MS2 RC1. Are you are osC 2.2 RC1? The latest version is RC2a. You may want to consider upgrading while you're at it. You will also need to make fixes for MySQL 5.
SoloStar Posted July 17, 2010 Author Posted July 17, 2010 Thx for ur answer MrPhil Like i said i have revisited again and agin thes configurations files... :( i think they are right : Configure.php : <?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.SITEWEB.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', 'http://www.SITEWEB.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', '/var/www/vhosts/SITEWEB.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', 'database'); define('DB_SERVER_PASSWORD', 'passwd'); define('DB_DATABASE', 'database'); define('USE_PCONNECT', 'true'); // use persistent connections? define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql' define('DIR_FS_CACHE_XSELL', 'cache/'); ?> admin/configure.php <?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.SITEWEB.com'); // eg, http://localhost - should not be empty for productive servers define('HTTP_CATALOG_SERVER', 'http://www.SITEWEB.com'); define('HTTPS_CATALOG_SERVER', ''); define('ENABLE_SSL_CATALOG', 'false'); // secure webserver for catalog module define('DIR_FS_DOCUMENT_ROOT', '/var/www/vhosts/SITEWEB.COM/httpdocs/'); // where the pages are located on the server define('DIR_WS_ADMIN', '/Um8ky/'); // absolute path required define('DIR_FS_ADMIN', '/var/www/vhosts/SITEWEB.COM/httpdocs/Um8ky/'); // absolute pate required define('DIR_WS_CATALOG', '/'); // absolute path required define('DIR_FS_CATALOG', '/var/www/vhosts/SITEWEB.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/'); //newsletter products define('DIR_WS_TEMPLATES', DIR_FS_ADMIN . 'template/'); //end newsletter products // define our database connection define('DB_SERVER', 'localhost'); // eg, localhost - should not be empty for productive servers define('DB_SERVER_USERNAME', 'database'); define('DB_SERVER_PASSWORD', 'passwd'); define('DB_DATABASE', 'database'); define('USE_PCONNECT', 'false'); // use persisstent connections? define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql' define('DIR_FS_CACHE_XSELL', '../cache/'); ?> I found an issue that's work for someone but not tottaly for me : replaced the line 34 of admin/include/application_top.php $PHP_SELF = (isset($HTTP_SERVER_VARS['PHP_SELF']) ? $HTTP_SERVER_VARS['PHP_SELF'] : $HTTP_SERVER_VARS['SCRIPT_NAME']); by if (!isset($PHP_SELF)) $PHP_SELF = $HTTP_SERVER_VARS['PHP_SELF']; No more error but no access of any subcat even if they displays Yes i think is osC 2.2 RC1 Thx
SoloStar Posted July 17, 2010 Author Posted July 17, 2010 SOLVED !!!! Yes i had to update to RC2 ! but for now i must found some hacks to make it working as soon as possible so i found this solution: Added in .htaccess php_value register_long_arrays On Thx again
Recommended Posts
Archived
This topic is now archived and is closed to further replies.