Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

New problem on my site!


aj23

Recommended Posts

Posted

When I go to a page, an extra piece is added in the url to make it not work.

 

For example, if I clicked home the url would be,

 

http://www.myurl.comdir_ws_adminindex.php/

 

If I delete from the dir_ws_adminindex.php, the site works, and the same thing happens when I click a product. Does anyone know why this is coming up now? I did the auto thumbnailer contribution install, and then this happened.

 

Please help me fix it,

 

Thanks

Posted

correct the configure.php file (one of the path is incorrect)

Please read this line: Do you want to find all the answers to your questions? click here. As for contribution database it's located here!

8 people out of 10 don't bother to read installation manuals. I can recommend: if you can't read the installation manual, don't bother to install any contribution yourself.

Before installing contribution or editing/updating/deleting any files, do the full backup, it will save to you & everyone here on the forum time to fix your issues.

Any issues with oscommerce, I am here to help you.

Posted
correct the configure.php file (one of the path is incorrect)

 

Did that, but the problem still seems to be there. I used a configure.php file form before I made the changes, so it should work if thats the problem.

Posted
Did that, but the problem still seems to be there. I used a configure.php file form before I made the changes, so it should work if thats the problem.

 

Should I post the code of the configure.php? I tried replacing it with a copy and it still didn't work though, so I don't know. Can anyone please help, I need to get the site back up.

Posted
Should I post the code of the configure.php? I tried replacing it with a copy and it still didn't work though, so I don't know. Can anyone please help, I need to get the site back up.

 

Now it's taking me to the admin page, after I tried to replace the configure file agian, I have no idea what is going wrong.

Posted
Now it's taking me to the admin page, after I tried to replace the configure file agian, I have no idea what is going wrong.

Check for a config file in admin/includes/local folder. If you have one, make corrections to it.

 

If you don't, post your admin configure.php file. Do NOT post the database portion.

Posted
Check for a config file in admin/includes/local folder. If you have one, make corrections to it.

 

If you don't, post your admin configure.php file. Do NOT post the database portion.

 

Here is the code, please check it out and see if there are any problems,

 

<?php
/*
 $Id: configure.php 1739 2007-12-20 00:52:16Z hpdl $

 osCommerce, Open Source E-Commerce Solutions
 http://www.oscommerce.com

 Copyright (c) 2002 osCommerce

 Released under the GNU General Public License
*/

// define our webserver variables
// FS = Filesystem (physical)
// WS = Webserver (virtual)
 define('HTTP_SERVER', 'http://myurl.com');
 define('HTTP_CATALOG_SERVER', 'http://myurl.com');
 define('HTTPS_CATALOG_SERVER', 'http://myurl.com');
 define('ENABLE_SSL_CATALOG', 'false');
 define('DIR_FS_DOCUMENT_ROOT', '/home/aj23/public_html/');
 define('DIR_WS_ADMIN', '/admin/');
 define('DIR_FS_ADMIN', '/home/aj23/public_html/admin/');
 define('DIR_WS_CATALOG', '/');
 define('DIR_FS_CATALOG', '/home/aj23/public_html/');
 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/');

// define our database connection
 (edited out)

?>

Posted

Your admin configure file looks good.

 

After you made changes, did you upload and overwrite the old config file?

Here is the code, please check it out and see if there are any problems,

 

<?php
/*
 $Id: configure.php 1739 2007-12-20 00:52:16Z hpdl $

 osCommerce, Open Source E-Commerce Solutions
 http://www.oscommerce.com

 Copyright (c) 2002 osCommerce

 Released under the GNU General Public License
*/

// define our webserver variables
// FS = Filesystem (physical)
// WS = Webserver (virtual)
 define('HTTP_SERVER', 'http://myurl.com');
 define('HTTP_CATALOG_SERVER', 'http://myurl.com');
 define('HTTPS_CATALOG_SERVER', 'http://myurl.com');
 define('ENABLE_SSL_CATALOG', 'false');
 define('DIR_FS_DOCUMENT_ROOT', '/home/aj23/public_html/');
 define('DIR_WS_ADMIN', '/admin/');
 define('DIR_FS_ADMIN', '/home/aj23/public_html/admin/');
 define('DIR_WS_CATALOG', '/');
 define('DIR_FS_CATALOG', '/home/aj23/public_html/');
 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/');

// define our database connection
 (edited out)

?>

Posted
Your admin configure file looks good.

 

After you made changes, did you upload and overwrite the old config file?

 

Yes, when I was told to, I uploaded a backup of the configure file to overwrite the old one. Anything else that may be causing this?

Posted
Yes, when I was told to, I uploaded a backup of the configure file to overwrite the old one. Anything else that may be causing this?

bump

Posted

Go onto your site's control panel and LOOK at the configure.php file to make sure it was updated. If this file was marked "read-only" (444 on a Linux server), your FTP client may fail to overwrite it and not say anything (at least, that you noticed). You would need to make it writable (644 permissions) before you can upload a fresh copy. Change it back to 444 when you're done playing with it.

Posted
Go onto your site's control panel and LOOK at the configure.php file to make sure it was updated. If this file was marked "read-only" (444 on a Linux server), your FTP client may fail to overwrite it and not say anything (at least, that you noticed). You would need to make it writable (644 permissions) before you can upload a fresh copy. Change it back to 444 when you're done playing with it.

 

The file was already set on 644 so that could not be the problem. I really need to get this fixed, and it is starting to be a real pain. My site hasn't been up for two days now. There has got to be someone who can suggest something else?

 

It happened while installing this contribution if it makes a difference,

 

http://www.oscommerce.com/community/contributions,2226

 

I almost completed the installation, but clearly something went wrong.

Posted
The file was already set on 644 so that could not be the problem. I really need to get this fixed, and it is starting to be a real pain. My site hasn't been up for two days now. There has got to be someone who can suggest something else?

 

It happened while installing this contribution if it makes a difference,

 

http://www.oscommerce.com/community/contributions,2226

 

I almost completed the installation, but clearly something went wrong.

Curious ... hmmnn post your <root>/includes/ configure.php file

Posted
Curious ... hmmnn post your <root>/includes/ configure.php file

 

Here it is,

 

<?php
/*
 $Id: configure.php 1739 2007-12-20 00:52:16Z hpdl $

 osCommerce, Open Source E-Commerce Solutions
 http://www.oscommerce.com

 Copyright (c) 2002 osCommerce

 Released under the GNU General Public License
*/

// define our webserver variables
// FS = Filesystem (physical)
// WS = Webserver (virtual)
 define('HTTP_SERVER', 'http://myurl.com');
 define('HTTP_CATALOG_SERVER', 'http://myurl.com');
 define('HTTPS_CATALOG_SERVER', 'http://myurl.com');
 define('ENABLE_SSL_CATALOG', 'false');
 define('DIR_FS_DOCUMENT_ROOT', '/home/aj23/public_html/');
 define('DIR_WS_ADMIN', '/admin/');
 define('DIR_FS_ADMIN', '/home/aj23/public_html/admin/');
 define('DIR_WS_CATALOG', '/');
 define('DIR_FS_CATALOG', '/home/aj23/public_html/');
 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/');

// define our database connection
(edited out)

?>

Posted

Well, obviously something got scrambled so that the Home Page is being added to your domain name as index.php/ rather than /index.php. Check

admin/includes/filenames.php:

define('FILENAME_DEFAULT', 'index.php');

includes/filenames.php:

define('FILENAME_DEFAULT', 'index.php');

 

admin/includes/configure.php:

define('DIR_WS_ADMIN', '/admin/');

includes/configure.php:

define('HTTP_SERVER', '/');

define('HTTPS_SERVER', '/');

 

I believe that DIR_WS_ADMIN, DIR_WS_HTTP_CATALOG, and DIR_WS_HTTPS_CATALOG all have to begin and end with /, so that when tep_href_link() glues them together:

HTTP{S}_SERVER . DIR_WS_ADMIN . FILENAME_DEFAULT

you'll get http://myurl.com/index.php .

 

Something's messed up there so that either you're getting HTTP_SERVER glued on after FILENAME_DEFAULT (bad code in tep_href_link()), or DIR_WS_ADMIN and FILENAME_DEFAULT definitions are reversed.

Posted
Well, obviously something got scrambled so that the Home Page is being added to your domain name as index.php/ rather than /index.php. Check

admin/includes/filenames.php:

define('FILENAME_DEFAULT', 'index.php');

includes/filenames.php:

define('FILENAME_DEFAULT', 'index.php');

 

admin/includes/configure.php:

define('DIR_WS_ADMIN', '/admin/');

includes/configure.php:

define('HTTP_SERVER', '/');

define('HTTPS_SERVER', '/');

 

I believe that DIR_WS_ADMIN, DIR_WS_HTTP_CATALOG, and DIR_WS_HTTPS_CATALOG all have to begin and end with /, so that when tep_href_link() glues them together:

HTTP{S}_SERVER . DIR_WS_ADMIN . FILENAME_DEFAULT

you'll get http://myurl.com/index.php .

 

Something's messed up there so that either you're getting HTTP_SERVER glued on after FILENAME_DEFAULT (bad code in tep_href_link()), or DIR_WS_ADMIN and FILENAME_DEFAULT definitions are reversed.

 

That's all correct as well though,,

 

The problem is no longer the same as the first post after I played with it before, but now it takes me to my admin page when I click home, or any of the categories, and adds admin before the product part of the url.

Posted

Check your filenames.php and configure.php files for something defined as /admin/ that shouldn't be. Is anything besides DIR_WS_ADMIN defined with "admin" in it? Are you keeping your admin and non-admin (catalog) versions of filenames and configure straight, and not putting admin stuff into the catalog? Or, worse, overwriting admin's with catalog's or vice-versa?

Posted
Check your filenames.php and configure.php files for something defined as /admin/ that shouldn't be. Is anything besides DIR_WS_ADMIN defined with "admin" in it? Are you keeping your admin and non-admin (catalog) versions of filenames and configure straight, and not putting admin stuff into the catalog? Or, worse, overwriting admin's with catalog's or vice-versa?

 

Yea once again, I re-uploaded the correct original files to overwrite the ones that were previously there. Maybe it was caused by the MYSQL I had to run for the image contribution or something? I really am losing out on a lot of time that I should be spending making the site ready for the public, by having to fix this issue now as well.

Posted

Regarding post #14

I thought as much. You overwrote your <root>/includes configure.php file with your admin config file. Use this for your <root>/includes configure.php file. Identical filenames different purpose.

 

<?php
/*
 $Id: configure.php 1739 2007-12-20 00:52:16Z hpdl $

 osCommerce, Open Source E-Commerce Solutions
 http://www.oscommerce.com

 Copyright (c) 2003 osCommerce

 Released under the GNU General Public License
*/

// Define the webserver and path parameters
// * DIR_FS_* = Filesystem directories (local/physical)
// * DIR_WS_* = Webserver directories (virtual/URL)
 define('HTTP_SERVER', 'http://myurl.com'); 
 define('HTTPS_SERVER', 'https://myurl.com'); 
 define('ENABLE_SSL', false);
 define('HTTP_COOKIE_DOMAIN', '.myurl.com');
 define('HTTPS_COOKIE_DOMAIN', '.myurl.com');
 define('HTTP_COOKIE_PATH', '/');
 define('HTTPS_COOKIE_PATH', '/');
 define('DIR_WS_HTTP_CATALOG', '/');
 define('DIR_WS_HTTPS_CATALOG', '/');
 define('DIR_FS_CATALOG', '/home/aj23/public_html/');
 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_DOWNLOAD', DIR_FS_CATALOG . 'download/');
 define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');

// define our database connection
define('DB_SERVER', ''); 
 define('DB_SERVER_USERNAME', '');
 define('DB_SERVER_PASSWORD', '');
 define('DB_DATABASE', '');
 define('USE_PCONNECT', 'false'); 
 define('STORE_SESSIONS', 'mysql'); 
?>

Posted
Regarding post #14

I thought as much. You overwrote your <root>/includes configure.php file with your admin config file. Use this for your <root>/includes configure.php file. Identical filenames different purpose.

 

<?php
/*
 $Id: configure.php 1739 2007-12-20 00:52:16Z hpdl $

 osCommerce, Open Source E-Commerce Solutions
 http://www.oscommerce.com

 Copyright (c) 2003 osCommerce

 Released under the GNU General Public License
*/

// Define the webserver and path parameters
// * DIR_FS_* = Filesystem directories (local/physical)
// * DIR_WS_* = Webserver directories (virtual/URL)
 define('HTTP_SERVER', 'http://myurl.com'); 
 define('HTTPS_SERVER', 'https://myurl.com'); 
 define('ENABLE_SSL', false);
 define('HTTP_COOKIE_DOMAIN', '.myurl.com');
 define('HTTPS_COOKIE_DOMAIN', '.myurl.com');
 define('HTTP_COOKIE_PATH', '/');
 define('HTTPS_COOKIE_PATH', '/');
 define('DIR_WS_HTTP_CATALOG', '/');
 define('DIR_WS_HTTPS_CATALOG', '/');
 define('DIR_FS_CATALOG', '/home/aj23/public_html/');
 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_DOWNLOAD', DIR_FS_CATALOG . 'download/');
 define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');

// define our database connection
define('DB_SERVER', ''); 
 define('DB_SERVER_USERNAME', '');
 define('DB_SERVER_PASSWORD', '');
 define('DB_DATABASE', '');
 define('USE_PCONNECT', 'false'); 
 define('STORE_SESSIONS', 'mysql'); 
?>

 

Should the database part be edited to be the same as the other one? And the only other change I need to make is put in my own url, right?

Posted
Should the database part be edited to be the same as the other one? And the only other change I need to make is put in my own url, right?

 

BUMP for tonight, hoping to get this sorted out tomorrow when I get home.

 

Here is another example of where a product on the home page under "new arrivals" takes me,

 

http://www.myurl.comdir_ws_adminproduct_in...?products_id=92

 

If there is anything else I should do, please let me know as well in case the suggestion above doesn't work.

 

Thanks,

Posted
BUMP for tonight, hoping to get this sorted out tomorrow when I get home.

 

Here is another example of where a product on the home page under "new arrivals" takes me,

 

http://www.myurl.comdir_ws_adminproduct_in...?products_id=92

 

If there is anything else I should do, please let me know as well in case the suggestion above doesn't work.

 

Thanks,

dir_ws_admin should not be showing in the url. If you apply post #19 as your includes/ configure.php file, there's no "define(dir_ws_admin,'')".

 

You may have a configure.php file in <root>/includes/local folder. If you do, make it look similar to post #19.

 

If you don't have a config file in your includes/local folder, then

 

1. You're not applying the changes as suggested. --OR--

 

2. If you are applying the changes, they are not being reflected on your site.

You may want to give post #11 by Phil Perry a second look.

Posted
dir_ws_admin should not be showing in the url. If you apply post #19 as your includes/ configure.php file, there's no "define(dir_ws_admin,'')".

 

You may have a configure.php file in <root>/includes/local folder. If you do, make it look similar to post #19.

 

If you don't have a config file in your includes/local folder, then

 

1. You're not applying the changes as suggested. --OR--

 

2. If you are applying the changes, they are not being reflected on your site.

You may want to give post #11 by Phil Perry a second look.

 

It was set default to 644. I have a configure file in the following folders,

 

/home/aj23/www/admin/includes/configure.php

/home/aj23/www/includes/configure.php

/home/aj23/public_html/admin/includes/configure.php

/home/aj23/public_html/includes/configure.php

/public_html/admin/includes/configure.php

/public_html/includes/configure.php

 

Those are all what comes up when I search, "configure.php"

 

If I'm going to change the one in the root includes folder to the code you suggested, all I should do is change the directory, and add my site in the myurl parts, right?

 

EDIT: well I changed the root/includes/configure.php to that code, and yet the problem still occurs.

Posted
It was set default to 644. I have a configure file in the following folders,

 

/home/aj23/www/admin/includes/configure.php

/home/aj23/www/includes/configure.php

/home/aj23/public_html/admin/includes/configure.php

/home/aj23/public_html/includes/configure.php

/public_html/admin/includes/configure.php

/public_html/includes/configure.php

 

Those are all what comes up when I search, "configure.php"

 

If I'm going to change the one in the root includes folder to the code you suggested, all I should do is change the directory, and add my site in the myurl parts, right?

 

EDIT: well I changed the root/includes/configure.php to that code, and yet the problem still occurs.

 

BUMP! I really want to get this sorted out today,

Posted
It was set default to 644. I have a configure file in the following folders,

 

/home/aj23/www/admin/includes/configure.php

/home/aj23/www/includes/configure.php

/home/aj23/public_html/admin/includes/configure.php

/home/aj23/public_html/includes/configure.php

/public_html/admin/includes/configure.php

/public_html/includes/configure.php

 

Those are all what comes up when I search, "configure.php"

 

If I'm going to change the one in the root includes folder to the code you suggested, all I should do is change the directory, and add my site in the myurl parts, right?

 

EDIT: well I changed the root/includes/configure.php to that code, and yet the problem still occurs.

One website --> 1 /includes/ configure.php file AND 1 admin/includes/ configure.php file ONLY

 

You have 4 MORE configure files than the people in this forum for one website. Why do you have so many and why do you have 2 root directories?

 

I think the last 2 can be eliminated.

 

Post #19 can be applied to a configure.php file that's in

 

1. /home/aj23/www/includes/ --OR--

 

2. /home/aj23/public_html/includes/

 

IF it is #1, your FS CATALOG is this --> define('DIR_FS_CATALOG', '/home/aj23/www/');

 

otherwise it's this --> define('DIR_FS_CATALOG', '/home/aj23/public_html/');

 

Open your includes/configure.php file using your text eidtor and make changes to it. The one that works is the one.

 

myurl.com becomes whatever_your_domain.com

Archived

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

×
×
  • Create New...