Page 1 of 2 12 LastLast
Results 1 to 10 of 12
  1. #1
    Join Date
    Jul 2007
    Posts
    155
    Plugin Contributions
    0

    Have a Drink 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.



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

  2. #2
    Join Date
    Jun 2003
    Posts
    33,721
    Plugin Contributions
    0

    Default Re: Admin link to preview cart wrong URL

    Double check your config file for the admin -
    Please do not PM for support issues: a private solution doesn't benefit the community.

    Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

  3. #3
    Join Date
    Jul 2007
    Posts
    155
    Plugin Contributions
    0

    Default [SOLVED] Admin link to preview cart wrong URL

    Quote Originally Posted by Kim View Post
    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.

  4. #4
    Join Date
    Oct 2010
    Posts
    17
    Plugin Contributions
    0

    Default Re: Admin link to preview cart wrong URL

    Quote Originally Posted by Kim View Post
    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!

  5. #5
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Admin link to preview cart wrong URL

    /your_renamed_admin_folder/includes/configure.php.

  6. #6
    Join Date
    Oct 2010
    Posts
    17
    Plugin Contributions
    0

    Default Re: Admin link to preview cart wrong URL

    Quote Originally Posted by gjh42 View Post
    /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")
    Last edited by SKlos; 15 Jan 2011 at 12:48 AM.

  7. #7
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Admin link to preview cart wrong URL

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

  8. #8
    Join Date
    Oct 2010
    Posts
    17
    Plugin Contributions
    0

    Default Re: Admin link to preview cart wrong URL

    Quote Originally Posted by gjh42 View Post
    Have you checked the base /includes/configure.php?
    Yep. Every configure.php file we have appears to have the correct URL.

  9. #9
    Join Date
    Oct 2010
    Posts
    17
    Plugin Contributions
    0

    Default Re: Admin link to preview cart wrong URL

    Quote Originally Posted by SKlos View Post
    Yep. Every configure.php file we have appears to have the correct URL.
    Bumping this up - anyone?

  10. #10
    Join Date
    Nov 2004
    Location
    Norfolk, United Kingdom
    Posts
    3,036
    Plugin Contributions
    2

    Default 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

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. How to fix wrong URL for link to phpBB?
    By TheIllusioner in forum Templates, Stylesheets, Page Layout
    Replies: 8
    Last Post: 10 Dec 2010, 01:50 PM
  2. PHPbb3 link double slash and wrong URL
    By Makoshark in forum General Questions
    Replies: 0
    Last Post: 2 Jun 2010, 04:10 PM
  3. Wrong Admin URL
    By KTNaturals in forum Basic Configuration
    Replies: 3
    Last Post: 11 Nov 2007, 10:44 PM
  4. Checkout link has wrong url
    By aphilips in forum Basic Configuration
    Replies: 4
    Last Post: 17 May 2006, 12:48 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg