Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WooCommerce 3.0.0-RC1 select2 "Loading Failed" wrong message #13628

Closed
leanzafrancesco opened this issue Mar 16, 2017 · 4 comments
Closed

WooCommerce 3.0.0-RC1 select2 "Loading Failed" wrong message #13628

leanzafrancesco opened this issue Mar 16, 2017 · 4 comments
Labels
type: bug The issue is a confirmed bug.
Milestone

Comments

@leanzafrancesco
Copy link
Contributor

EXPLANATION OF THE ISSUE

When I use a select2 field, the first text shown is "Loading Failed" rather than simply "Loading..."; after some seconds the results show!

STEPS TO REPRODUCE THE ISSUE

Example Video

  • go to Product edit page
  • Linked Products tab
  • in Up-sells write something, like "ship"
  • the select2 shows "Loading Failed" at first; after some seconds it shows the results (e.g. "Ship your idea", etc...)

SYSTEM STATUS REPORT

WordPress environment
Home URL:		http://yi-network.dev/woocommerce-update
Site URL:		http://yi-network.dev/woocommerce-update
WC version:		3.0.0
Log directory writable:		 /srv/www/yi-network/htdocs/wp-content/uploads/sites/2/wc-logs/
WP version:		4.7.3
WP multisite:		
WP memory limit:		256 MB
WP debug mode:		
WP cron:		
Language:		en_US
Server environment
Server info:		nginx/1.11.8
PHP version:		7.0.14-2+deb.sury.org~trusty+1
PHP post max size:		1 GB
PHP time limit:		30
PHP max input vars:		1000
cURL version:		7.35.0, OpenSSL/1.0.1f
SUHOSIN installed:		–
Max upload size:		1 MB
Default timezone is UTC:		
fsockopen/cURL:		
SoapClient:		
DOMDocument:		
GZip:		
Multibyte string:		
Remote post:		
Remote get:		
Database
WC database version:		3.0.0
Database prefix	 	wp_2_
woocommerce_sessions	 	
woocommerce_api_keys	 	
woocommerce_attribute_taxonomies	 	
woocommerce_downloadable_product_permissions	 	
woocommerce_order_items	 	
woocommerce_order_itemmeta	 	
woocommerce_tax_rates	 	
woocommerce_tax_rate_locations	 	
woocommerce_shipping_zones	 	
woocommerce_shipping_zone_locations	 	
woocommerce_shipping_zone_methods	 	
woocommerce_payment_tokens	 	
woocommerce_payment_tokenmeta	 	
MaxMind GeoIP database:		 The MaxMind GeoIP Database does not exist - Geolocation will not function. You can download and install it manually from http://dev.maxmind.com/geoip/legacy/geolite/ to the path: /srv/www/yi-network/htdocs/wp-content/uploads/sites/2/GeoIP.dat. Scroll down to "Downloads" and download the "Binary / gzip" file next to "GeoLite Country". Please remember to uncompress GeoIP.dat.gz and upload the GeoIP.dat file only.
Security
Secure connection (HTTPS):		Your store is not using HTTPS. Learn more about HTTPS and SSL Certificates.
Hide errors from visitors		
Active plugins (4)
WooCommerce	 	by Automattic – 3.0.0-rc.1
WordPress Importer	 	by wordpressdotorg – 0.6.3
FL Fast Plugin Search	 	by Leanza Francesco – 1.0.0
TEST	 	by Leanza Francesco – 1.0.0
Settings
API enabled:		
Force SSL:		–
Currency		USD ($)
Currency position		left
Thousand separator		,
Decimal separator		.
Number of decimals		2
Taxonomies: Product types		external (external), grouped (grouped), simple (simple), variable (variable)
WC pages
Shop base:		#4 - /shop/
Cart:		#5 - /cart/
Checkout:		#6 - /checkout/
My account:		#7 - /my-account/
Theme
Name:		Twenty Seventeen
Version:		1.1
Author URL:		https://wordpress.org/
Child theme:		 – If you're modifying WooCommerce on a parent theme you didn't build personally, then we recommend using a child theme. See: How to create a child theme
WooCommerce support:		
Templates
Overrides:	 	–
mikejolley added a commit that referenced this issue Mar 16, 2017
@mikejolley mikejolley added type: bug The issue is a confirmed bug. has-pr labels Mar 16, 2017
@mikejolley mikejolley added this to the 3.0.0 milestone Mar 16, 2017
@manospsyx
Copy link
Member

manospsyx commented Mar 20, 2017

@mikejolley -- the PR doesn't make a difference. Looks like a select2 issue -- see select2/select2#4355

@mikejolley
Copy link
Member

@franticpsyx it did in my testing environment

@manospsyx
Copy link
Member

Prevented getEnhancedSelectFormatString() from being appended to the select2 args and I get the same behavior but with the hardcoded "failure" string. The object returned by that function is all that #13630 changed.

In any case, this doesn't look like a WC problem anyway. Looks like it might affect specific browser / jQuery versions.

@mikejolley
Copy link
Member

Thanks @franticpsyx I'll follow that issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug The issue is a confirmed bug.
Projects
None yet
Development

No branches or pull requests

3 participants