Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the pue-sales domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the better-click-to-tweet domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the pue-amazon domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the pue-stats domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the wordpress-seo domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114
Registration Form Not Working / Validation being ignore | Event Espresso - Staging Server

Support

Home Forums Event Espresso Premium Registration Form Not Working / Validation being ignore

Registration Form Not Working / Validation being ignore

Posted: January 29, 2014 at 11:12 am

Viewing 8 reply threads


David Waterman

January 29, 2014 at 11:12 am

Hi,

I am having an issue with event espresso in my site.

http://events.ktbenefits.info/event-registration/?ee=25

If you click on RSVP Yes (submit) it takes you to the thank you page right away without validating all the fields that are required.

Any ideas on how I can solve this issue?

Any help will be appreciated.

Thanks.


Josh

January 29, 2014 at 11:56 am

Hi David,

I checked and there is some JavaScript that’s being injected to the very top of the webpage. It looks like this:

<!-- Add jQuery library -->
    <script type="text/javascript" src="/IFRAME/lib/jquery-1.10.1.min.js"></script>

    <!-- Add mousewheel plugin (this is optional) 
    <script type="text/javascript" src="/IFRAME/lib/jquery.mousewheel-3.0.6.pack.js"></script>-->

    <!-- Add fancyBox main JS and CSS files -->
    <script type="text/javascript" src="/IFRAME/source/jquery.fancybox.js?v=2.1.5"></script>
    <link rel="stylesheet" type="text/css" href="/IFRAME/source/jquery.fancybox.css?v=2.1.5" media="screen" />

    <!-- Add Button helper (this is optional) 
    <link rel="stylesheet" type="text/css" href="/IFRAME//source/helpers/jquery.fancybox-buttons.css?v=1.0.5" />
    <script type="text/javascript" src="/IFRAME/source/helpers/jquery.fancybox-buttons.js?v=1.0.5"></script>-->

    <!-- Add Thumbnail helper (this is optional) 
    <link rel="stylesheet" type="text/css" href="/IFRAME/source/helpers/jquery.fancybox-thumbs.css?v=1.0.7" />
    <script type="text/javascript" src="/IFRAME/source/helpers/jquery.fancybox-thumbs.js?v=1.0.7"></script>-->

    <!-- Add Media helper (this is optional) 
    <script type="text/javascript" src="/IFRAME/source/helpers/jquery.fancybox-media.js?v=1.0.6"></script>-->
    
    
    <script type="text/javascript">
		$(document).ready(function() {
			/*
			 *  Simple image gallery. Uses default settings
			 */

			$('.fancybox').fancybox();

			/*
			 *  Different effects
			 */

			// Change title type, overlay closing speed
			$(".fancybox-effects-a").fancybox({
				helpers: {
					title : {
						type : 'outside'
					},
					overlay : {
						speedOut : 0
					}
				}
			});
			
			  $(".fancybox").fancybox({
    afterClose : function() {
        location.reload();
        return;
    }
});

			// Disable opening and closing animations, change title type
			$(".fancybox-effects-b").fancybox({
				openEffect  : 'none',
				closeEffect	: 'none',

				helpers : {
					title : {
						type : 'over'
					}
				}
			});

			// Set custom style, close if clicked, change title type and overlay color
			$(".fancybox-effects-c").fancybox({
				wrapCSS    : 'fancybox-custom',
				closeClick : true,

				openEffect : 'none',

				helpers : {
					title : {
						type : 'inside'
					},
					overlay : {
						css : {
							'background' : 'rgba(238,238,238,0.85)'
						}
					}
				}
				
				
		 
			});

			// Remove padding, set opening and closing animations, close if clicked and disable overlay
			$(".fancybox-effects-d").fancybox({
				padding: 0,

				openEffect : 'elastic',
				openSpeed  : 150,

				closeEffect : 'elastic',
				closeSpeed  : 150,

				closeClick : true,

				helpers : {
					overlay : null
				}
			});

			/*
			 *  Button helper. Disable animations, hide close button, change title type and content
			 */

			$('.fancybox-buttons').fancybox({
				openEffect  : 'none',
				closeEffect : 'none',

				prevEffect : 'none',
				nextEffect : 'none',

				closeBtn  : false,

				helpers : {
					title : {
						type : 'inside'
					},
					buttons	: {}
				},

				afterLoad : function() {
					this.title = 'Image ' + (this.index + 1) + ' of ' + this.group.length + (this.title ? ' - ' + this.title : '');
				}
			});


			/*
			 *  Thumbnail helper. Disable animations, hide close button, arrows and slide to next gallery item if clicked
			 */

			$('.fancybox-thumbs').fancybox({
				prevEffect : 'none',
				nextEffect : 'none',

				closeBtn  : false,
				arrows    : false,
				nextClick : true,

				helpers : {
					thumbs : {
						width  : 50,
						height : 50
					}
				}
			});

			/*
			 *  Media helper. Group items, disable animations, hide arrows, enable media and button helpers.
			*/
			$('.fancybox-media')
				.attr('rel', 'media-gallery')
				.fancybox({
					openEffect : 'none',
					closeEffect : 'none',
					prevEffect : 'none',
					nextEffect : 'none',

					arrows : false,
					helpers : {
						media : {},
						buttons : {}
					}
				});

			/*
			 *  Open manually
			 */

			$("#fancybox-manual-a").click(function() {
				$.fancybox.open('1_b.jpg');
			});

			$("#fancybox-manual-b").click(function() {
				$.fancybox.open({
					href : 'iframe.html',
					type : 'iframe',
					padding : 5
				});
			});

			$("#fancybox-manual-c").click(function() {
				$.fancybox.open([
					{
						href : '1_b.jpg',
						title : 'My title'
					}, {
						href : '2_b.jpg',
						title : '2nd title'
					}, {
						href : '3_b.jpg'
					}
				], {
					helpers : {
						thumbs : {
							width: 75,
							height: 50
						}
					}
				});
			});


		});
		
		

	</script>

Basically, it’s adding a 2nd copy of the jQuery library to the page, and its inline scripts aren’t written to be compatible with the way WordPress loads jQuery into no-conflict mode. Can you contact the developer that added this and ask them to remove or fix this?


David Waterman

January 29, 2014 at 12:55 pm

Hi,

The code was removed and it does not seem to work, I can still register without any data in the required field.

Any other ideas?


Josh

January 29, 2014 at 1:31 pm

Hi there,

The code is still there that’s adding the second jQuery library. Here is a screenshot.


David Waterman

January 29, 2014 at 2:44 pm

Hi,

This did not work – I tried that earlier.

Any other ideas?


Josh

January 29, 2014 at 3:34 pm

Did someone modify the contents of the built in jQuery library JS in wp-includes/js/jquery.js?

If you view source, you’ll see these two lines were added at the end of the file:

link here:

http://events.ktbenefits.info/wp-includes/js/jquery/jquery.js?ver=1.8.3

added code:

/*jQuery.noConflict();*/
$ = jQuery.noConflict(true);

I think this may be causing the errors I’m seeing in the console:

https://www.evernote.com/shard/s4/sh/869b3c1a-46ee-4d71-8d09-1661462a238a/8f56cc7eea4238453287ec5fe96f5a60


David Waterman

January 30, 2014 at 8:23 am

Hi Josh,

The wp-includes/js/jquery.js file is now back to how it was – we are still having the same issue here.

Try it again and give me your thoughts on this.

Thanks.


Josh

January 30, 2014 at 9:00 am

Hi David,

I ran you page through an html validator and it reports there is a html table markup that’s breaking the HTML on the page.

Please see the last two errors in the validator:

http://is.gd/WBqGGt

Error Line 414, Column 43: Start tag div seen in table.

I removed the html table in this fiddle markup and the validation now works:

http://jsfiddle.net/joshfeck/4jE8P/

You can test it without submitting a registration by typing a few characters into the email field then click outside the email field input.

If you remove the invalid HTML table markup that was added to Event Espresso’s registration_page_display.php template that will fix your issue. You might consider using CSS to style the event information to look like a table.


David Waterman

January 30, 2014 at 10:41 am

Hi Josh,

I fixed the issue.

My problem was that the div and the form were starting inside the table and it was ending after the table, so I took the div and the form tags and put it before my table and it works perfectly. Basically I now have the table inside of the form instead of the form inside of the table.

Thanks for the help.

Viewing 8 reply threads

The support post ‘Registration Form Not Working / Validation being ignore’ 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 - Staging Server