Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Access Rights??


kkashi

Recommended Posts

Hi,

 

I have a very strange problem -- I think. When I run the admin | modules | Shipping or Payment or Order Total, no real data displays, even though the payments, ... are loaded.

 

I tracked it to modules.php. This stmt line:

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

supresses the errors because of @sign. I took off @ sign and now, it shows the following error:

 

Warning: dir(/testing/catalog/includes/modules/shipping/): failed to open dir: Invalid argument in C:\webroot\testing\admin\modules.php on line 133

 

FYI line 133 will not match yours because I have about 10 lines of debug stmts.

 

PLEASE HELP!

Link to comment
Share on other sites

first off, why did you remove any coding? if this is a generic straight install with no mods/contributions, everything works.

could be you have a corrupted database, something like that.

Link to comment
Share on other sites

Thanks for quick reply.

 

It was not working from beginning. I did not really change much -- just deleted all languages but English. Actually it did work initially, but then stopped working. Do not really know what could've happened.

 

-Kevin.

Link to comment
Share on other sites

I am not sure. If I change the

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

to

if ($dir = dir('c:\webroot')) {

 

then no errors, but as soon as I revert back to original code, it has problem accessing the directory:

Warning: dir(/testing/catalog/includes/modules/shipping/): failed to open dir: Invalid argument in C:\webroot\testing\admin\modules.php

 

I even did a

if ($dir = dir('c:\webroot\testing')) {

and same problem. Is this something with access rights?

Link to comment
Share on other sites

Thanks for reply.

 

My $module_directory is:

/testing/catalog/includes/modules/shipping/

This produces the same error as before. However, if I give complete path and hard code as follows:

if ($dir = dir('c:/webroot/testing/catalog/includes/modules/shipping/')) {

then it is fine. What is wrong? :huh:

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...