wezhira Posted February 21, 2007 Share Posted February 21, 2007 i just installed the oscommerce and the modules did not install... Only shows the url where the module folder is when i hit install i get the following error mesage Warning: include(/home/thazonet/public_html/components/com_oscommerce/includes/modules/payment/) [function.include]: failed to open stream: Invalid argument in /home/thazonet/public_html/administrator/components/com_oscommerce/modules.php on line 80 Warning: include() [function.include]: Failed opening '/home/thazonet/public_html/components/com_oscommerce/includes/modules/payment/' for inclusion (include_path='.:/usr/local/lib/php') in /home/thazonet/public_html/administrator/components/com_oscommerce/modules.php on line 80 Fatal error: Class '' not found in /home/thazonet/public_html/administrator/components/com_oscommerce/modules.php on line 81 I am i have tried all i can changed chmod for folders and files involved but still get the same error. Please help Link to comment Share on other sites More sharing options...
Velveeta Posted February 21, 2007 Share Posted February 21, 2007 i just installed the oscommerce and the modules did not install... Only shows the url where the module folder is when i hit install i get the following error mesage Warning: include(/home/thazonet/public_html/components/com_oscommerce/includes/modules/payment/) [function.include]: failed to open stream: Invalid argument in /home/thazonet/public_html/administrator/components/com_oscommerce/modules.php on line 80 Warning: include() [function.include]: Failed opening '/home/thazonet/public_html/components/com_oscommerce/includes/modules/payment/' for inclusion (include_path='.:/usr/local/lib/php') in /home/thazonet/public_html/administrator/components/com_oscommerce/modules.php on line 80 Fatal error: Class '' not found in /home/thazonet/public_html/administrator/components/com_oscommerce/modules.php on line 81 I am i have tried all i can changed chmod for folders and files involved but still get the same error. Please help I have never seen a directory path structure like that... Is it the standard oscommerce you're installing, or is it some derivative work like joscommerce or oscmax or something like that? Being that it has a components directory, that almost looks like some joomla/mambo concoction or something... Or is this being installed by some webhosting control panel like cpanel or something? If that's the case, you'll need to contact your host about this, as they may have moved some files that installer is looking for... If it's not, that's not a normal oscommerce installation path... Richard. Richard Lindsey Link to comment Share on other sites More sharing options...
Chris_White Posted April 20, 2007 Share Posted April 20, 2007 I've been having a similar problem with the Windows install of 2.2ms2-060817. The error I get is: Warning: include(c:/inetpub/wwwroot/catalog/includes/modules/payment/) [function.include]: failed to open stream: Permission denied in C:\Inetpub\wwwroot\catalog\admin\modules.php on line 58 Warning: include() [function.include]: Failed opening 'c:/inetpub/wwwroot/catalog/includes/modules/payment/' for inclusion (include_path='.;c:\inetpub\wwwroot\catalog') in C:\Inetpub\wwwroot\catalog\admin\modules.php on line 58 Fatal error: Class '' not found in C:\Inetpub\wwwroot\catalog\admin\modules.php on line 59 For testing purposes I gave everyone access to the entire catalog folder (and made it recursive down to the file level) so it's not an obvious permissions problem. Any ideas? Link to comment Share on other sites More sharing options...
satish Posted April 20, 2007 Share Posted April 20, 2007 appears that You are using a wrapper of oscommerce with Joomla. where did this modules.php come from. Satish Ask/Skype for Free osCommerce value addon/SEO suggestion tips for your site. Check My About US For who am I and what My company does. Link to comment Share on other sites More sharing options...
Chris_White Posted April 20, 2007 Share Posted April 20, 2007 I downloaded it from the main osc site on 3/7/07, filename oscommerce-2.2ms2-060817.zip Here's the (seemingly) relevant code from modules.php (I changed the get and post variables for php5, and added a few debug echo lines to ensure that $action was install and the path was correct): if (tep_not_null($action)) { switch ($action) { case 'save': while (list($key, $value) = each($_POST['configuration'])) { tep_db_query("update " . TABLE_CONFIGURATION . " set configuration_value = '" . $value . "' where configuration_key = '" . $key . "'"); } tep_redirect(tep_href_link(FILENAME_MODULES, 'set=' . $set . '&module=' . $_GET['module'])); break; case 'install': case 'remove': $file_extension = substr($_SERVER['PHP_SELF'], strrpos($_SERVER['PHP_SELF'], '.')); $class = basename($_GET['module']); echo "$file_extension<br>"; echo ($module_directory . $class . $file_extension); if (file_exists($module_directory . $class . $file_extension)) { include($module_directory . $class . $file_extension); $module = new $class; if ($action == 'install') { $module->install(); } elseif ($action == 'remove') { $module->remove(); } } tep_redirect(tep_href_link(FILENAME_MODULES, 'set=' . $set . '&module=' . $class)); break; } } This code results in <br> c:/inetpub/wwwroot/catalog/includes/modules/payment/ so it looks like neither the $class nor $file_extension are being populated. I think the problem is in the previous pass on this page, maybe there's another change from php 4 to 5 that changes the way you read the files in a particular directory out to an array? I don't see any modules to install on the first pass of the modules page, maybe that's what I'm missing? Link to comment Share on other sites More sharing options...
♥FWR Media Posted April 20, 2007 Share Posted April 20, 2007 Definately a Mambo or Joomla wrap. Support should be at those sites imo. Ultimate SEO Urls 5 PRO - Multi Language Modern, Powerful SEO Urls KissMT Dynamic SEO Meta & Canonical Header Tags KissER Error Handling and Debugging KissIT Image Thumbnailer Security Pro - Querystring protection against hackers ( a KISS contribution ) If you found my post useful please click the "Like This" button to the right. Please only PM me for paid work. Link to comment Share on other sites More sharing options...
Chris_White Posted April 20, 2007 Share Posted April 20, 2007 Thank you all for the quick responses, but unless you download the joomla or mambo packages at http://www.oscommerce.com/solutions/downloads (click on windows, sourceforge, america and it's the same filename with the same checksum) it is 100% not one of the packages you speak of. Link to comment Share on other sites More sharing options...
♥FWR Media Posted April 20, 2007 Share Posted April 20, 2007 Thank you all for the quick responses, but unless you download the joomla or mambo packages at http://www.oscommerce.com/solutions/downloads (click on windows, sourceforge, america and it's the same filename with the same checksum) it is 100% not one of the packages you speak of. Chris I was responding to the original poster as we wouldn't want to hijack his post would we? Your paths are wrong or the "file to include" is not there. Ultimate SEO Urls 5 PRO - Multi Language Modern, Powerful SEO Urls KissMT Dynamic SEO Meta & Canonical Header Tags KissER Error Handling and Debugging KissIT Image Thumbnailer Security Pro - Querystring protection against hackers ( a KISS contribution ) If you found my post useful please click the "Like This" button to the right. Please only PM me for paid work. Link to comment Share on other sites More sharing options...
kirikintha Posted April 20, 2007 Share Posted April 20, 2007 Your paths are wrong or the "file to include" is not there. Ditto - no matter what, the program is not finding the include file - check your directory structure, doubt this is a permission issue - unless you have htaccess that is stopping reading... Nothing unreal exists Link to comment Share on other sites More sharing options...
Chris_White Posted April 20, 2007 Share Posted April 20, 2007 Just trying to avoid multiple threads about the same error. I'll double check my paths. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.