Zen Cart Logo
Forums / Installing on a Linux/Unix Server / Admin link to preview cart wrong URL

Admin link to preview cart wrong URL

Views: 2,085

Results 1 to 12 of 12
8 Feb 2010, 8:09 PM
#1
stuffdone avatar

stuffdone

Zen Follower

Join Date:
Jul 2007
Posts:
156
Plugin Contributions:
0

Admin link to preview cart wrong URL

I have a new site and for some reason the URL to the cart that is in the admin is not working correctly. Of course this does not impact customers but is annoying because I don't know how to fix it.

The URL is generated as:


http://www.DOMAIN.com/store/webmaster/www.DOMAIN.com/store/index.php

As you can see the link is appending the correct URL after the present URL in the admin section. It should only be:

www.DOMAIN.com/store/index.php

I don't know where this is coded to fix it? The problem occurred when I changed the paths in the config files from the IP address to the actual domain name after the name propagated. I used the IP to install and set up cart so I would not need to wait. I have done this many times in the past and never had the URL messed up. In the past once I set the paths back to use the URL everything always worked fine.

This is not a critical issue as everything else seems OK but bugs me!

Ideas welcome.

:D

** I changed the directory name for admin for security reasons as I always do.*

8 Feb 2010, 9:23 PM
#2
Kim avatar

Kim

Obaa-san

Join Date:
Jun 2003
Location:
West Coast, North America
Posts:
26,627
Plugin Contributions:
0

Re: Admin link to preview cart wrong URL

Double check your config file for the admin -

9 Feb 2010, 3:23 PM
#3
stuffdone avatar

stuffdone

Zen Follower

Join Date:
Jul 2007
Posts:
156
Plugin Contributions:
0

Re: Admin link to preview cart wrong URL

Kim:

Double check your config file for the admin -

Good advice. Taking a fresh look I found I had omitted the http:// in one place. That also resolved a second problem I had with images not showing in preview when adding a new product. ( They were ok in the store )

Just goes to show you can look and look and still miss something.

Thanks. :blush:

14 Jan 2011, 11:09 PM
#4
sklos avatar

sklos

New Zenner

Join Date:
Oct 2010
Posts:
17
Plugin Contributions:
0

Re: Admin link to preview cart wrong URL

Kim:

Double check your config file for the admin -

Hi there,
Could you please tell me where exactly to find this? Our site apparently has a typo somewhere, and when we click the ONLINE CATALOG link, we getPage Not Found since we accidentally typed in .coml rather than .com

We cannot figure out where this is to fix it!

14 Jan 2011, 11:27 PM
#5
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Admin link to preview cart wrong URL

/your_renamed_admin_folder/includes/configure.php.

14 Jan 2011, 11:43 PM
#6
sklos avatar

sklos

New Zenner

Join Date:
Oct 2010
Posts:
17
Plugin Contributions:
0

Re: Admin link to preview cart wrong URL

gjh42:

/your_renamed_admin_folder/includes/configure.php.

Thanks for the quick response. We have checked and rechecked - the URL is actually correct in that file.

It also shows up when we e-mail a discount coupon - it directs the customer to the incorrect *.**coml **URL.

Any additional things we can check?

We had to change web hosts last month and hadn't come across this (don't know if we just hadn't noticed it, or if it wasn't a problem then).

I don't know if this helps, but it seems that wherever it is pulling the +URL from (below in bold) is where our problem is:

ADMIN AREA:
Coupon
Dear $EMAIL_FIRST_NAME $EMAIL_LAST_NAME,
$EMAIL_MESSAGE_HTML (message composed in Admin)
$COUPON_TEXT_TO_REDEEM ("You've received a coupon")
$COUPON_TEXT_VOUCHER_IS (The voucher number is:")
$COUPON_CODE (Actual voucher number)
$COUPON_DESCRIPTION (Coupon description, if supplied in Admin area when coupon was created)
$COUPON_TEXT_REMEMBER ("Keep this number safe so you don't forget it")
$COUPON_REDEEM_STORENAME_URL ("To redeem, come visit us at our store: +URL")

14 Jan 2011, 11:49 PM
#7
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Admin link to preview cart wrong URL

Have you checked the base /includes/configure.php?

14 Jan 2011, 11:58 PM
#8
sklos avatar

sklos

New Zenner

Join Date:
Oct 2010
Posts:
17
Plugin Contributions:
0

Re: Admin link to preview cart wrong URL

gjh42:

Have you checked the base /includes/configure.php?

Yep. Every configure.php file we have appears to have the correct URL.

15 Jan 2011, 5:27 PM
#9
sklos avatar

sklos

New Zenner

Join Date:
Oct 2010
Posts:
17
Plugin Contributions:
0

Re: Admin link to preview cart wrong URL

SKlos:

Yep. Every configure.php file we have appears to have the correct URL.

Bumping this up - anyone?

15 Jan 2011, 5:42 PM
#10
vger avatar

vger

Past Contributor

Join Date:
Nov 2004
Location:
Norfolk, United Kingdom
Posts:
3,189
Plugin Contributions:
0

Re: Admin link to preview cart wrong URL

Every configure.php file we have appears to have the correct URL

But obviously you are wrong, because at least one of them is incorrect. That error can only come from one or other of your configure.php files, unless you have some redirection taking place in a .htaccess file (in which case the site wouldn't work at all).

Vger

15 Jan 2011, 8:45 PM
#11
sklos avatar

sklos

New Zenner

Join Date:
Oct 2010
Posts:
17
Plugin Contributions:
0

Re: Admin link to preview cart wrong URL

Vger:

But obviously you are wrong, because at least one of them is incorrect. That error can only come from one or other of your configure.php files, unless you have some redirection taking place in a .htaccess file (in which case the site wouldn't work at all).

Vger

We don't have redirection taking place.
We have opened and verified every configure.php file we have, and indeed, the URL is correct.

In addition, when we are in our configure area and click "Online Catalog", it is also sending us to the wrong URL, with a "l" at the end.

So I am saying that, I have checked the information given, done numerous searches and we still have this incorrect URL being pulled from somewhere.

Are you able to help?

16 Jan 2011, 12:36 AM
#12
vger avatar

vger

Past Contributor

Join Date:
Nov 2004
Location:
Norfolk, United Kingdom
Posts:
3,189
Plugin Contributions:
0

Re: Admin link to preview cart wrong URL

Please post one of the two configure.php files, minus the database information at the bottom of the file.

Vger