SyntaxError: Unexpected token Y
-
When I submit the form in checkout page, I get the error
SyntaxError: Unexpected token Y
Please helo
-
Try a different payment gateway.
The error comes even if i select ‘Direct Bank Transfer’ or ‘Cash on Delivery’
So I think it does not depend on what payment gateway we selectEverything is working fine when logged in as admin
How to ensure the error doesn’t come when not logged in as admin ?
Follow these instructions to find the conflict + error message https://mikejolley.com/2015/11/12/debugging-unexpected-token-in-woocommerce-2-4/
I followed the steps.
In the response tab i get below message
You do not have sufficient previlliege to edit the post.
any access restriction plugins?
Not given any restriction on any of the plugins
WooCommerce > System Status. post the report.
### WordPress Environment ###
Home URL: https://tricko.byethost17.com
Site URL: https://tricko.byethost17.com
WC Version: 2.4.12
Log Directory Writable: ? /home/vol9_5/byethost17.com/b17_17131848/htdocs/wp-content/uploads/wc-logs/
WP Version: 4.4.1
WP Multisite: –
WP Memory Limit: 40 MB – We recommend setting memory to at least 64MB. See: Increasing memory allocated to PHP
WP Debug Mode: –
Language: en_US### Server Environment ###
Server Info: Apache
PHP Version: 5.4.41
PHP Post Max Size: 20 MB
PHP Time Limit: 20
PHP Max Input Vars: 5000
SUHOSIN Installed: –
MySQL Version: 5.6.27
Max Upload Size: 10 MB
Default Timezone is UTC: ?
fsockopen/cURL: ?
SoapClient: ?
DOMDocument: ?
GZip: ?
Remote Post: ?
Remote Get: ? wp_remote_get() failed. The WooCommerce plugin updater won’t work with your server. Contact your hosting provider. Error: Operation timed out after 5000 milliseconds with 0 bytes received### Database ###
WC Database Version: 2.4.12
:
woocommerce_api_keys: ?
woocommerce_attribute_taxonomies: ?
woocommerce_termmeta: ?
woocommerce_downloadable_product_permissions: ?
woocommerce_order_items: ?
woocommerce_order_itemmeta: ?
woocommerce_tax_rates: ?
woocommerce_tax_rate_locations: ?### Active Plugins (30) ###
Background Slider Master: by iCanWP Team
Sean Roh
Chris Couweleers – 2.0.0Bootstrap 3 Shortcodes: by Filip Stefansson
Simon Yeldon
and Michael W. Delaney – 3.3.6Contact Form 7: by Takayuki Miyoshi – 4.3.1
Creative Image Slider: by Creative Solutions – 1.0.3
Custom Headers and Footers: by Daniel Fru?yński – 1.2
Easy Fullscreen Slider: by Kamil Rucha?a – 2.0.4
Simple Slider: by Perception System – 1.0
Easy Testimonials: by Gold Plugins – 1.33
Full Width Background Slider: by Nishant Jain
rahulbrilliant2004
tikendramaitry – 1.2.3Functionality for Shopera theme: by Cohhe – 1.2
GIGA Slider: by wp-buy – 1.0.0.8
Meteor Slides: by Josh Leuze – 1.5.6
Meta Slider: by Matcha Labs – 3.3.6
Newsletter: by Stefano Lissa
The Newsletter Team – 4.0.8Opencart Product in WP: by Md. Rajib Dewan – 1.0.1
Pirate Forms – Contact form and SMTP Plugin: by Themeisle – 1.0.5
Responsive Full Width Background Slider: by wptreasure – 1.0.6
Shortcodes Ultimate: by Vladimir Anokhin – 4.9.9
Simple Full Screen Background Image: by Pippin Williamson – 1.2
Simple Fullscreen Responsive Slider: by Twirling Umbrellas Ltd. – 1.0.5
Simple Share Buttons Adder: by Simple Share Buttons – 6.1.2
Tawk.to Live Chat: by Tawkto – 0.1.1
Tiled Galleries Carousel Without Jetpack: by Raja CRN – 2.1
T-Shirt Designer: by paratheme – 1.1
WooCommerce – Instamojo: by Instamojo – 0.0.6
Woocommerce Products Designer: by ORION – 2.2
WooCommerce: by WooThemes – 2.4.12
WP Smush: by WPMU DEV – 2.1.3
YITH WooCommerce Wishlist: by Yithemes – 2.0.13
YITH WooCommerce Zoom Magnifier: by Yithemes – 1.2.15### Settings ###
Force SSL: –
Currency: INR (Rs.)
Currency Position: right
Thousand Separator: ,
Decimal Separator: .
Number of Decimals: 2### API ###
API Enabled: ?
API Version: 3.0.0### WC Pages ###
Shop Base: #4 – /shop/
Cart: #5 – /cart/
Checkout: #6 – /checkout/
My Account: #7 – /my-account/### Taxonomies ###
Product Types: external (external)
grouped (grouped)
simple (simple)
variable (variable)### Theme ###
Name: Shopera
Version: 1.3.3 – 1.3.5 is available
Author URL: https://cohhe.com/
Child Theme: ? – If you’re modifying WooCommerce or a parent theme you didn’t build personally we recommend using a child theme. See: How to create a child theme
WooCommerce Support: ?### Templates ###
Overrides: shopera/woocommerce/content-product.php
shopera/woocommerce/content-single-product.php
shopera/woocommerce/product-searchform.phpHow do I get shipping to show?
Do a test with the default WP theme.
Click on shop in menu bar of the website to get the shopping cart page
Yeah I did that but there is no shipping to UK. Did you enable any rates?
Can you check with shipping to India
Right, I saw the issue.
I doubt the error message is coming from WordPress or WooCommerce because I cannot find that text, and previlliege is spelt wrong.
Test with another theme, then if it does the same, start disabling plugins and test again.
Ok,will disable and test,but I think the error message is thrown by default error handlers,hence no text is found
- The topic ‘SyntaxError: Unexpected token Y’ is closed to new replies.