Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Modules Not Installing: failed to open stream: Invalid argument


wezhira

Recommended Posts

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

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

  • 1 month later...

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

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

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

Definately a Mambo or Joomla wrap.

 

Support should be at those sites imo.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...