kkashi Posted January 6, 2004 Share Posted January 6, 2004 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 More sharing options...
Guest Posted January 6, 2004 Share Posted January 6, 2004 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 More sharing options...
kkashi Posted January 6, 2004 Author Share Posted January 6, 2004 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 More sharing options...
Guest Posted January 6, 2004 Share Posted January 6, 2004 that in my opinion would point me to the database Link to comment Share on other sites More sharing options...
kkashi Posted January 6, 2004 Author Share Posted January 6, 2004 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 More sharing options...
Guest Posted January 6, 2004 Share Posted January 6, 2004 what have you changed in your configure.php file? also, the folders go c:/webroot/testing, not the other way around. Link to comment Share on other sites More sharing options...
kkashi Posted January 6, 2004 Author Share Posted January 6, 2004 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 More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.