Posted: July 10, 2015 at 12:03 am
|
Hi, Ok by now I am sure you guys might think I have become a nuisance but I keep finding these weird problems which I hope you could help me with. So we have the ticket notice email that goes out with the URL to the ticket right.The email has the following syntax But when the url is received, it actually adds a space (” “) after https:…. e.g. the URL will look like this https: //members.rea……./?ee=ee-txn… NOTICE THE SPACE AFTER https: Can somebody please help me with this. |
Hi, The [TXN_TICKETS_URL] uses a core WP function (get_site_url()) to build the URL and returns it after adding values to the string. I tested that shortcode on a secured tested site and didn’t have any problems, so I suspect this is a config issue. How are you securing the site currently? For example are you using the WP HTTPS plugin? Are you using the latest version of WordPress, Event Espresso and the EE4 Ticketing Add-on? |
|
|
Hi Tony, Thank you for getting back to me. I am using the latest versions of wordpress, Event Espresso and Ticketing add-on. I am using the WordPress Force Https plugin. It was all working absolutely fine until a couple of days ago when I did my last update of event espresso. |
|
Hey Tony, I just did a test by deactivating all https plugins. And even in normal mode it sends a ticket URL that looks like this |
Can you de-activate all non-EE plugins and retest this please? I would also recommend switching to one of the default themes such as twentyfourteen (you can use a plugin such as Theme Test Drive to do this without effecting your visitors)
When you updated Event Espresso, did you update any other plugins or the theme around the same time? The code that builds those link hasn’t changed recently and uses a code WordPress function to pull in the base url. (which in your example would be “https: //members.rea……./”) Event Espresso doesn’t change the base URL when creating the links (or at all) but the WP Core function that its using is filterable and therefore any other plugins (or even the theme) can hook in and change this. HTTPS plugins sometimes do this which I why I asked the above, although WordPress Force Https plugin redirects all links from HTTP to HTTPS rather than changing the URL scheme used before output. The fact that the space is added after the 6th character regardless of http or https leads me to believe that ‘something’ is filtering the URL before Event Espresso uses it. |
|
|
Hi Tony, Nope same thing. I have done everything you asked. I disabled all plugins and sent my self a ticket notice email and the same thing. I then disabled my optimize press theme with the plugins disabled and sent my self a ticket notice again and same thing. You have to understand that it only happens with the ticket notice email. Other than that when you try opening the ticket from registrations, it opens fine. It is just the ticket notice email where the txn url shortcode is applied as a hyperlink is the one creating problems. |
Hmm, that’s odd. Both those sections use the same function (although slightly differently) Could I take a look at this? If so can you send temporary login details using this form: |
|
|
Hey Tony, I have sent you the credentials. |
Very strange. This is not something I’ve seen previously and I’m not sure what is causing it. Within your custom message template if you click the ‘Preview’ button, the message system will build an email using dummy data (so the links won’t actually take you to a working ticket) but it does so in the same way it would for a genuine email message (it just doesn’t push the message to the ‘messenger’ to send the message). The links work fine there. I resent the ticket message to a registration I created and did see the space within the link. What I would try next is manually including the link within the notice email and see if that also has a space added when resent. So instead of using the [TXN_TICKETS_URL] to generate the URL, you add the URL and resent the ticket notice email. You may want to create a test event and a copy of your custom template within that event to test this (otherwise any registrations may whilst testing this will receive your ticket email link) Another option is to setup a transactional email service such as Mandill (free for up to 12k emails per month) and test sending your emails through that. That will show if this is some kind of filtering set up on the mail server (as you’ll then be using Mandrill mail servers) |
|
I realised I didn’t add further details on using Mandill if you’d like to try that. More info (with a step by step guide to setting up Mandrill and the wpMandril plugin) can be found here: https://eventespresso.com/wiki/postmark-app-mandrill-transactional-email-handling-services/ |
|
|
Hey Tony, So I setup Mandrill and tried to send a ticket notice to myself and it came through fine. I did not try putting in a URL instead of the shortcode as I just went with Mandrill first. Its working fine. So thanks alot for your help. |
I’m glad its now working for you. It sounds like the ticket notice is triggering some kind of filtering on your hosts mail server that is adding a space to the link to ‘break’ it. Mandrill don’t have the same rules and so now your using Mandrill’s mail servers its no longer an issue. If you have any further problems just let us know. |
|
The support post ‘Incorrect ticket URL being sent’ is closed to new replies.
Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.