OrcaSoul Posted January 16, 2010 Share Posted January 16, 2010 I installed osCommerce, opened as admin and ran down the menu items. Found several compatibility issues, most taken care of by using current php 5.3 functions. Worked fine, until I tried to view the tools/File Manager page. I ran into a problem at catalog\admin\file_manager.php - line 29: Original: if (!ereg('^' . DIR_FS_DOCUMENT_ROOT, $current_path)) $current_path = DIR_FS_DOCUMENT_ROOT; ereg is depreciated to preg_match, replaced ereg: if (!preg_match('^' . DIR_FS_DOCUMENT_ROOT, $current_path)) $current_path = DIR_FS_DOCUMENT_ROOT; This gives me the following error message: Warning: preg_match() [function.preg-match]: No ending delimiter '^' found in C:\xampp\htdocs\catalog\admin\file_manager.php on line 29 Modified line 29 to add deliminaters if (!preg_match('/^' . DIR_FS_DOCUMENT_ROOT . '/', $current_path)) $current_path = DIR_FS_DOCUMENT_ROOT; This gives me the following error message: Warning: preg_match() [function.preg-match]: Unknown modifier 'a' in C:\xampp\htdocs\catalog\admin\file_manager.php on line 29 What am I missing here? The only "a" I see is in the var name $current_path... Link to comment Share on other sites More sharing options...
ozEworks Posted January 16, 2010 Share Posted January 16, 2010 I can highly recommend you don't worry about it and remove File Manager and Define Languages from your site. From the Admin menu and your folders. Instead edit your files by downing to your PC via an ftp program (there are free ones out there - try coffee cup) and then edit them using Notepad or WordPad or buy a HTML editor like Dreamweaver or something. Why? 1. they are hacker tools - anything that lets people edit your files is an (unnecessary) risk. I could edit your english.php file and take down your site in one easy step 2. they editor can corrupt file content by putting blank lines at the end of a file (at least it used to) and that can stop the site from working 3. there is no backuo and you always keep a backup Link to comment Share on other sites More sharing options...
OrcaSoul Posted January 16, 2010 Author Share Posted January 16, 2010 I can highly recommend you don't worry about it and remove File Manager and Define Languages from your site. From the Admin menu and your folders. That makes sense - I don't see a reason for my site to have those features anyway... Thanks. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.