warning switch is equivalent to "break". Did you mean to use "continue 2"?

Closed
ImportWP Pro - WordPress XML & CSV Importer ImportWP Pro - WordPress XML & CSV Importer June 02, 2019
Login to reply
GAlex Stefani
4 years ago

I switch from  testing localhost to online. The erros dont show.

I dont know it matters but I had to let you know.

GAlex Stefani
4 years ago

in my test site i changed those lines with continue 2 it looks like running ok.

hope to see new version soon

thanks,

Alex

James Collings Support Agent
4 years ago

Hi,

Thank you for pointing this out, the importer has been tested with 7.2, i will look into 7.3 and have an update fixing any issues in the next release.

James

GAlex Stefani
4 years ago

Hello i have those errors. 

Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in C:\xampp\htdocs\wordpress\wp-content\plugins\importwp-pro\importwp\libs\class-iwp-form-builder.php on line 122

Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in C:\xampp\htdocs\wordpress\wp-content\plugins\importwp-pro\importwp\libs\class-iwp-form-builder.php on line 128

Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in C:\xampp\htdocs\wordpress\wp-content\plugins\importwp-pro\addons\importwp-custom-fields\jci-custom-fields.php on line 284

---------------------------------------------------------------

i use xamp with php 7.3 since this is my production site php version also

this is system status from my test woocommerce site

### WordPress Environment ###

WordPress address (URL): http://127.0.0.1/wordpress 

Site address (URL): http://127.0.0.1/wordpress

WC Version: 3.6.4

Log Directory Writable: ✔

WP Version: 5.2.1

WP Multisite: –

WP Memory Limit: 256 MB

WP Debug Mode: –

WP Cron: ✔

Language: en_US

External object cache: –

### Server Environment ###

Server Info: Apache/2.4.39 (Win64) OpenSSL/1.1.1b PHP/7.3.5

PHP Version: 7.3.5

PHP Post Max Size: 8 MB

PHP Time Limit: 30

PHP Max Input Vars: 1000

cURL Version: 7.64.0

OpenSSL/1.1.1b

SUHOSIN Installed: –

MySQL Version: 5.5.5-10.1.40-MariaDB

Max Upload Size: 2 MB

Default Timezone is UTC: ✔

fsockopen/cURL: ✔

SoapClient: ❌ Your server does not have the SoapClient class enabled - some gateway plugins which use SOAP may not work as expected.

DOMDocument: ✔

GZip: ✔

Multibyte String: ✔

Remote Post: ✔

Remote Get: ✔

### Database ###

WC Database Version: 3.6.4

WC Database Prefix: wp1_

MaxMind GeoIP Database: ✔

Total Database Size: 3.43MB

Database Data Size: 2.26MB

Database Index Size: 1.17MB

wp1_woocommerce_sessions: Data: 0.02MB + Index: 0.02MB

wp1_woocommerce_api_keys: Data: 0.02MB + Index: 0.03MB

wp1_woocommerce_attribute_taxonomies: Data: 0.02MB + Index: 0.02MB

wp1_woocommerce_downloadable_product_permissions: Data: 0.02MB + Index: 0.06MB

wp1_woocommerce_order_items: Data: 0.02MB + Index: 0.02MB

wp1_woocommerce_order_itemmeta: Data: 0.02MB + Index: 0.03MB

wp1_woocommerce_tax_rates: Data: 0.02MB + Index: 0.06MB

wp1_woocommerce_tax_rate_locations: Data: 0.02MB + Index: 0.03MB

wp1_woocommerce_shipping_zones: Data: 0.02MB + Index: 0.00MB

wp1_woocommerce_shipping_zone_locations: Data: 0.02MB + Index: 0.03MB

wp1_woocommerce_shipping_zone_methods: Data: 0.02MB + Index: 0.00MB

wp1_woocommerce_payment_tokens: Data: 0.02MB + Index: 0.02MB

wp1_woocommerce_payment_tokenmeta: Data: 0.02MB + Index: 0.03MB

wp1_woocommerce_log: Data: 0.02MB + Index: 0.02MB

wp1_commentmeta: Data: 0.02MB + Index: 0.03MB

wp1_comments: Data: 0.02MB + Index: 0.09MB

wp1_failed_jobs: Data: 0.02MB + Index: 0.00MB

wp1_importer_files: Data: 0.02MB + Index: 0.00MB

wp1_importer_log: Data: 0.02MB + Index: 0.00MB

wp1_links: Data: 0.02MB + Index: 0.02MB

wp1_mailchimp_carts: Data: 0.02MB + Index: 0.00MB

wp1_options: Data: 1.45MB + Index: 0.02MB

wp1_postmeta: Data: 0.02MB + Index: 0.03MB

wp1_posts: Data: 0.03MB + Index: 0.06MB

wp1_queue: Data: 0.02MB + Index: 0.00MB

wp1_termmeta: Data: 0.02MB + Index: 0.03MB

wp1_terms: Data: 0.02MB + Index: 0.03MB

wp1_term_relationships: Data: 0.02MB + Index: 0.02MB

wp1_term_taxonomy: Data: 0.02MB + Index: 0.03MB

wp1_usermeta: Data: 0.02MB + Index: 0.03MB

wp1_users: Data: 0.02MB + Index: 0.05MB

wp1_wc_admin_notes: Data: 0.02MB + Index: 0.00MB

wp1_wc_admin_note_actions: Data: 0.02MB + Index: 0.02MB

wp1_wc_customer_lookup: Data: 0.02MB + Index: 0.03MB

wp1_wc_download_log: Data: 0.02MB + Index: 0.03MB

wp1_wc_order_coupon_lookup: Data: 0.02MB + Index: 0.03MB

wp1_wc_order_product_lookup: Data: 0.02MB + Index: 0.06MB

wp1_wc_order_stats: Data: 0.02MB + Index: 0.05MB

wp1_wc_order_tax_lookup: Data: 0.02MB + Index: 0.03MB

wp1_wc_product_meta_lookup: Data: 0.02MB + Index: 0.09MB

wp1_wc_webhooks: Data: 0.02MB + Index: 0.02MB

### Post Type Counts ###

attachment: 2

page: 6

post: 2

scheduled-action: 2

### Security ###

Secure connection (HTTPS): ❌

     Your store is not using HTTPS. Learn more about HTTPS and SSL Certificates.

Hide errors from visitors: ✔

### Active Plugins (8) ###

Facebook for WooCommerce: by Facebook – 1.9.12 – Not tested with the active version of WooCommerce

ImportWP Pro: by James Collings – 1.1.4

Jetpack by WordPress.com: by Automattic – 7.3.1

Mailchimp for WooCommerce: by Mailchimp – 2.1.16 – Not tested with the active version of WooCommerce

WooCommerce Admin: by WooCommerce – 0.12.0

WooCommerce PayPal Checkout Gateway: by WooCommerce – 1.6.14

WooCommerce Services: by Automattic – 1.20.0

WooCommerce: by Automattic – 3.6.4

### Inactive Plugins (2) ###

Akismet Anti-Spam: by Automattic – 4.1.2

Hello Dolly: by Matt Mullenweg – 1.7.2

### Settings ###

API Enabled: –

Force SSL: –

Currency: EUR (€)

Currency Position: left

Thousand Separator: ,

Decimal Separator: .

Number of Decimals: 2

Taxonomies: Product Types: external (external)

grouped (grouped)

simple (simple)

variable (variable)

Taxonomies: Product Visibility: exclude-from-catalog (exclude-from-catalog)

exclude-from-search (exclude-from-search)

featured (featured)

outofstock (outofstock)

rated-1 (rated-1)

rated-2 (rated-2)

rated-3 (rated-3)

rated-4 (rated-4)

rated-5 (rated-5)

Connected to WooCommerce.com: –

### WC Pages ###

Shop base: #8 - /shop/

Cart: #9 - /cart/

Checkout: #10 - /checkout/

My account: #11 - /my-account/

Terms and conditions: ❌ Page not set

### Theme ###

Name: Storefront

Version: 2.5.0

Author URL: https://woocommerce.com/

Child Theme: ❌ – If you are modifying WooCommerce on a parent theme that you did not build personally we recommend using a child theme. See: How to create a child theme

WooCommerce Support: ✔

### Templates ###

Overrides: –

### Action Scheduler ###

Complete: 1

Oldest: 2019-06-02 17:19:55 +0000

Newest: 2019-06-02 17:19:55 +0000

Pending: 1

Oldest: 2019-06-02 18:19:55 +0000

Newest: 2019-06-02 18:19:55 +0000

Canceled: 0

Oldest: –

Newest: –

In-progress: 0

Oldest: –

Newest: –

Failed: 0

Oldest: –

Newest: –

`