Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

can ya check my configure.php files


lonestarbaits

Recommended Posts

i was trying to edit my configure.php files in both admin/includes and catalog/includes to figure out why my shipping modules weren't showing up in the admin modules page, they are in the modules folder, but they don't appear in the admin pages, i had deleted them before because i didn't need em, but when i put them back, they don't show up now.. anyways, somehow i messed up my catalog page in the process and now im getting frustated, can ya take a look at both configure files and see if you see any problems. take a look at the site lonestarbaits.com and you'll see what i mean.

 

admin/includes/configure.php

define('HTTP_SERVER', 'http://www.lonestarbaits.com'); // eg, http://localhost - should not be empty for productive servers
define('HTTP_CATALOG_SERVER', 'http://www.lonestarbaits.com');
define('HTTPS_CATALOG_SERVER', '');
define('ENABLE_SSL_CATALOG', 'false'); // secure webserver for catalog module
define('DIR_FS_DOCUMENT_ROOT', '/home/lonestar/public_html/catalog'); // where the pages are located on the server
define('DIR_WS_ADMIN', '/admin/'); // absolute path required
define('DIR_FS_ADMIN', '/home/lonestar/public_html/catalog/admin/'); // absolute pate required
define('DIR_WS_CATALOG', '/catalog/'); // absolute path required
define('DIR_FS_CATALOG', '/home/lonestar/public_html/catalog/'); // absolute path required
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_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_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/');

 

catalog/includes/configure.php

define('HTTP_SERVER', 'http://www.lonestarbaits.com'); // eg, http://localhost - should not be empty for productive servers
 define('HTTPS_SERVER', ''); // eg, https://localhost - should not be empty for productive servers
 define('ENABLE_SSL', false); // secure webserver for checkout procedure?
 define('HTTP_COOKIE_DOMAIN', 'www.lonestarbaits.com');
 define('HTTPS_COOKIE_DOMAIN', '');
 define('HTTP_COOKIE_PATH', '/catalog/');
 define('HTTPS_COOKIE_PATH', '');
 define('DIR_WS_HTTP_CATALOG', '/catalog/');
 define('DIR_WS_HTTPS_CATALOG', '');
 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', '/home/lonestar/public_html/catalog/');
 define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');
 define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');

 

I'm totally stumped.

Link to comment
Share on other sites

:P

 

http://www.lonestarbaits.com/images/lonestarbaits.com.jpg

 

You're running in root, not catalog.

 

define('HTTP_SERVER', 'http://www.lonestarbaits.com'); // eg, http://localhost - should not be empty for productive servers

define('HTTPS_SERVER', ''); // eg, https://localhost - should not be empty for productive servers

define('ENABLE_SSL', false); // secure webserver for checkout procedure?

define('HTTP_COOKIE_DOMAIN', 'www.lonestarbaits.com');

define('HTTPS_COOKIE_DOMAIN', '');

define('HTTP_COOKIE_PATH', '/');

define('HTTPS_COOKIE_PATH', '/');

define('DIR_WS_HTTP_CATALOG', '/');

define('DIR_WS_HTTPS_CATALOG', '/');

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', '/home/lonestar/public_html/');

define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');

define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');

Local: Mac OS X 10.5.8 - Apache 2.2/php 5.3.0/MySQL 5.4.10 • Web Servers: Linux

Tools: BBEdit, Coda, Versions (Subversion), Sequel Pro (db management)

Link to comment
Share on other sites

man im such an idiot... thanks.

 

but my shipping modules are still not showing up... any ideas on that?

I've never run into that problem. You could go into phpMyAdmin and add the missing modules.

 

It's table: configuration -> MODULE_SHIPPING_INSTALLED (line 69)

Local: Mac OS X 10.5.8 - Apache 2.2/php 5.3.0/MySQL 5.4.10 • Web Servers: Linux

Tools: BBEdit, Coda, Versions (Subversion), Sequel Pro (db management)

Link to comment
Share on other sites

alright, just tried that, looked at the other modules installed for examples, did it just like that with the correct module names, and it sets, but when i still don't see em in the admin page, then when i go back to the table, their no longer there either, how weird is that

Link to comment
Share on other sites

alright, just tried that, looked at the other modules installed for examples, did it just like that with the correct module names, and it sets, but when i still don't see em in the admin page, then when i go back to the table, their no longer there either, how weird is that

When you re-added the modules exactly which directory did you put them in?

Local: Mac OS X 10.5.8 - Apache 2.2/php 5.3.0/MySQL 5.4.10 • Web Servers: Linux

Tools: BBEdit, Coda, Versions (Subversion), Sequel Pro (db management)

Link to comment
Share on other sites

I put them both back in the catalog/includes/languages/english/modules/shipping/ and catalog/includes/modules/shipping/

Have you dumped your browser cache?

Local: Mac OS X 10.5.8 - Apache 2.2/php 5.3.0/MySQL 5.4.10 • Web Servers: Linux

Tools: BBEdit, Coda, Versions (Subversion), Sequel Pro (db management)

Link to comment
Share on other sites

just tried that... no difference :(

When you removed them did you uninstall them in admin first or just delete them. I'm scratching my head here.

 

I'm going to play around a little with a test site.

Local: Mac OS X 10.5.8 - Apache 2.2/php 5.3.0/MySQL 5.4.10 • Web Servers: Linux

Tools: BBEdit, Coda, Versions (Subversion), Sequel Pro (db management)

Link to comment
Share on other sites

I don't think I really had them installed, at least not all of them, and I just removed them from the folders because I added a different shipping module so I thought I no longer needed them. But, I don't want to use the new shipping module that I added, so I got rid of that and added back the original modules, but as I've already explained, they don't even show up to have the option to install them or not. I hope that makes sense.

Link to comment
Share on other sites

I don't think I really had them installed, at least not all of them, and I just removed them from the folders because I added a different shipping module so I thought I no longer needed them. But, I don't want to use the new shipping module that I added, so I got rid of that and added back the original modules, but as I've already explained, they don't even show up to have the option to install them or not. I hope that makes sense.

Well, it makes sense but I just uploaded a new module (to the appropriate folders) and went to payments (I uploaded a payment one) and there it was ready for me to click install. I'm not sure what's going on.

Local: Mac OS X 10.5.8 - Apache 2.2/php 5.3.0/MySQL 5.4.10 • Web Servers: Linux

Tools: BBEdit, Coda, Versions (Subversion), Sequel Pro (db management)

Link to comment
Share on other sites

try removing the modules that come with osc and then make sure their not there in the admin page, then re-add em see if they reappear..

 

Give me a minute or two.

Local: Mac OS X 10.5.8 - Apache 2.2/php 5.3.0/MySQL 5.4.10 • Web Servers: Linux

Tools: BBEdit, Coda, Versions (Subversion), Sequel Pro (db management)

Link to comment
Share on other sites

No problem.

 

I downloaded Item (Per Item) to my local machine then completely deleted it from the host. Refreshed and the line was gone.

 

Uploaded it back and refreshed, *BOOM*, it's there.

 

Are you confusing your directories somehow?

 

What are the permissions on your files?

Local: Mac OS X 10.5.8 - Apache 2.2/php 5.3.0/MySQL 5.4.10 • Web Servers: Linux

Tools: BBEdit, Coda, Versions (Subversion), Sequel Pro (db management)

Link to comment
Share on other sites

The file I just played with is 644 and the modules directory itself is 755.

Local: Mac OS X 10.5.8 - Apache 2.2/php 5.3.0/MySQL 5.4.10 • Web Servers: Linux

Tools: BBEdit, Coda, Versions (Subversion), Sequel Pro (db management)

Link to comment
Share on other sites

okay this is really weird... i tried them with 777, no difference... i re-added a different shipping module, and it appears, but the orignals won't... doesn't make sense.

Go to phpMyAdmin and check the contents of these lines in table: TABLE_CONFIGURATION.

 

(This is a line from modules.php. I added returns to make the fields clear in this post.)

 

$key_value_query = tep_db_query("select

 

configuration_title,

configuration_value,

configuration_description,

use_function,

set_function

 

from " . TABLE_CONFIGURATION . " where configuration_key = '" . $module_keys[$j] . "'");

Local: Mac OS X 10.5.8 - Apache 2.2/php 5.3.0/MySQL 5.4.10 • Web Servers: Linux

Tools: BBEdit, Coda, Versions (Subversion), Sequel Pro (db management)

Link to comment
Share on other sites

okay, i got both the zones.php and table.php shipping modules to show up now in the admin, i installed them, then i wanted to test them out in the checkout, so i added some weight to my shopping cart, go to checkout, and i get this...

 

Warning: shipping(includes/modules/shippingtable.php): failed to open stream: No such file or directory in /home/lonestar/public_html/catalog/includes/classes/shipping.php on line 37

Warning: shipping(): Failed opening 'includes/modules/shippingtable.php' for inclusion (include_path='.:/usr/local/lib/php') in /home/lonestar/public_html/catalog/includes/classes/shipping.php on line 37

Fatal error: Cannot instantiate non-existent class: table in /home/lonestar/public_html/catalog/includes/classes/shipping.php on line 39

Link to comment
Share on other sites

It looks like a variation on the same issue, like the files can't be seen:

 

From: /catalog/includes/classes/shipping.php

 

for ($i=0, $n=sizeof($include_modules); $i<$n; $i++) {
	  include(DIR_WS_LANGUAGES . $language . '/modules/shipping/' . $include_modules[$i]['file']);
	  include(DIR_WS_MODULES . 'shipping/' . $include_modules[$i]['file']);

	  $GLOBALS[$include_modules[$i]['class']] = new $include_modules[$i]['class'];
	}

 

What did you do to make the files been "seen" in the admin Shipping Modules section?

 

I'm wondering if it's an ownership issue. With your ftp program can you see who is the owner of each file?

 

It's possible on some servers to install with a web based install process files that are "owned" by a user other than the ftp user.

Local: Mac OS X 10.5.8 - Apache 2.2/php 5.3.0/MySQL 5.4.10 • Web Servers: Linux

Tools: BBEdit, Coda, Versions (Subversion), Sequel Pro (db management)

Link to comment
Share on other sites

I just deleted all the shipping modules, added table.php module by itself, it showed up then, then added the zones.php module and showed up, it seems like the ups.php that comes with osc conflicts and makes them all disappear if you add the usp.php module, strange...

 

yeah I checked my shipping.php and it looks like that...

 

imma try a different module and see if I can get it to work, i'm messing around with the Fedex Zones 3.0 module right now, trying to change everything from fedex to DHL, but im getting an mysql error when I load the data file.. trying to figure out what's causing it...

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...