Results 1 to 9 of 9

Thread: Tell a Friend error

  1. #1
    Join Date
    Mar 2008
    Posts
    127

    Default Tell a Friend error

    I think I have found an error.

    Tell a Friend works ok from index, but from anywhere else result is a 404 error when the verify page should be displayed. As in:

    The verify link is of the form Natural Hair Care Blog (from details page), http://www.qualityblogs.com/beauty/tell_friend.php (from category page) etc. I observed similar results on the Indexu Templates demo for Facing.

    Could it be an htaccess issue?

    Hate being such a pest but...

  2. #2
    Join Date
    May 2007
    Location
    NJ, United States
    Posts
    1,651

    Default

    Does tell_friend.html exist in the template?
    FSGDAG | IndexU Hosting | Owner
    Website | NiceCoder Script Hosting and More! | Web4URL is For Sale!
    Follow Us On Twitter | FaceBook Profile | YouTube Videos

  3. #3
    Join Date
    Jun 2002
    Location
    Winnipeg Canada
    Posts
    4,913

    Default

    Add base href to your header and it will solve the issue

    <base target="yoururl.ext" />

  4. #4
    Join Date
    Mar 2008
    Posts
    127

    Default

    Quote Originally Posted by FSGDAG View Post
    Does tell_friend.html exist in the template?
    Actually tell_friend_form.html, tell_friend_fav_form.html and tell_friend_site_form.html exist. All of them are referenced in tell_friend.php
    Add base href to your header and it will solve the issue

    <base target="yoururl.ext" />
    I added <base target="qualityblogs.com" /> in the heat part of header.html. If that is right it didn't work. Does it go somewhere else?

  5. #5
    Join Date
    May 2007
    Location
    NJ, United States
    Posts
    1,651

    Default

    After making the change, did you clear all the files in /template_c?? You could be caching the header.
    FSGDAG | IndexU Hosting | Owner
    Website | NiceCoder Script Hosting and More! | Web4URL is For Sale!
    Follow Us On Twitter | FaceBook Profile | YouTube Videos

  6. #6
    Join Date
    Mar 2008
    Posts
    127

    Default

    No but the view source shows the change.

    While things don't seem quite right I kludged a way to get rid of the 404. In block.tell_friend.html I changed <form action="tell_friend.php" method="post"> to be <form action="http://qualityblogs.com/tell_friend.php" method="post">

    The $_POST array info seems to get lost along the way but the 404 issue is gone.

    Ok, this seems to work. I changed the base target to <base href="http://www.domain.ext/" />. Goes directly to the Tell a Friend

    Thank you. Your email has been sent message. Things seem to work as I would expect but...

    IMHO that shouldn't be necessary.
    Last edited by Harkster; 04-26-2009 at 02:32 AM. Reason: New result info

  7. #7
    Join Date
    Jun 2002
    Location
    Winnipeg Canada
    Posts
    4,913

    Default

    DOH I typed the wrong text

    <base href="http://qualityblogs.com" />

    is correct. Sorry about that.

    It isn't necessary on most servers. But some servers have difficulty picking up the base on it's own so they need a little help. It's a server issue, not an IndexU issue.

  8. #8
    Join Date
    Mar 2008
    Posts
    127

    Default

    Quote Originally Posted by Bruceper View Post
    DOH I typed the wrong text

    <base href="http://qualityblogs.com" />

    is correct. Sorry about that.

    It isn't necessary on most servers. But some servers have difficulty picking up the base on it's own so they need a little help. It's a server issue, not an IndexU issue.
    I can accept that. Last note - is <base href="<%$site_url%>" /> an acceptable and more generalized way to do it?

  9. #9
    Join Date
    Jun 2002
    Location
    Winnipeg Canada
    Posts
    4,913

    Default

    Not in your case, because your server is having issues giving the script the $site_url. You should use the full URL.

Similar Threads

  1. Removing 'Tell a Friend'
    By jg123 in forum Tutorials, Hints & Tips
    Replies: 2
    Last Post: 04-22-2007, 10:39 PM
  2. Tell a Friend is not working in V5.0,1
    By rwabet in forum Pre-Sales Questions
    Replies: 5
    Last Post: 02-22-2006, 01:46 PM
  3. Tell a Friend
    By amusementlinks in forum v5.x
    Replies: 0
    Last Post: 08-14-2005, 07:38 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
  •