Results 1 to 6 of 6

Thread: Href in Tracker URL / Email malformed

  1. #1
    keithwinn is offline Member
    Join Date
    Jan 2011
    Posts
    13

    Question Href in Tracker URL / Email malformed

    Test emails rcvd after using campaign wizard to setup - have malformed href's.
    The two links in my email - 1) "click here to learn more" and 2) "opt out" both have HREF's that start with
    "sugarcrm/xxx" when they should start with "http://www.mysite.com/sugarcrm/xxx"
    Am I doing something wrong to cause this to occur?
    I am using version Version 5.0.0RC (Build 2855) of SCE
    Thanks for any suggestions!! details below.
    The only "odd thing?" I am doing is that my site is on a cloud server, and my operational /volume domain is www.site1.com and I have sugarcrm installed on the same clourd server under a different domain www.site2.com - just in case that may matter... it doesnt seem to as when i take the "malformed href and simply add www.site1.com to the url created and inserted by sugar it works fine.
    .............................................
    Here is what I do>
    1. Campaign Wizard.
    2. Email campaign type.
    3. Campaign header – I Fill this out.. leave assigned to admin, status planning.
    4. Campaign budget – fill this out..
    5. Campaign Tracker URL’s –
    a. Tracker Name – “Home Page” (opt out link NOT checked)
    b. Tracker URL – http://www.mulabula.com
    c. Tracker created and visible..
    6. Select Target list –
    7. Save and Continue
    8. ? I don’t have contacts – so marketing email isn’t really what I want… should probably have hit finish?...
    9. Marketing email – I fill this out… and “Create email template”…
    10. I create the email template, tracker URL box shows the tracker I made in #5 above.. next to the drop down is {HomePage}.. the inserted URL goes to “undefined” as the href reads:
    a. <a href="%7BHome%20Page%7D">undefined </a>
    11. Send Email – Finish – warning can not send marketing email until subscription list has one enty.. I click finish.
    12. Campaign Summary displays.
    a. All looks good tracker name “home page” shows tracker Url as in 5.b above..
    b. I scroll down and click “Send Test”
    13. Email received with two links – one the tracker and the other the opt out
    a. Tracker link is malformed – does not have the prefix of http://www.mulabula.com/ in front of sugarcrm/campaign_tracker
    b. Tracker URL as seen in rcvd email is:
    <ahref="sugarcrm/campaign_trackerv2.php?track=167051ac-9260-b041-bea8-4d2a6f92f76c&identifier=8701c65a-7431-7bec-e453-4d2a702beeb2">undefined </a>
    c. Opt out link shows this:
    <a href='sugarcrm/removeme.php?identifier=8701c65a-7431-7bec-e453-4d2a702beeb2'>click here<
    14. The above confuses me… obviously the links don’t work.. in some of my testing, I had been successful copying the links above and adding http://www.mulabula.com in front of them so that they would actually work.
    15. Why are these links malformed? ?? am I missing a simple setting or setup item?

  2. #2
    Angel's Avatar
    Angel is offline Sugar Community Member
    Join Date
    Jul 2005
    Location
    Los Angeles
    Posts
    4,813

    Default Re: Href in Tracker URL / Email malformed

    I've seen this happen before, ironically, on OnDemand instances. I am not entirely sure what causes it, as the subscribers in question ultimately had Sugar support correct it, but I would take a look at the site_url and hostname settings in your config.php.

    I suspect it might also have something to do with the approach highlighted in this bug, versus using site_url:

    http://www.sugarcrm.com/forums/showthread.php?t=64551
    Regards,

    Angel Magaña
    Co-Author: Implementing SugarCRM 5.x (Packt Publishing -- Sept. 2010)
    Blog: http://cheleguanaco.blogspot.com.
    Twitter: @cheleguanaco.

    ________
    | Projects: |_____________________________________
    |
    | CandyWrapper (.NET Wrapper for SugarCRM SOAP API). Source now available on GitHub!
    | GoldMine to SugarCRM Express Conversion. Latest: 1.0.1.7 (Nov. 3, 2009)
    | CRM SkyDialer (Skype Integration). Latest: 1.0.2 (Feb. 17, 2010)
    | Round Robin Leads Assignment
    | Phone Number Formatter
    | CaseTwit (Twitter Integration)
    ______________________________________________

  3. #3
    keithwinn is offline Member
    Join Date
    Jan 2011
    Posts
    13

    Default Re: Href in Tracker URL / Email malformed

    Angel - THANKS for the tips - and support... maybe I am not crazy!
    in config.php -
    'host_name' => 'fundhappy.com',
    - I presume this is ok and there isnt supposed to be any http:// or http://www.
    in front of it?

    This is a "testing domain" i have setup on my cloud server at 1and1 - because I didnt want to risk screwing up my live site at "www.livesite.com" on the same server, I created this separate domain and my intention is to run sugarcrm there until i get trained/ramped up and it seems like low risk...

    'site_url' => 'sugarcrm', - this looks ok too? as when i go to site.com/sugarcrm I can log in and it looks happy>

    Odd that I am the only one with this issue..
    I am using version Version 5.0.0RC (Build 2855) of SCE
    my PHP version is 5.1.6

    Do you think it is worth my time to upgrade sugar? - although when in the sugar module and I go to upgrade when i log in as admin - the process just turns a blank screen and doesnt go anywhere... very wierd... I looked around for this on the forum, found a few folks who were helped by changing access rights to a config.php file or the directory it resides in.. both i did with no luck... Sugar is just picking on me!
    So i am now looking through the upgrade pdf and thinking of toughing it out tomorrow ...

    Thanks again for your thoughts! Best, Keith

  4. #4
    Angel's Avatar
    Angel is offline Sugar Community Member
    Join Date
    Jul 2005
    Location
    Los Angeles
    Posts
    4,813

    Default Re: Href in Tracker URL / Email malformed

    Actually, the site_url entry appears to be the source of your problem.

    It should be: http://www.site.com/sugarcrm/

    Note that you do need the http:// in front. Also, an erroneous entry doesn't cause login problems, only secondary issues such as the one you are experiencing.

    As for the upgrade, definitely worthwhile, especially given the fact you are using a very old version. The white screen that you describe is likely a PHP issue. It is not uncommon. Check out this post on my blog for further insight: http://cheleguanaco.blogspot.com/200...lified_19.html

    You should definitely try running a test upgrade on a clone of your instance before doing the production install.
    Regards,

    Angel Magaña
    Co-Author: Implementing SugarCRM 5.x (Packt Publishing -- Sept. 2010)
    Blog: http://cheleguanaco.blogspot.com.
    Twitter: @cheleguanaco.

    ________
    | Projects: |_____________________________________
    |
    | CandyWrapper (.NET Wrapper for SugarCRM SOAP API). Source now available on GitHub!
    | GoldMine to SugarCRM Express Conversion. Latest: 1.0.1.7 (Nov. 3, 2009)
    | CRM SkyDialer (Skype Integration). Latest: 1.0.2 (Feb. 17, 2010)
    | Round Robin Leads Assignment
    | Phone Number Formatter
    | CaseTwit (Twitter Integration)
    ______________________________________________

  5. #5
    keithwinn is offline Member
    Join Date
    Jan 2011
    Posts
    13

    Default Re: Href in Tracker URL / Email malformed

    Somehow I stumbled across the fix
    logging in as Admin - selecting "Campaign Email Settings" -
    then changing "Location of campaign tracking files (like campaign_tracker.php)" Check Box
    FROM default
    TO the path to my sugarcrm directory..
    in my case I typed in www.mysite.com/sugarcrm/
    NOW all outgoing HREF's in tracker URL's of a campaign email msg get prepended with this path.
    Perfect.
    I am not sure why this wouldnt have been the "Default" used by sugar to begin with...

  6. #6
    Angel's Avatar
    Angel is offline Sugar Community Member
    Join Date
    Jul 2005
    Location
    Los Angeles
    Posts
    4,813

    Default Re: Href in Tracker URL / Email malformed

    Excellent. Thanks for the tidbit as well. I wonder if that was the solution for the other instance I had come across before as well.

    I'll have to remember to check this in case it comes up again.
    Regards,

    Angel Magaña
    Co-Author: Implementing SugarCRM 5.x (Packt Publishing -- Sept. 2010)
    Blog: http://cheleguanaco.blogspot.com.
    Twitter: @cheleguanaco.

    ________
    | Projects: |_____________________________________
    |
    | CandyWrapper (.NET Wrapper for SugarCRM SOAP API). Source now available on GitHub!
    | GoldMine to SugarCRM Express Conversion. Latest: 1.0.1.7 (Nov. 3, 2009)
    | CRM SkyDialer (Skype Integration). Latest: 1.0.2 (Feb. 17, 2010)
    | Round Robin Leads Assignment
    | Phone Number Formatter
    | CaseTwit (Twitter Integration)
    ______________________________________________

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 4
    Last Post: 2010-06-22, 12:22 AM
  2. Malformed SQL query in listview.
    By pdh88x in forum Help
    Replies: 0
    Last Post: 2010-05-17, 11:22 AM
  3. how to set <a href>
    By esplgopal in forum Developer Help
    Replies: 3
    Last Post: 2009-02-25, 05:32 PM
  4. Replies: 0
    Last Post: 2007-03-29, 01:44 PM

Tags for this Thread

Bookmarks

Posting Permissions

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