Conversation
supportI had to change wp_enqueue_script(‘cshlg_jquery_validate’, ‘ http://ajax.aspnetcdn.com/ajax/jquery.validate/1.14.0/jquery.validate.js’ ;); to wp_enqueue_script(‘cshlg_jquery_validate’, ‘//ajax.aspnetcdn.com/ajax/jquery.validate/1.14.0/jquery.validate.js’); array(), false, false); To allow this plugin to work on SSL site without errors
Hi Jamescorkhillwebcop, can you please let me know if the above is what caused the “unsafe script” error? When I allowed the unsafe script to run, the login worked but it took off the https. If your code change fixes that, can you please let me know where I make that change? THanks!!
I found the line in register-scripts.php but when I make the change as shown, I get the following: Your PHP code changes were rolled back due to an error on line 72 of file wp-content/plugins/csh-login/inc/register-scripts.php. Please fix and try saving again. syntax error, unexpected ‘,’ Any assistance would be greatly helpfulQ
Sorry to bother, but the code that worked for me was: wp_enqueue_script(‘cshlg_jquery_validate’, ‘//ajax.aspnetcdn.com/ajax/jquery.validate/1.14.0/jquery.validate.js’, array(), false, false); thank you for your help in pointing me in the right direction!
@pjurado Glad you got it sorted. Happy to help
Hi Jamescorkhillwebcop, can you please let me know if the above is what caused the “unsafe script” error? When I allowed the unsafe script to run, the login worked but it took off the https. If your code change fixes that, can you please let me know where I make that change? THanks!!
I found the line in register-scripts.php but when I make the change as shown, I get the following: Your PHP code changes were rolled back due to an error on line 72 of file wp-content/plugins/csh-login/inc/register-scripts.php. Please fix and try saving again. syntax error, unexpected ‘,’ Any assistance would be greatly helpfulQ
Sorry to bother, but the code that worked for me was: wp_enqueue_script(‘cshlg_jquery_validate’, ‘//ajax.aspnetcdn.com/ajax/jquery.validate/1.14.0/jquery.validate.js’, array(), false, false); thank you for your help in pointing me in the right direction!
@pjurado Glad you got it sorted. Happy to help