Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Help! this is Killing me.


ffl

Recommended Posts

Posted

Why would I get this error

 

Warning: dir(http://192.168.2.254/secure/store/includes/modules/payment/) [function.dir]: failed to open dir: not implemented in C:\xampp\htdocs\secure\store\admin\modules.php on line 118

 

if the directory exists?

 

this is the result of hours of trouble shooting. The payment, order_totals, and shipping configuration values keep getting set to blank. I have started trouble shooting the modules.php file line for line and checking values. by removing the @ symbol from the line

 

from this

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

to this

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

 

this error shows up.

 

I know the @ symbol suppresses the error so don't tell me that. What I want to know is why does it not see the directory when it is plainly there. I am an experienced programmer and this is frustrating me to no end.

Posted

Unless I am horribly mis-reading your post... the "http://192.168.2.254/secure/store/includes/modules/payment/" directory does not exist unless you really have a directory in your file system with that name.

 

 

(Probably a WS path where a FS path should go in your configure.php file.)

Community Bootstrap Edition, Edge

 

Avoid the most asked question. See How to Secure My Site and How do I...?

Posted

Unless I am horribly mis-reading your post... the "http://192.168.2.254/secure/store/includes/modules/payment/"'>http://192.168.2.254/secure/store/includes/modules/payment/" directory does not exist unless you really have a directory in your file system with that name.

 

 

(Probably a WS path where a FS path should go in your configure.php file.)

 

I am running apache on a machine that I do my coding on and the http://192.168.2.254 is the same as localhost. the program sees the ip address instead of c:\xampp\htdocs\

 

Would the FS or WS make a difference?

 

Which configure? admin or store

Posted

Here is my admin

 

<?php
// Please, note that all changes in this file will be lost
// after reconfiguring application by Plesk

// define our webserver variables
// FS = Filesystem (physical)
// WS = Webserver (virtual)
 define('HTTP_SERVER', 'http://192.168.2.254/secure/store/'); // eg, http://localhost or - https://localhost should not be NULL for productive servers
 define('HTTP_CATALOG_SERVER', 'http://192.168.2.254/secure/store/');
 define('HTTPS_CATALOG_SERVER', 'http://192.168.2.254/secure/store/');
 define('ENABLE_SSL_CATALOG', true ); // secure webserver for catalog module
 define('DIR_FS_DOCUMENT_ROOT', 'http://192.168.2.254/secure/store/'); // where your pages are located on the server. 
 define('DIR_WS_ADMIN', 'admin/');
 define('DIR_FS_ADMIN', 'http://192.168.2.254/secure/store/admin/');
 define('DIR_WS_CATALOG', 'store/');//store/
 define('DIR_FS_CATALOG', 'http://192.168.2.254/secure/store/');
 define('DIR_WS_IMAGES', 'images/');
 define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');
 define('DIR_WS_CATALOG_IMAGES', DIR_WS_CATALOG . 'images/');
//  define('DIR_WS_CATALOG_IMAGES', '../images/');
 define('DIR_WS_INCLUDES', 'includes/');
 define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/');
 define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');
 define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/');
 define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');
 define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');
//  define('DIR_WS_CATALOG_LANGUAGES', DIR_WS_CATALOG . 'includes/languages/');
 define('DIR_WS_CATALOG_LANGUAGES', '../includes/languages/');
 define('DIR_FS_CATALOG_LANGUAGES', DIR_FS_CATALOG . 'includes/languages/');
 define('DIR_FS_CATALOG_IMAGES', DIR_FS_CATALOG . 'images/');
 define('DIR_FS_CATALOG_MODULES', DIR_FS_CATALOG . 'includes/modules/');
 define('DIR_FS_BACKUP', DIR_FS_ADMIN . 'backups/');

Posted

here is my store

 

<?php
// Please, note that all changes in this file will be lost
// after reconfiguring application by Plesk

// Define the webserver and path parameters
// * DIR_FS_* = Filesystem directories (local/physical)
// * DIR_WS_* = Webserver directories (virtual/URL)
 define('HTTP_SERVER', 'http://192.168.2.254/secure/'); // eg, http://localhost - should not be empty for productive servers
 define('HTTPS_SERVER', 'https://192.168.2.254/secure/'); // eg, https://localhost - should not be empty for productive servers
 define('ENABLE_SSL', 'true'); // secure webserver for checkout procedure?
 define('HTTP_COOKIE_DOMAIN', '192.168.2.254/secure/');
 define('HTTPS_COOKIE_DOMAIN', '192.168.2.254/secure/');
 define('HTTP_COOKIE_PATH', 'https://192.168.2.254/secure/store/');// store
 define('HTTPS_COOKIE_PATH', 'https://192.168.2.254/secure/store/');// store
 define('DIR_WS_HTTP_CATALOG', 'store/'); //store/
 define('DIR_WS_HTTPS_CATALOG', 'store/');//store/
 //define('DIR_WS_IMAGES1', '../graphics/');
 define('DIR_WS_IMAGES', 'images/');
 define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');
 define('DIR_WS_INCLUDES', 'includes/');
 define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/');
 define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');
 define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/');
 define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');
 define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');

 define('DIR_WS_DOWNLOAD_PUBLIC', 'pub/');
 define('DIR_FS_CATALOG', dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']));
 define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');
 define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');

Posted

no dice!

 

played with the FS file locations and now have

 

Catchable error message

 

running php5.2.13 on local machine

 

changed to php4 now database connection error.

Posted

no dice!

 

played with the FS file locations and now have

 

Catchable error message

 

running php5.2.13 on local machine

 

changed to php4 now database connection error.

Now there are two problems...

 

You 'played' with things, and you are trying to use xampp...

 

When you get the database connection fixed put your current store configure.php file back up. Someone will help you with the details in it.

Community Bootstrap Edition, Edge

 

Avoid the most asked question. See How to Secure My Site and How do I...?

Posted

Now there are two problems...

 

You 'played' with things, and you are trying to use xampp...

 

When you get the database connection fixed put your current store configure.php file back up. Someone will help you with the details in it.

Seems the echo statements I added to trouble shoot were causing the catchable errors. removing them fixed that problem

 

I PLAYED with the FS statments and it fixed the problem.

 

What is wrong with xampp? I used sokkit before but they seemed to disappear. I am don't have time to learn how to install apache and the other things like php and Mysql.

Posted

<?php
// Please, note that all changes in this file will be lost
// after reconfiguring application by Plesk

// define our webserver variables
// FS = Filesystem (physical)
// WS = Webserver (virtual)
 define('HTTP_SERVER', 'http://192.168.2.254/secure/store/'); // eg, http://localhost or - https://localhost should not be NULL for productive servers
 define('HTTPS_SERVER', 'https://192.168.2.254/secure/store/'); // eg, http://localhost or - https://localhost should not be NULL for productive servers
 define('HTTP_CATALOG_SERVER', 'http://192.168.2.254/secure/store/');
 define('HTTPS_CATALOG_SERVER', 'https://192.168.2.254/secure/store/');
 define('ENABLE_SSL_CATALOG', true ); // secure webserver for catalog module
 define('DIR_FS_DOCUMENT_ROOT', 'C:\xampp/htdocs/'); // where your pages are located on the server. 
 //define('DIR_FS_DOCUMENT_ROOT', 'http://192.168.2.254/secure/store/'); // where your pages are located on the server. 
 define('DIR_WS_ADMIN', 'admin/');
 define('DIR_FS_ADMIN', DIR_FS_DOCUMENT_ROOT . 'admin/');
 //define('DIR_FS_ADMIN', 'http://192.168.2.254/secure/store/admin/');
 define('DIR_WS_CATALOG', 'store/');//store/
 define('DIR_FS_CATALOG',  DIR_FS_DOCUMENT_ROOT .'secure/store/');
 //define('DIR_FS_CATALOG', 'http://192.168.2.254/secure/store/');
 define('DIR_WS_IMAGES', 'images/');
 define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');
 define('DIR_WS_CATALOG_IMAGES', DIR_WS_CATALOG . 'images/');
//  define('DIR_WS_CATALOG_IMAGES', '../images/');
 define('DIR_WS_INCLUDES', 'includes/');
 define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/');
 define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');
 define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/');
 define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');
 define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');
//  define('DIR_WS_CATALOG_LANGUAGES', DIR_WS_CATALOG . 'includes/languages/');
 define('DIR_WS_CATALOG_LANGUAGES', 'includes/languages/');
 define('DIR_FS_CATALOG_LANGUAGES', DIR_FS_CATALOG . 'includes/languages/');
 define('DIR_FS_CATALOG_IMAGES', DIR_FS_CATALOG . 'images/');
 define('DIR_FS_CATALOG_MODULES', DIR_FS_CATALOG . 'includes/modules/');
 define('DIR_FS_BACKUP', DIR_FS_ADMIN . 'backups/');

 

Don't worry I don't have my admin folder called admin. I changed it for the posting of the code.

 

this is the code that works now.

 

However using open ssl on the local box when I navigate to the sub menu areas like catalog, or shipping etc. it reverts back to regular http not https any suggestions?? This is not an issue on the testing server but it might be on a real server.

 

david

Posted

 

However using open ssl on the local box when I navigate to the sub menu areas like catalog, or shipping etc. it reverts back to regular http not https any suggestions?? This is not an issue on the testing server but it might be on a real server.

 

david

Yeah. OSCommerce was not intended to be https throughout, but you can make it that way. It will hurt your search rankings I am told.

 

Make your http_server and http_catalog_server https://192.168.x.x.

Community Bootstrap Edition, Edge

 

Avoid the most asked question. See How to Secure My Site and How do I...?

Archived

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

×
×
  • Create New...