steveburns Posted February 7, 2013 Posted February 7, 2013 Hi I wonder if anyone can help i got the following errors during installation, although it did say "installation successful" at the end. The system does't work at all though. Warning: opendir(/public_html/includes/work/) [function.opendir]: failed to open dir: No such file or directory in/websites/123reg/LinuxPackage22/mydomain.com/public_html/catalog/install/templates/pages/install_4.phpon line 82 Warning: fopen(/public_html/includes/configure.php) [function.fopen]: failed to open stream: No such file or directory in/websites/123reg/LinuxPackage22/mydomain.com/public_html/catalog/install/templates/pages/install_4.phpon line 146 Warning: fputs(): supplied argument is not a valid stream resource in/websites/123reg/LinuxPackage22/mydomain.com/public_html/catalog/install/templates/pages/install_4.phpon line 147 Warning: fclose(): supplied argument is not a valid stream resource in/websites/123reg/LinuxPackage22/mydomain.com/public_html/catalog/install/templates/pages/install_4.phpon line 148 Warning: fopen(/public_html/admin/includes/configure.php) [function.fopen]: failed to open stream: No such file or directory in/websites/123reg/LinuxPackage22/mydomain.com/public_html/catalog/install/templates/pages/install_4.phpon line 191 Warning: fputs(): supplied argument is not a valid stream resource in/websites/123reg/LinuxPackage22/mydomain.com/public_html/catalog/install/templates/pages/install_4.phpon line 192 Warning: fclose(): supplied argument is not a valid stream resource in/websites/123reg/LinuxPackage22/mydomain.com/public_html/catalog/install/templates/pages/install_4.phpon line 193
Bob Terveuren Posted February 7, 2013 Posted February 7, 2013 Hi there Looks like your hosting server is not letting you work with some of the folders/files - in particular the last two sets of warnings are telling you that it cannot work with the two config files. You'll have to manually ftp these two files up to your server after filling in all the correct details like database user/passwords etc etc Once you've done that it should work Try http://www.oscommerce.com/forums/topic/193738-a-guide-to-the-configurephp-files/ for more info (maybe a little bit different with the latest osC but you'll get the idea) The first batch of errors are from this code $dir_fs_document_root = $HTTP_POST_VARS['DIR_FS_DOCUMENT_ROOT']; if ((substr($dir_fs_document_root, -1) != '\\') && (substr($dir_fs_document_root, -1) != '/')) { if (strrpos($dir_fs_document_root, '\\') !== false) { $dir_fs_document_root .= '\\'; } else { $dir_fs_document_root .= '/'; } } osc_db_query('update ' . TABLE_CONFIGURATION . ' set configuration_value = "' . $dir_fs_document_root . 'includes/work/" where configuration_key = "DIR_FS_CACHE"'); osc_db_query('update ' . TABLE_CONFIGURATION . ' set configuration_value = "' . $dir_fs_document_root . 'includes/work/" where configuration_key = "SESSION_WRITE_DIRECTORY"'); So you'll probably have to create a folder for use by these two config values by hand and then plonk the values into the database
burt Posted February 7, 2013 Posted February 7, 2013 Warning: fopen(/public_html/includes/configure.php) [function.fopen]: failed to open stream: No such file or directory in/websites/123reg/LinuxPackage22/mydomain.com/public_html/catalog/ The problem here is the paths are incorrect. Looks like install is happening in /catalog/ but the fileset is looking at root. Or vice versa. So, if you have the shop installed in /catalog/ ensure that you also have this word in the PATHs in /includes/configure.php
MrPhil Posted February 7, 2013 Posted February 7, 2013 opendir(/public_html/includes/work/) This is a bad "FS" definition in configure.php. There is no /public_html/. It should be /websites/123reg/LinuxPackage22/mydomain.com/public_html/. If the installation process isn't properly picking up the right directory path all by itself, you may have to help out with the configure.php files as Burt described.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.