WordPress Uncaught Error Syntax Error Unrecognized Expression Href=#

Posted: May 8, 2016 at 4:43 am

Hi I have no idea why this isn’t working. I had no issues with the registration form when I used it on my other site. Something must be different.

When I complete the registration form

An error has occurred:
First Name is a required field.

I HAVE been completing the First name field (which I renamed Attendee First Name). I’m not sure why it’s not accepting it.

Any ideas? Thanks.

Your site is throwing this error:

Uncaught Error: Syntax error, unrecognized expression: a[href^=#]

which is causing the problem with the EE validation script and throwing the first name error.

Its being thrown fro within your themes custom.js file – http://take.ms/0V9ry

However there may be more than that when you fix the above, take a look here for additional information:

Ok, thanks. I don’t really understand your response but I kind of understand the post you’ve linked to. I’ve never updated my theme so I guess it might have the old code. I’ll see what I can do to get it updated.

I thought I got rid of those automatic WordPress updates. Must do that.

I would advise against disabling updates, be that on WordPress or plugins/themes.

The updates are released as new bugs/issues are released, if you don’t update and a security issue is found within WP or a plugin you leave your site wide open.

Ok, for the record, updating to the latest version of my theme has helped fixed this problem.

(Took me a while to remember where I got the theme originally, get my login back, get a new version download…lol).

The theme author likely released an updated version that is compatible with the current version of WordPress.

Were there any other questions that we could help you with?

The support post ‘Registration form – submit error’ 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.

Home › Forums › Event Espresso Premium › drop down question- nothing happens when click on "add another answer option"

drop down question- nothing happens when click on "add another answer option"

Posted: April 23, 2016 at 8:14 pm

attempting to add a Question “drop down” type, when click on “add another answer option” to add value…nothing happens.

Are you experiencing this on the latest version of Event Espresso 4?

I’ve just tested this option and it is working:

Does this happen in a specific web browser?

it happens with Microsoft Edge and Chrome. It has worked when I initially set up my very first event. Now that I wanted to add a question – suddenly it does not work. Any suggestion that maybe coding has been changed? I remember that you had to create a different folder for this plug in.

I’m on a Mac so I have Google Chrome but not Microsoft Edge. Is Chrome up to date (Chrome –> About Chrome)?

I was able able to add extra question options in Google Chrome and the previous screencast was through Safari.

my Chrome and Edge are both up to date. I’m using Windows 10. This is very odd as I have tried it on 3 different PC/laptops and same situation on all. Which area should I check? It works on my first 2-3 events but suddenly it just start giving me this problem. Any suggestions? can I uninstall and re-install? if I do this do I lose all the existing events/registrants etc.? please help.

I have tried almost everything. I tried Moilla and Safari – still nothing happens. We go “live” tomorrow with our registrations. We have nearly 2000 members. This is a disaster. Perhaps we should have not considered this plug-in. Any comment?

[Resolved] Calendar issues on Divi theme

Support › WooCommerce Easy Booking › [Resolved] Calendar issues on Divi theme

This topic contains 2 replies, has 2 voices, and was last updated by PostFactory 2 years, 8 months ago.

I’m having some issues getting the picker calendar to show up.

Following the instructions on similar threads in the forum I have removed ‘overflow:hidden’ from the theme CSS style sheet where the ‘form.cart’ code was. There are a lot of ‘overflow:hidden’ written into the CSS code unfortunately. The calendar is still not appearing.

What’s confusing is that it was working previously. I had some sample bookings which made a whule ago, so it must have been working then.

Since that time, I’ve updated Woocommerce and WordPress and the plugin itself.

Anything you can suggest?

It’s actually another issue, you have a javascript error in your console, preventing Easy Booking from working (I think).

jquery.js?ver=1.12.3:2 Uncaught Error: Syntax error, unrecognized expression: a[href*=#]:not([href=#])

It’s from your theme, and is located in the file Divi/js/custom.js at line 3263.

You need to change it to a[href*="#"]:not([href="#"]) .

Once you fix this, it should work again. If it doesn’t, tell me 🙂

  • This reply was modified 2 years, 8 months ago by Ashanna.

WordPress uncaught error syntax error unrecognized expression href=#

Met de update naar WordPress 4.5 (en de daarop volgende security updates) is er een nieuwere versie van jQuery geïnstalleerd. De oude versie 1.11.3 is nu geüpgraded naar 1.12.2. Deze vind echter de volgende query niet correct waardoor alle javascript vanaf het punt van de foutmelding niet meer wordt uitgevoerd:

$( ‘a[href*=#]:not([href=#])’ ).click( function() <

Verander dit naar:

$( ‘a[href*= # ]:not([href= # ])’ ).click( function() <

Zoek nu niet naar letterlijk bovenstaande tekst, waar het om gaat is dat jQuery vereist dat er quotes om het anchor teken moeten staan. In veel thema’s wordt dit gebruikt en gaat het dus nu mis click resources. Vraag de themabouwer om het op te lossen, het is maar een kleine aanpassing, letterlijk het toevoegen van de quotes (“”) om het anchor teken (#).

Dus is je site net bijgewerkt naar een versie 4.5 of hoger en onderdelen functioneren niet meer, kijk dan met Inspecteren (rechtermuisknop en dan Inspecteren) in de Console. Als daar een foutmelding die lijkt als volgt wordt getoond: Uncaught Error: Syntax error, unrecognized expression: a[href*=#]:not([href=#]) dan kan je bovenstaande oplossing toepassen.

Komt u er zelf niet uit en uw webbouwer ook niet? Wij kunnen het vrijwel zeker voor u oplossen. Vraagt u ons dan zeker om raad!

Forzare la versione di jQuery in WordPress

Oggi ci siamo imbattuti in un problema che ultimamente è diventato sempre più frequente: da un nuovo cliente abbiamo acquisito un vecchio sito web realizzato con WordPress, lo abbiamo messo in piena sicurezza ripulendolo dalle tonnellate di malware che conteneva e ne abbiamo aggiornato tutti i componenti fondamentali ad eccezione del tema e di un paio di plugin che non vengono più sviluppati da anni.

Tutto funziona splendidamente, soprattutto grazie alle prestazioni fantasmagoriche dei nostri server, ad eccezione di una videogallery che, ahimè, non fa più quel poco che dovrebbe fare, ovvero caricare una sequenza di video in un semplice slider.

L’errore che leggiamo in console è quanto di più criptico possa irrompere nelle vite di un dev alle prime armi, ma per noi decadenti veterani di questo tipo di lavoro si tratta di una vecchia conoscenza:

Si tratta di una incompatibilità da parte di uno dei vecchi componenti che abbiamo dovuto per forza lasciare inalterati su questo vecchio sito web con le ultime versioni di jQuery messe a disposizione dal core di WordPress.

Leave a Reply

Your email address will not be published. Required fields are marked *