Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Payment and Shipping Modules not installing! HELP!


Guest

Recommended Posts

Hi there,

 

I posted this at the bottom of another topic, but I think that post is already buried!

 

Here's the problem..!

 

When I get to any of the module pages in the admin menu, eg. payment, shipping, or order total, All I get is a heading and the install button with the green plus sign.

 

I hard-coded the DIR_FS_CATALOG global variable, as suggested by gwlund (see below), and the address folder address changes to:

Module Directory: http://ssl.linknet.com.au/freeman/catalog/...odules/payment/

but I still don't get a list of the modules to install. I have made all of the folders along the way to the modules 777, so there should be no permissions problems... but still no install list.... HELP!!!

 

- solarsister

 

 

 

QUOTE(gwlund @ Jan 18 2005, 03:19 PM)

hello, I had the same problem where neither payment or shipping modules would install. I traced it down to a problem with the DIR_FS_CATALOG_MODULES global in admin/includes/configure.php. When I changed the value of DIR_FS_CATALOG to a hard-coded full path (like 'C:/Inetpub/wwwroot/Store/') then the definition define('DIR_FS_CATALOG_MODULES', DIR_FS_CATALOG . 'includes/modules/') works fine and my payment module installs correctly.

Link to comment
Share on other sites

I've just done some digging in the admin/modules.php file, and there is the code below... The code seems to stop before reading in the module files, so I'm wondering about the line:

if ($dir = @dir($module_directory)) {

... I've never seen the @dir before... what is this, and why don't the files get read, as they definitely exist...

 

Any help is much appreciated, I have a deadline on Monday! Aaaahh!

 

 

$file_extension = substr($PHP_SELF, strrpos($PHP_SELF, '.'));

$directory_array = array();

 

if ($dir = @dir($module_directory)) {

print "here<BR>"; // *** the program doesn't get here *** //

while ($file = $dir->read()) {

if (!is_dir($module_directory . $file)) {

if (substr($file, strrpos($file, '.')) == $file_extension) {

$directory_array[] = $file;

}

}

}

sort($directory_array);

$dir->close();

}

 

$installed_modules = array();

print sizeof($directory_array);

for ($i=0, $n=sizeof($directory_array); $i<$n; $i++) {

Link to comment
Share on other sites

I'm assuming that you might be running on Windows under IIS.

 

Here is how you fix this.

 

First:

Change your admin/configure.PHP

define('DIR_FS_DOCUMENT_ROOT', $DOCUMENT_ROOT);

to

define('DIR_FS_DOCUMENT_ROOT', 'c:\inetpub\wwwroot');

(or whatever your root is)

 

Next:

Change admin/modules.PHP

Find

if ($dir = @dir($module_directory)) {

Change to:

if ($dir = opendir( $module_directory)) {

 

Find:

while ($file = $dir->read()) {

Change To:

while ($file = readdir($dir)) {

 

Find:

$dir->close();

Change to:

closedir($dir)

 

 

 

I hope this works for you!!! Let me know.

:thumbsup:

Link to comment
Share on other sites

  • 1 year later...

I did that and get the followign for all 3 modules:

 

Warning: opendir(//catalog/includes/modules/payment/): failed to open dir: No such file or directory in /home/content/p/r/a/pracing/html/admin/modules.php on line 112
Link to comment
Share on other sites

  • 3 weeks later...

Archived

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

×
×
  • Create New...