Support

Home Forums Event Espresso Premium Registration Form End Date Field Displays Code String

Registration Form End Date Field Displays Code String

Posted: April 5, 2016 at 7:15 pm


Alexander Irving

April 5, 2016 at 7:15 pm

It doesn’t matter what event I create I am always getting the string of code after the end date field in my registration form display. It looks like this:

Price: $90.00

Start Time: 2:30 pm

End Time: 8:00 pm

Date: October 30, 2016anne@beauty-pr.com&start_year=2016&start_month=10&start_day=30&start_time=143000&end_year=2016&end_month=10&end_day=30&end_time=200000&event_summary=Superstyle Photo Competition&ee_reg_url=http://www.supercutsla.com/dev2016/event-registration?ee=1&site_url=http://www.supercutsla.com/dev2016&organization=Esche & Alexander&location” id=”espresso_ical_1″ class=”espresso_ical_link” title=”iCal Import”>

Any clues on why I might be getting this string?

Thanks for any help.


Alexander Irving

April 5, 2016 at 7:26 pm

Oops. Neglected to add this info …

Event Espresso – 3.1.37.7.P | Memory : 29.74 of 256
Can’t download the latest update as I am n a development directory and don’t want to move my license there until I move the site to the active root.
WordPress 4.4.2
No EE3 Add-ons
Hosted by Hostgator
No previous templates. Fresh install


Tony

  • Support Staff

April 6, 2016 at 3:52 am

Hi there,

Can’t download the latest update as I am n a development directory and don’t want to move my license there until I move the site to the active root.

You don’t need to move your license key to the development enviroment (in fact we advise against doing this). You can just update EE3 manually within that site.

https://eventespresso.com/wiki/how-to-upgrade-event-espresso/#update-event-espresso-3

In a nutshell, download the latest version of EE3 from your account page.

De-activate and delete the current version (event data is all stored within the database)

Install the latest version and activate again.

It doesn’t matter what event I create I am always getting the string of code after the end date field in my registration form display.

Usually this is caused by outdated templates within /wp-content/uploads/espresso/templates/

Can you link me to an event so I can view this please?


Alexander Irving

April 7, 2016 at 7:49 am

Hi Tony,

Sorry for the getback delay. Just too much going on at the moment. I greatly appreciate your reply.

I will install the latest version per your instructions on the weekend.

Meanwhile, here is a link to an event registration the site so you can see the messed up “date” field display

http://www.supercutsla.com/dev2016/event-registration?regevent_action=register&event_id=1

Here is the registration page on the website

http://www.supercutsla.com/dev2016/supersunday/supersunday-registration

Thanks for peeking in.


Tony

  • Support Staff

April 7, 2016 at 8:14 am

No problem 🙂

Can you go to Event Espresso -> General Settings -> Primary Contact Email.

What is within that field? (You can mask the email if you prefer xxx@xxx.com but is there any HTML added within that field?)


Tony

  • Support Staff

April 7, 2016 at 9:06 am

To add some further details, the problem is there is something adding additional code to the email address within the iCal link – http://take.ms/ZBykn

That’s breaking the link because it’s a link within a link.

Are you running some script to try and hide email addresses?

If so you can either disable the script or disable the iCal link within the registration form (Event Espresso -> Template Settings -> Display an “Add to my Calendar” icon/link in the event templates?)

That should remove the code from the registration page.

Its also possible to modify the function used to generate the iCal to try and remove and additional code being added to the email address. The espresso_ical_prepare_by_meta() function is pluggable so its possible to override the default function with one of your own, removing any addition formatting on the email address by changing:

'contact_email' => $meta['contact_email'],

to

'contact_email' => wp_kses($meta['contact_email']),

We can provide further details on this if needed but it depends how/when the additional code is being added if this will work.


Alexander Irving

April 7, 2016 at 10:35 am

Tony, thank you, thank you. You nailed it. I have the “WP-Mail To Links” activated and it masks email addresses with that piece of code. I disabled the ical setting in the General menu and it works just as it should.

Thanks again for the great help. This forum is a wonderful place. Even though I didn’t find a relevant entry in my various searches before posting, I learned a lot just reading issues others have. Happy Camper here. Again, many thanks 🙂


Tony

  • Support Staff

April 7, 2016 at 12:06 pm

You’re most welcome, Alexander 🙂

I’m glad your up and running again, please do let us know if you have any further problems.

The support post ‘Registration Form End Date Field Displays Code String’ 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.

Event Espresso