Title: Javascript error when a new user try to register
Last modified: August 30, 2016

---

# Javascript error when a new user try to register

 *  Resolved [Luis Fatorbinario](https://wordpress.org/support/users/fatorbinario/)
 * (@fatorbinario)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/javascript-error-when-a-new-user-try-to-register/)
 * Hi Scott,
 * Usually I don’t use CloudFlare but I’m testing something and need it for the 
   project. The problem is that there is a problem when CloudFLare is activated,
   an error message shows about Javascript and Cookies on user registration form
   using WP-SpamShield.
 * I read on your documentation something about to prevent CDN tools to not serve
   PHP files. How can I do that please?
 * Best regards
    Luis
 * [https://wordpress.org/plugins/wp-spamshield/](https://wordpress.org/plugins/wp-spamshield/)

Viewing 6 replies - 1 through 6 (of 6 total)

 *  Plugin Contributor [redsand](https://wordpress.org/support/users/redsand/)
 * (@redsand)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/javascript-error-when-a-new-user-try-to-register/#post-6325198)
 * Hi Luis,
 * You will need to go into your CloudFlare settings. Usually in CDN settings there
   should be something about including/excluding what kind of files are served from
   the CDN. It should only be static files like JavaScript, CSS, and image files(
   etc) served from the CDN. You’ll need to check your settings to be sure PHP files
   are not being served from it. You may need to check your CloudFlare documentation
   for more info.
 * One thing I’d recommend doing is using WP-SpamShield in _Compatibility Mode_ 
   while you’re using the CDN. [Instructions for using Compatibility Mode.](http://www.redsandmarketing.com/plugins/wp-spamshield/#wpss_advanced_configuration)
   It will hopefully make things a bit easier to get working.
 * If you still can’t get it working with that, then just head over to the [WP-SpamShield Support Form](http://www.redsandmarketing.com/plugins/wp-spamshield/support/),
   and take a moment to fill out a support request. We’ll be happy to help you get
   things working.
 * – Scott
 *  [damoncloudflare](https://wordpress.org/support/users/damoncloudflare/)
 * (@damoncloudflare)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/javascript-error-when-a-new-user-try-to-register/#post-6325492)
 * Hi,
 * “You’ll need to check your settings to be sure PHP files are not being served
   from it”
 * We actually don’t cache dynamic content (PHP, .html, etc.) by default), unless
   the site owner tells us to cache everything with PageRules.
 * A JavaScript error of some sort might be Rocket Loader or Auto Minify, if enabled,
   and a user could try turning that off to see if those optional performance features
   are affecting JavaScript in some way.
 *  Thread Starter [Luis Fatorbinario](https://wordpress.org/support/users/fatorbinario/)
 * (@fatorbinario)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/javascript-error-when-a-new-user-try-to-register/#post-6325493)
 * Thanks for the replies.
 * I had to turn WP-SpamShield off to solve the problem 2 weeks ago and for my surprise
   the registration bots and spammers are not trying my server anymore.
 * CloudFlare has some sort of protection that blocks them.
 * So my conclusion is. If a client demands CloudFlare I turn WP-SpamShield OFF 
   otherwise is ON.
 *  Plugin Contributor [redsand](https://wordpress.org/support/users/redsand/)
 * (@redsand)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/javascript-error-when-a-new-user-try-to-register/#post-6325494)
 * [@damoncloudflare](https://wordpress.org/support/users/damoncloudflare/): Thanks
   for the insight. We will update documentation to reflect that. We initially had
   that info for general CDN’s and we need to differentiate the info in our docs
   because CloudFlare works differently than a regular CDN.
 * [@fatorbinario](https://wordpress.org/support/users/fatorbinario/): You shouldn’t
   have to disable the plugin completely, as we have plenty of users who use WP-
   SpamShield with CloudFlare successfully. If you submit a support request at the
   [WP-SpamShield Support Form](http://www.redsandmarketing.com/plugins/wp-spamshield/support/),
   we can run some tests and help you get things fixed up fairly quickly. Keep in
   mind that WP-SpamShield also helps with human spam as well. Either way, your 
   choice.
 *  Thread Starter [Luis Fatorbinario](https://wordpress.org/support/users/fatorbinario/)
 * (@fatorbinario)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/javascript-error-when-a-new-user-try-to-register/#post-6325495)
 * Hi Scott,
 * As I stated above this is the first project that demands CloudFlare, usually 
   I don’t even use it. WP-SpamShield is the number one tool I install after deploying
   a website, it’s a great product without any doubts even in the free version.
 * Since after I disable it because of the conflict (yes. Rocket Loader and Minify
   were both ON), I didn’t even test it anymore because of the project’s deadline.
   But on my first opportunity I will try it with both again.
 * Thanks for your support and time. You have a great product and I hope to use 
   WP-SpamShield for years yet.
 * Regards
    Luis
 *  Plugin Contributor [redsand](https://wordpress.org/support/users/redsand/)
 * (@redsand)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/javascript-error-when-a-new-user-try-to-register/#post-6325496)
 * Hi Luis,
 * No worries…I completely understand about deadlines.
 * We usually can help solve any issue within 24 hours. Just know that we’re here
   to help when you do want to look into the issue again.
 * You’re very welcome. Thank you for the positive feedback! 🙂
 * – Scott

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Javascript error when a new user try to register’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wp-spamshield_08293a.svg)
 * [WP-SpamShield](https://wordpress.org/plugins/wp-spamshield/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-spamshield/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-spamshield/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-spamshield/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-spamshield/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-spamshield/reviews/)

## Tags

 * [cookies](https://wordpress.org/support/topic-tag/cookies/)
 * [javascript](https://wordpress.org/support/topic-tag/javascript/)

 * 6 replies
 * 3 participants
 * Last reply from: [redsand](https://wordpress.org/support/users/redsand/)
 * Last activity: [10 years, 9 months ago](https://wordpress.org/support/topic/javascript-error-when-a-new-user-try-to-register/#post-6325496)
 * Status: resolved