Title: GREAT PROBLEM SyntaxError: Unexpected token
Last modified: August 31, 2016

---

# GREAT PROBLEM SyntaxError: Unexpected token

 *  Resolved [Alebo](https://wordpress.org/support/users/alebo/)
 * (@alebo)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/great-problem-syntaxerror-unexpected-token/)
 * I have a serious and urgent problem, my clients cannot pay with paypal because
   when you press the button I get this error message
 * SyntaxError: Unexpected token <
 * Obviously I lose customers using this system.
 * What can I do?
 * Fast please
 * [https://wordpress.org/plugins/paypal-for-woocommerce/](https://wordpress.org/plugins/paypal-for-woocommerce/)

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

 *  Plugin Contributor [angelleye](https://wordpress.org/support/users/angelleye/)
 * (@angelleye)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/great-problem-syntaxerror-unexpected-token/#post-7062023)
 * There must be a jQuery error happening. Are you familiar with debugging using
   Firebug? Can you send me a URL to the site so I can check it out?
 *  Thread Starter [Alebo](https://wordpress.org/support/users/alebo/)
 * (@alebo)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/great-problem-syntaxerror-unexpected-token/#post-7062025)
 * Hi, thanks for the fast reply. I greatly appreciate. I don’t have much familiarity
 * the site is [http://www.cosmesibionaturale.it](http://www.cosmesibionaturale.it)
 *  Plugin Contributor [angelleye](https://wordpress.org/support/users/angelleye/)
 * (@angelleye)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/great-problem-syntaxerror-unexpected-token/#post-7062026)
 * When I click the PayPal button from a product page it redirects me to PayPal 
   as expected. Where is it that you are having an issue?
 *  Plugin Contributor [angelleye](https://wordpress.org/support/users/angelleye/)
 * (@angelleye)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/great-problem-syntaxerror-unexpected-token/#post-7062027)
 * Ok, from the checkout page I do see a problem when I try to select the PayPal
   option. Upon reviewing with Firebug I see this…
 * > <b>Notice</b>: Undefined index: swr_use_rewards in <b>/home2/icosmesa/public_html/
   > wp-content/plugins/synmedia-woocommerce-rewards/swr-base.php</b> on line <b
   > >491</b>
 * So that tells me there is a conflict with the rewards plugin you are using. From
   what I can tell they need to clean up their code so this PHP notice doesn’t happen.
 *  Plugin Contributor [angelleye](https://wordpress.org/support/users/angelleye/)
 * (@angelleye)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/great-problem-syntaxerror-unexpected-token/#post-7062028)
 * So in the mean-time you could simply disable that plugin and the problem should
   go away.
 *  Thread Starter [Alebo](https://wordpress.org/support/users/alebo/)
 * (@alebo)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/great-problem-syntaxerror-unexpected-token/#post-7062029)
 * the problem is in the checkout page [http://www.cosmesibionaturale.it/checkout/](http://www.cosmesibionaturale.it/checkout/)
 * When I click proceed to paypal gives me the error
 *  Thread Starter [Alebo](https://wordpress.org/support/users/alebo/)
 * (@alebo)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/great-problem-syntaxerror-unexpected-token/#post-7062030)
 * I have disabled the plugin that was causing the error but nothing changes
 *  Thread Starter [Alebo](https://wordpress.org/support/users/alebo/)
 * (@alebo)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/great-problem-syntaxerror-unexpected-token/#post-7062031)
 * No, sorry, you’re right. Disabling the plugin works. Thank you so much for your
   support.
 *  Plugin Contributor [angelleye](https://wordpress.org/support/users/angelleye/)
 * (@angelleye)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/great-problem-syntaxerror-unexpected-token/#post-7062032)
 * Glad to help!
 *  Thread Starter [Alebo](https://wordpress.org/support/users/alebo/)
 * (@alebo)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/great-problem-syntaxerror-unexpected-token/#post-7062130)
 * Hi, sorry to write here a new question but you’ve been really helpful.
 * How do I translate the button “proceed to paypal” on the checkout page, in theory
   I have translated all the plugins but this text string can not find it.
 *  Plugin Contributor [angelleye](https://wordpress.org/support/users/angelleye/)
 * (@angelleye)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/great-problem-syntaxerror-unexpected-token/#post-7062181)
 * It looks like that string is missing from our default POT file for some reason.
   We’ll have to regenerate that, I guess.
 * You should be able to add it yourself in the meantime. If you add this to the
   POT file:
 *     ```
       msgid "Proceed to PayPal"
       msgstr ""
       ```
   
 * Of course, put your translated text in the msgstr value, and then re-generate
   your MO file. That should do it.

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

The topic ‘GREAT PROBLEM SyntaxError: Unexpected token’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/paypal-for-woocommerce_dce4f5.svg)
 * [PayPal for WooCommerce](https://wordpress.org/plugins/paypal-for-woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/paypal-for-woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/paypal-for-woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/paypal-for-woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/paypal-for-woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/paypal-for-woocommerce/reviews/)

 * 11 replies
 * 2 participants
 * Last reply from: [angelleye](https://wordpress.org/support/users/angelleye/)
 * Last activity: [10 years, 1 month ago](https://wordpress.org/support/topic/great-problem-syntaxerror-unexpected-token/#post-7062181)
 * Status: resolved