Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › Plugin stay on "Loading"
This topic contains 3 replies, has 2 voices, and was last updated by Ernest Marcinko 7 years, 2 months ago.
- AuthorPosts
- September 20, 2016 at 9:02 am #10190
Hello !
I send you this message because I have just install Ajax Search Pro but I have a problem with this…
I create search form but I cannot change General Options, etc. Nothing happened…
I don’t understand because Ajax Search Lite is ok..
Please find enclosed a screenshot, the plugin stay on “Loading …”
Regards,
Joachim – NosPromosSeptember 20, 2016 at 9:52 am #10192Hi,
The problem was caused by a custom script placed in the functions.php file in the theme folder:
add_filter( 'script_loader_tag', 'add_async', 10, 2 ); function add_async( $tag, $handle ) { return str_replace( ' src', ' async src', $tag ); }
I have de-activated the add_filter.. part, now it’s working again.
The datepicker core script was raising a fatal error because of the async script loading. Many scripts in wordpress are dependent on each other, and adding the “async” tag to the back-end scripts breaks this dependency, causing fatal errors in the javascript console. I’ve also noticed errors around the console on other back-end pages when the “async” tag was active. Now they are all gone.
I only advise using that code for the front-end scripts, but it may also cause dependency issues, be careful with it.
Best,
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
September 20, 2016 at 10:22 am #10195Hey thank you ! 🙂
I’m bitching about my old IT provider immediately 🙂
September 21, 2016 at 9:04 pm #10210You cannot access this content. Best,
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
- AuthorPosts
The topic ‘Plugin stay on "Loading"’ is closed to new replies.