Order Details – Shipping Address Showing Illegal String Offset Instead of Fields
-
Hi there, after a plugin upgrade I am not not seeing the shipping details correctly in the Order Details for an order. Instead, I see a number of messages such as:
“Warning: illegal string offset ‘shipping_first_name’ in /srv/users/serverpilot/apps/gff/public/wp-content/plugins/flexible-checkout-fields/classes/display-options on line 345.”This is for more recent versions of php. If I downgrade my php to 7.0, I still cannot see the shipping fields within the order screen, and the error message simply says “Array.”
-
Hi @lakenetwork
Do you have shipping enabled in your shop? https://wpdesk.me/po/42ze1jvg0tsq.png
Please send us a WooCommerce system status. Here’s a screenshot showing how to get it.
I have the exact same problem. I see the error in php log and the order is not displaying the shipping address.
here is woocommerce status:
### WordPress Environment ### WordPress address (URL): Site address (URL): WC Version: 3.7.0 REST API Version: ? 1.0.2 Log Directory Writable: ? WP Version: 5.2.2 WP Multisite: – WP Memory Limit: 768 MB WP Debug Mode: – WP Cron: ? Language: en_US External object cache: – ### Server Environment ### Server Info: Apache PHP Version: 7.1.30 - We recommend using PHP version 7.2 or above for greater performance and security. How to update your PHP version PHP Post Max Size: 128 MB PHP Time Limit: 120 PHP Max Input Vars: 1000 cURL Version: 7.59.0 OpenSSL/1.0.2r SUHOSIN Installed: – MySQL Version: 5.6.40-84.0-log Max Upload Size: 128 MB Default Timezone is UTC: ? fsockopen/cURL: ? SoapClient: ? DOMDocument: ? GZip: ? Multibyte String: ? Remote Post: ? Remote Get: ? ### Database ### WC Database Version: 3.7.0 WC Database Prefix: MaxMind GeoIP Database: ? Total Database Size: 30.37MB Database Data Size: 21.13MB Database Index Size: 9.24MB gjdoe_woocommerce_sessions: Data: 0.14MB + Index: 0.02MB + Engine InnoDB gjdoe_woocommerce_api_keys: Data: 0.02MB + Index: 0.03MB + Engine InnoDB gjdoe_woocommerce_attribute_taxonomies: Data: 0.02MB + Index: 0.02MB + Engine InnoDB gjdoe_woocommerce_downloadable_product_permissions: Data: 0.02MB + Index: 0.05MB + Engine InnoDB gjdoe_woocommerce_order_items: Data: 0.06MB + Index: 0.02MB + Engine InnoDB gjdoe_woocommerce_order_itemmeta: Data: 0.17MB + Index: 0.19MB + Engine InnoDB gjdoe_woocommerce_tax_rates: Data: 0.02MB + Index: 0.06MB + Engine InnoDB gjdoe_woocommerce_tax_rate_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB gjdoe_woocommerce_shipping_zones: Data: 0.02MB + Index: 0.00MB + Engine InnoDB gjdoe_woocommerce_shipping_zone_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB gjdoe_woocommerce_shipping_zone_methods: Data: 0.02MB + Index: 0.00MB + Engine InnoDB gjdoe_woocommerce_payment_tokens: Data: 0.02MB + Index: 0.02MB + Engine InnoDB gjdoe_woocommerce_payment_tokenmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB gjdoe_woocommerce_log: Data: 0.02MB + Index: 0.02MB + Engine InnoDB gjdoe_aiowps_events: Data: 0.02MB + Index: 0.00MB + Engine InnoDB gjdoe_aiowps_failed_logins: Data: 0.06MB + Index: 0.00MB + Engine InnoDB gjdoe_aiowps_global_meta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB gjdoe_aiowps_login_activity: Data: 0.06MB + Index: 0.00MB + Engine InnoDB gjdoe_aiowps_login_lockdown: Data: 0.02MB + Index: 0.00MB + Engine InnoDB gjdoe_aiowps_permanent_block: Data: 0.02MB + Index: 0.00MB + Engine InnoDB gjdoe_aws_cache: Data: 0.02MB + Index: 0.00MB + Engine InnoDB gjdoe_aws_index: Data: 2.38MB + Index: 0.00MB + Engine InnoDB gjdoe_commentmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB gjdoe_comments: Data: 0.52MB + Index: 0.66MB + Engine InnoDB gjdoe_duplicator_packages: Data: 0.02MB + Index: 0.02MB + Engine InnoDB gjdoe_email_log: Data: 1.52MB + Index: 0.00MB + Engine InnoDB gjdoe_failed_jobs: Data: 0.02MB + Index: 0.00MB + Engine InnoDB gjdoe_feedmanager_channel: Data: 0.02MB + Index: 0.03MB + Engine InnoDB gjdoe_feedmanager_country: Data: 0.02MB + Index: 0.03MB + Engine InnoDB gjdoe_feedmanager_feed_status: Data: 0.02MB + Index: 0.11MB + Engine InnoDB gjdoe_feedmanager_field_categories: Data: 0.02MB + Index: 0.00MB + Engine InnoDB gjdoe_feedmanager_product_feed: Data: 0.02MB + Index: 0.02MB + Engine InnoDB gjdoe_feedmanager_product_feedmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB gjdoe_feedmanager_source: Data: 0.02MB + Index: 0.09MB + Engine InnoDB gjdoe_layerslider: Data: 0.02MB + Index: 0.00MB + Engine InnoDB gjdoe_layerslider_revisions: Data: 0.02MB + Index: 0.00MB + Engine InnoDB gjdoe_links: Data: 0.02MB + Index: 0.02MB + Engine InnoDB gjdoe_mailchimp_carts: Data: 0.02MB + Index: 0.00MB + Engine InnoDB gjdoe_mstoreapp_wishlist: Data: 0.02MB + Index: 0.00MB + Engine InnoDB gjdoe_options: Data: 3.28MB + Index: 0.20MB + Engine InnoDB gjdoe_postmeta: Data: 8.52MB + Index: 6.03MB + Engine InnoDB gjdoe_posts: Data: 2.52MB + Index: 0.64MB + Engine InnoDB gjdoe_po_plugins: Data: 0.02MB + Index: 0.06MB + Engine InnoDB gjdoe_queue: Data: 0.02MB + Index: 0.00MB + Engine InnoDB gjdoe_revslider_css: Data: 0.13MB + Index: 0.00MB + Engine InnoDB gjdoe_revslider_layer_animations: Data: 0.02MB + Index: 0.00MB + Engine InnoDB gjdoe_revslider_navigations: Data: 0.02MB + Index: 0.00MB + Engine InnoDB gjdoe_revslider_sliders: Data: 0.02MB + Index: 0.00MB + Engine InnoDB gjdoe_revslider_slides: Data: 0.19MB + Index: 0.00MB + Engine InnoDB gjdoe_revslider_static_slides: Data: 0.02MB + Index: 0.00MB + Engine InnoDB gjdoe_sdm_downloads: Data: 0.02MB + Index: 0.00MB + Engine InnoDB gjdoe_termmeta: Data: 0.05MB + Index: 0.03MB + Engine InnoDB gjdoe_terms: Data: 0.05MB + Index: 0.03MB + Engine InnoDB gjdoe_term_relationships: Data: 0.08MB + Index: 0.05MB + Engine InnoDB gjdoe_term_taxonomy: Data: 0.05MB + Index: 0.03MB + Engine InnoDB gjdoe_usermeta: Data: 0.14MB + Index: 0.16MB + Engine InnoDB gjdoe_users: Data: 0.02MB + Index: 0.05MB + Engine InnoDB gjdoe_wc_admin_notes: Data: 0.02MB + Index: 0.00MB + Engine InnoDB gjdoe_wc_admin_note_actions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB gjdoe_wc_customer_lookup: Data: 0.06MB + Index: 0.03MB + Engine InnoDB gjdoe_wc_download_log: Data: 0.02MB + Index: 0.03MB + Engine InnoDB gjdoe_wc_order_coupon_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB gjdoe_wc_order_product_lookup: Data: 0.05MB + Index: 0.06MB + Engine InnoDB gjdoe_wc_order_stats: Data: 0.06MB + Index: 0.05MB + Engine InnoDB gjdoe_wc_order_tax_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB gjdoe_wc_product_meta_lookup: Data: 0.05MB + Index: 0.09MB + Engine InnoDB gjdoe_wc_tax_rate_classes: Data: 0.02MB + Index: 0.02MB + Engine InnoDB gjdoe_wc_webhooks: Data: 0.02MB + Index: 0.02MB + Engine InnoDB gjdoe_yoast_seo_links: Data: 0.02MB + Index: 0.02MB + Engine InnoDB gjdoe_yoast_seo_meta: Data: 0.05MB + Index: 0.00MB + Engine InnoDB ### Security ### Secure connection (HTTPS): ? Hide errors from visitors: ? ### Active Plugins (54) ### 17TRACK for WooCommerce: by 17TRACK – 1.0.8 – Not tested with the active version of WooCommerce Advanced Woo Search: by ILLID – 1.78 Redux Framework: by Team Redux – 3.6.15 All In One WP Security: by Tips and Tricks HQ Peter Petreski Ruhul Ivy – 4.4.0 BeTheme Header Builder: by Muffin group – 1.0.5 Contact Form 7: by Takayuki Miyoshi – 5.1.4 GDPR Cookie Consent: by WebToffee – 1.7.9 Custom Related Products for WooCommerce: by Scott Nelle – 1.3 – Not tested with the active version of WooCommerce Email Log: by Sudar – 2.3.1 Facebook for WooCommerce: by Facebook – 1.9.15 – Not tested with the active version of WooCommerce Error Log Monitor: by Janis Elsts – 1.6.6 Messenger Customer Chat: by Facebook – 1.3 Flamingo: by Takayuki Miyoshi – 2.0 Force Regenerate Thumbnails: by Pedro Elsner – 2.0.6 Google Analytics Dashboard for WP (GADWP): by ExactMetrics – 5.3.9 Google XML Sitemaps: by Arne Brachhold – 4.1.0 Hotjar Connecticator: by Blue Medicine Labs – 1.1.1 Mailchimp for WooCommerce: by Mailchimp – 2.1.17 – Not tested with the active version of WooCommerce Manual Reviews for WooCommerce: by Royalz Toolkits – 1.0 – Not tested with the active version of WooCommerce Minimal Coming Soon & Maintenance Mode: by WebFactory Ltd – 2.05 Mstoreapp Mobile App: by Mstoreapp – 8.0.1 OneSignal Push Notifications: by OneSignal – 1.17.8 Plugin Organizer: by Jeff Sterup – 10.1 PixelYourSite: by PixelYourSite – 7.1.1 PixelYourSite Pinterest: by PixelYourSite – 2.0.6 – Not tested with the active version of WooCommerce Preview E-mails for WooCommerce: by Digamber Pradhan – 1.5.1 – Not tested with the active version of WooCommerce Flexible Checkout Fields: by WP Desk – 2.0.8 SG Optimizer: by SiteGround – 5.2.5 WooCommerce - Show only lowest prices in variable products: by Fernando Tellado – 0.9.10 – Not tested with the active version of WooCommerce Simple Download Monitor: by Tips and Tricks HQ Ruhul Amin Josh Lobe – 3.8.1 Speed Booster Pack: by Optimocha – 3.8.3 WebP Express: by Bj?rn Rosell – 0.14.22 WooCommerce Blocks: by Automattic – 2.3.0 Woo Stickers by Webline: by Weblineindia – 1.1.1 WooCommerce Accepted Payment Methods: by jameskoster – 0.7.0 – Not tested with the active version of WooCommerce WooCommerce added to cart popup (Ajax): by XootiX – 1.4 – Not tested with the active version of WooCommerce WooSwatches - Woocommerce Color or Image Variation Swatches: by woomatrix – 2.7.03 – Not tested with the active version of WooCommerce WooCommerce Admin: by WooCommerce – 0.17.0 WooCommerce PayPal Checkout Gateway: by WooCommerce – 1.6.17 WooCommerce PayPal Powered by Braintree Gateway: by WooCommerce – 2.2.6 WooCommerce Google Ads Conversion Tracking: by Wolf+B?r Agency – 1.5.5 WooCommerce Google Analytics Integration: by WooCommerce – 1.4.12 WooCommerce Google Ads Dynamic Remarketing: by Wolf+B?r Agency – 1.7.13 Woocommerce Multi Currency Store Pro: by Code Ninjas – 1.9.8 – Not tested with the active version of WooCommerce WooCommerce Notification Premium: by Andy Ha (villatheme.com) – 1.3.9.8 – Not tested with the active version of WooCommerce WooCommerce Product Archive Customiser: by jameskoster – 1.0.5 – Not tested with the active version of WooCommerce WooCommerce Stripe Gateway: by WooCommerce – 4.2.3 – Not tested with the active version of WooCommerce WooCommerce: by Automattic – 3.7.0 Yoast SEO: by Team Yoast – 11.9 WP-Sweep: by Lester 'GaMerZ' Chan – 1.1.0 WP Product Feed Manager: by Michel Jongbloed – 1.15.0 – Not tested with the active version of WooCommerce WPBakery Page Builder: by Michael M - WPBakery.com – 6.0.2 Aliexpress Dropship for Woocommerce: by MA-Group – 1.6.6 – Not tested with the active version of WooCommerce XL WooCommerce Sales Triggers: by XLPlugins – 2.9.3 – Not tested with the active version of WooCommerce ### Inactive Plugins (9) ### AfterShip - WooCommerce Tracking: by AfterShip – 1.9.9 – Not tested with the active version of WooCommerce Duplicate Post: by Enrico Battocchi – 3.2.3 Duplicator: by Snap Creek – 1.3.18 Jetpack by WordPress.com: by Automattic – 7.6 LayerSlider WP: by Kreatura Media – 6.9.1 Pctags - Pinterest Conversion Tags: by Pagup – 1.0.4 Query Monitor: by John Blackbourn – 3.3.7 Slider Revolution: by ThemePunch – 6.1.0 WooCommerce Cart popup premium: by XootiX – 1.4 – Not tested with the active version of WooCommerce ### Must Use Plugins (1) ### Plugin Organizer MU: by Jeff Sterup – 10.1 ### 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) 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: #4 - /shop/ Cart: #5 - /cart/ Checkout: #6 - /checkout/ My account: #7 - /my-account/ Terms and conditions: #95 - /terms-conditions/ ### Theme ### Name: Betheme Child Version: 1.6.1.1 Author URL: https://muffingroup.com Child Theme: ? Parent Theme Name: Betheme Parent Theme Version: 21.3.3 Parent Theme Author URL: https://muffingroup.com/ WooCommerce Support: ? ### Templates ### Outdated Templates: ? Learn how to update ### Action Scheduler ### Complete: 1,157 Oldest: 2019-07-27 07:28:29 +0000 Newest: 2019-08-27 06:37:37 +0000 Pending: 2 Oldest: 2019-08-27 07:37:37 +0000 Newest: 2019-08-29 07:08:35 +0000 Canceled: 0 Oldest: – Newest: – In-progress: 0 Oldest: – Newest: – Failed: 6 Oldest: 2019-05-27 14:51:04 +0000 Newest: 2019-08-24 04:58:41 +0000
I have updated php to 7.3 and the error is gone, but the old orders are still without shipping address. The error looks like is coming from a missing simple verification.
@condor304
Do you have shipping enabled in your shop? https://wpdesk.me/po/42ze1jvg0tsq.pngPlease show me the screenshot showing the problematical order.
We are working on te fix.
@lakenetwork
You can hide the warnings using this method: https://aristath.github.io/blog/wp-hide-php-errorsyes the shipping is enabled. is an old shop and was working fine before the update. I don’t know what to show you. is not on one order is on all orders after the update and there is no shipping address. only billing.
https://pachecg-my.sharepoint.com/:i:/g/personal/go753_msoffice_group/EY-5fxULzptNoHbduO5vt84BpD0tLCLyBYy5mECkSvdr9g?e=cYOgGEHi
I’ve the same error but the shipping is disable
Warning: Illegal string offset ‘shipping_country’ in /home/unoduet4/public_html/wp-content/plugins/flexible-checkout-fields/classes/display-options.php on line 345
Warning: Cannot assign an empty string to a string offset in /home/unoduet4/public_html/wp-content/plugins/flexible-checkout-fields/classes/display-options.php on line 345
Warning: Illegal string offset ‘country’ in /home/unoduet4/public_html/wp-content/plugins/flexible-checkout-fields/classes/display-options.php on line 346
Warning: Cannot assign an empty string to a string offset in /home/unoduet4/public_html/wp-content/plugins/flexible-checkout-fields/classes/display-options.php on line 346
Can you help me?
Regards
Gianni-
This reply was modified 5 years, 6 months ago by
giannic.
Hi,
we are working on solution now.
Best regards,
dyszczo@giannic @condor304 @lakenetwork
I’m writing to you to let you know that the fully-fledged update of the Flexible Checkout Fields containing the proper fix has been just released. Please update it to the 2.1.1 version.
If the WordPress updater haven’t informed you about the newer version available, please check for the updates manually choosing Dashboard > Updates > Check Again option from the sidebar.
-
This reply was modified 5 years, 6 months ago by
- The topic ‘Order Details – Shipping Address Showing Illegal String Offset Instead of Fields’ is closed to new replies.