Title: PHP warning in server logs
Last modified: February 20, 2020

---

# PHP warning in server logs

 *  Resolved [lozula](https://wordpress.org/support/users/lozula/)
 * (@lozula)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/php-warning-in-server-logs/)
 * The plugin generates the following PHP warning in my Apache error logs:
 * Cannot use a scalar value as an array in …/wp-content/plugins/flexible-checkout-
   fields/classes/class-flexible-checkout-fields-plugin.php on line 604′,
 * I haven’t added any custom fields in the plugin itself, however I do use the 
   WooCommerce EU VAT Number plugin, which as far as I can tell is the only plugin
   I have that adds extra fields (a VAT field for users in the EU).
 * Any idea how I would go about resolving this issue?
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fphp-warning-in-server-logs%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  [Marta Borówka](https://wordpress.org/support/users/martapaw/)
 * (@martapaw)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/php-warning-in-server-logs/#post-12464128)
 * Hello [@lozula](https://wordpress.org/support/users/lozula/),
 * I tried to recreate this issue, but nothing happens like that.
 * Please send us a WooCommerce system status. [Here’s a screenshot showing how to get it.](https://wpde.sk/i/opm4z5sk2ee7.png)
 * It’ll help us to resolve the issue faster.
 * Best regards,
    Marta
 *  Thread Starter [lozula](https://wordpress.org/support/users/lozula/)
 * (@lozula)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/php-warning-in-server-logs/#post-12465067)
 * Here you go:
 *     ```
       ### WordPress Environment ###
   
       WordPress address (URL): https://travelphotographycourse.com
       Site address (URL): https://travelphotographycourse.com
       WC Version: 3.9.2
       REST API Version: ✔ 1.0.7
       Log Directory Writable: ✔
       WP Version: 5.3.2
       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.10 (Debian)
       PHP Version: 7.3.14-1+0~20200123.51+debian8~1.gbpcf42df
       PHP Post Max Size: 20 MB
       PHP Time Limit: 60
       PHP Max Input Vars: 2500
       cURL Version: 7.38.0
       OpenSSL/1.0.1t
   
       SUHOSIN Installed: –
       MySQL Version: 5.6.47-87.0-log
       Max Upload Size: 20 MB
       Default Timezone is UTC: ✔
       fsockopen/cURL: ✔
       SoapClient: ✔
       DOMDocument: ✔
       GZip: ✔
       Multibyte String: ✔
       Remote Post: ✔
       Remote Get: ✔
   
       ### Database ###
   
       WC Database Version: 3.9.2
       WC Database Prefix: wp_
       Total Database Size: 33.36MB
       Database Data Size: 23.89MB
       Database Index Size: 9.47MB
       wp_woocommerce_sessions: Data: 0.13MB + Index: 0.02MB + Engine InnoDB
       wp_woocommerce_api_keys: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
       wp_woocommerce_attribute_taxonomies: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
       wp_woocommerce_downloadable_product_permissions: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
       wp_woocommerce_order_items: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
       wp_woocommerce_order_itemmeta: Data: 0.06MB + Index: 0.03MB + Engine InnoDB
       wp_woocommerce_tax_rates: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
       wp_woocommerce_tax_rate_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
       wp_woocommerce_shipping_zones: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
       wp_woocommerce_shipping_zone_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
       wp_woocommerce_shipping_zone_methods: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
       wp_woocommerce_payment_tokens: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
       wp_woocommerce_payment_tokenmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
       wp_woocommerce_log: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
       wp_aelia_dismissed_messages: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
       wp_aelia_exchange_rates_history: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
       wp_cmplz_cookiebanners: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
       wp_cmplz_cookies: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
       wp_cmplz_dnsmpd: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
       wp_cmplz_services: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
       wp_cmplz_statistics: Data: 0.09MB + Index: 0.00MB + Engine InnoDB
       wp_commentmeta: Data: 0.45MB + Index: 0.45MB + Engine InnoDB
       wp_comments: Data: 1.45MB + Index: 1.38MB + Engine InnoDB
       wp_followup_coupons: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
       wp_followup_coupon_logs: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
       wp_followup_customers: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
       wp_followup_customer_carts: Data: 0.05MB + Index: 0.03MB + Engine InnoDB
       wp_followup_customer_notes: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
       wp_followup_customer_orders: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
       wp_followup_email_excludes: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
       wp_followup_email_logs: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
       wp_followup_email_orders: Data: 0.02MB + Index: 0.09MB + Engine InnoDB
       wp_followup_email_tracking: Data: 0.02MB + Index: 0.08MB + Engine InnoDB
       wp_followup_followup_history: Data: 0.13MB + Index: 0.05MB + Engine InnoDB
       wp_followup_order_categories: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
       wp_followup_order_items: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
       wp_followup_subscribers: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
       wp_followup_subscribers_to_lists: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
       wp_followup_subscriber_lists: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
       wp_links: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
       wp_mailchimp_carts: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
       wp_mailchimp_jobs: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
       wp_options: Data: 2.13MB + Index: 0.06MB + Engine InnoDB
       wp_pimwick_gift_card: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
       wp_pimwick_gift_card_activity: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
       wp_postmeta: Data: 3.39MB + Index: 1.86MB + Engine InnoDB
       wp_posts: Data: 12.06MB + Index: 0.72MB + Engine InnoDB
       wp_termmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
       wp_terms: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
       wp_term_relationships: Data: 0.08MB + Index: 0.06MB + Engine InnoDB
       wp_term_taxonomy: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
       wp_usermeta: Data: 2.52MB + Index: 3.03MB + Engine InnoDB
       wp_users: Data: 0.31MB + Index: 0.30MB + Engine InnoDB
       wp_wc_admin_notes: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
       wp_wc_admin_note_actions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
       wp_wc_category_lookup: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
       wp_wc_customer_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
       wp_wc_download_log: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
       wp_wc_order_coupon_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
       wp_wc_order_product_lookup: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
       wp_wc_order_stats: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
       wp_wc_order_tax_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
       wp_wc_product_meta_lookup: Data: 0.02MB + Index: 0.09MB + Engine InnoDB
       wp_wc_tax_rate_classes: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
       wp_wc_webhooks: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
   
       ### Post Type Counts ###
   
       attachment: 506
       condition_group: 2
       course: 1
       customize_changeset: 5
       follow_up_email: 3
       lesson: 65
       nav_menu_item: 7
       page: 18
       post: 2
       product: 2
       quiz: 63
       revision: 283
       scheduled-action: 1037
       shop_coupon: 21
       shop_order: 34
       sidebar: 2
       wc_membership_plan: 1
       wc_user_membership: 2184
       wp_block: 3
   
       ### Security ###
   
       Secure connection (HTTPS): ✔
       Hide errors from visitors: ✔
   
       ### Active Plugins (25) ###
   
       ManageWP - Worker: by GoDaddy – 4.9.3
       Better Search Replace: by Delicious Brains – 1.3.3
       Breeze: by Cloudways – 1.1.2
       Complianz Privacy Suite (GDPR/CCPA) premium: by RogierLankhorst
       Complianz – 4.3.1
   
       Content Aware Sidebars: by Joachim Jensen - DEV Institute – 3.11.1
       Flexible Checkout Fields: by WP Desk – 2.3.1
       Lazy Loader: by Florian Brinkmann
       MarcDK – 6.0.0
   
       Members: by MemberPress – 2.2.0
       reSmush.it Image Optimizer: by reSmush.it – 0.3.0
       Sensei LMS Course Progress: by Automattic – 2.0.2
       Stackable - Gutenberg Blocks (Premium): by Gambit Technologies
       Inc – 2.2.1
   
       Ultimate Addons for Gutenberg: by Brainstorm Force – 1.14.6
       WooCommerce Admin: by WooCommerce – 0.25.1
       WooCommerce Conversion Tracking: by Tareq Hasan – 2.0.6 – Not tested with the active version of WooCommerce
       WooCommerce EU VAT Number: by WooCommerce – 2.3.18
       Follow-Up Emails: by WooCommerce – 4.8.25
       WooCommerce PayPal Checkout Gateway: by WooCommerce – 1.6.20
       WooCommerce Stripe Gateway: by WooCommerce – 4.3.2
       WooCommerce Google Analytics Integration: by WooCommerce – 1.4.17
       WooCommerce Memberships: by SkyVerge – 1.17.0
       WooCommerce Price Based on Country Pro Add-on: by Oscar Gare – 2.8.6
       WooCommerce Price Based on Country (Basic): by Oscar Gare – 1.8.22
       WooCommerce Smart Coupons: by StoreApps – 4.6.0
       WooCommerce: by Automattic – 3.9.2
       Sensei with WooCommerce Paid Courses: by Automattic – 2.4.0.1.2.4 – Not tested with the active version of WooCommerce
   
       ### Inactive Plugins (4) ###
   
       Cache Images: by Matt Mullenweg – 3.1
       Limit Login Attempts Reloaded: by WPChef – 2.10.0
       Query Monitor: by John Blackbourn – 3.5.2
       Regenerate Thumbnails: by Alex Mills (Viper007Bond) – 3.1.3
   
       ### Dropin Plugins (2) ###
   
       advanced-cache.php: advanced-cache.php
       object-cache.php: Memcachy
   
       ### Must Use Plugins (1) ###
   
       ManageWP - Worker Loader: by GoDaddy –
   
       ### 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)
       pw gift card (pw-gift-card)
       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: #207 - /shop/
       Cart: #208 - /cart/
       Checkout: #209 - /checkout/
       My account: #210 - /my-account/
       Terms and conditions: ❌ Page not set
   
       ### Theme ###
   
       Name: Travel Photography Course
       Version: 1.0.96
       Author URL: https://www.findingtheuniverse.com
       Child Theme: ✔
       Parent Theme Name: Storefront
       Parent Theme Version: 2.5.4
       Parent Theme Author URL: https://woocommerce.com/
       WooCommerce Support: ✔
   
       ### Templates ###
   
       Overrides: PhotographyCourseTheme/woocommerce/checkout/form-checkout.php
       PhotographyCourseTheme/woocommerce/checkout/review-order.php
       PhotographyCourseTheme/woocommerce/emails/customer-completed-order.php
   
       ### Memberships ###
   
       Restriction mode:: Redirect to page
       Public content:: –
       Excluded from discounts:: –
       Membership plans:: 1
       Travel Photography Course Member:: Members: 2184Access method: Product(s) purchaseAccess length: Unlimited ❌ The plan contains a rule to restrict all Lessons to non-members
   
       ### Geolocation debug info ###
   
       Default customer location: geolocation_ajax
       MaxMind GeoIP database: ✔
       MaxMind GeoIP license: ✔
       : 
       HTTP_CF_IPCOUNTRY: GB
       GEOIP_COUNTRY_CODE: ❌
       HTTP_X_COUNTRY_CODE: ❌
       HTTP_X_REAL_IP: 86.153.249.81
       HTTP_X_FORWARDED_FOR: 86.153.249.81
       REMOTE_ADDR: 86.153.249.81
       Real external IP: 86.153.249.81
       WCPBC_USE_REMOTE_ADDR: –
       Geolocation Test: ✔
   
       ### PBC Settings ###
   
       Version: 1.8.22
       Base location: GB
       Base currency: USD
       Price Based On: billing
       Shipping: –
       Test mode: –
       Test country: –
       Load products price in background: –
       Currency format: [symbol][price]
       Prices entered with tax: ✔
       Calculate tax based on: shipping
       Display prices in the shop: incl
   
       ### Zone Pricing Eurozone ###
   
       zone_id: eurozone
       name: Eurozone
       countries: AX | AD | AT | BE | CY | EE | FI | FR | GF | TF | DE | GR | GP | IE | IT | LV | LT | LU | MT | MQ | YT | MC | ME | NL | PT | RE | BL | MF | PM | SM | SK | SI | ES | VA
       currency: EUR
       exchange_rate: 1
       auto_exchange_rate: no
       exchange_rate_fee: 0
       round_nearest: 
       currency_format: 
       price_thousand_sep: ,
       price_decimal_sep: .
       price_num_decimals: 2
       disable_tax_adjustment: no
   
       ### Zone Pricing United Kingdom ###
   
       zone_id: united-kingdom
       name: United Kingdom
       countries: GB
       currency: GBP
       exchange_rate: 1
       auto_exchange_rate: no
       exchange_rate_fee: 0
       round_nearest: 
       currency_format: 
       price_thousand_sep: ,
       price_decimal_sep: .
       price_num_decimals: 2
       disable_tax_adjustment: no
   
       ### Action Scheduler ###
   
       Complete: 1,034
       Oldest: 2020-01-21 20:08:18 +0000
       Newest: 2020-02-21 14:26:02 +0000
   
       Pending: 3
       Oldest: 2020-02-21 15:26:02 +0000
       Newest: 2020-02-21 20:05:46 +0000
   
       Canceled: 0
       Oldest: –
       Newest: –
   
       In-progress: 0
       Oldest: –
       Newest: –
   
       Failed: 0
       Oldest: –
       Newest: –
       ```
   
 *  [Marta Borówka](https://wordpress.org/support/users/martapaw/)
 * (@martapaw)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/php-warning-in-server-logs/#post-12472435)
 * Hello [@lozula](https://wordpress.org/support/users/lozula/),
 * Thank you.
 * The problem might be with your theme. Please test the plugin again, but now using
   [Storefront](https://wordpress.org/themes/storefront/) – official WooCommerce
   theme. It will help us identify a possible conflict with your theme.
 * Please let me know if the issue still occurs on Storefront.
 * Best regards,
    Marta
 *  Thread Starter [lozula](https://wordpress.org/support/users/lozula/)
 * (@lozula)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/php-warning-in-server-logs/#post-12472522)
 * Hello,
 * I haven’t significantly changed the theme. It’s just a child version of Storefront
   with different css. I don’t see how it would make this error happen.
 * I think it is much more likely to be the EU VAT plugin from Woocommerce, as that
   adds a field to the checkout page, and line 604 of this plugin is specifically
   about extra fields added by other plugins.
 * Laurence
 *  [Marta Borówka](https://wordpress.org/support/users/martapaw/)
 * (@martapaw)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/php-warning-in-server-logs/#post-12472561)
 * Hello [@lozula](https://wordpress.org/support/users/lozula/),
 * We are not able to recreate this issue, so it will be helpful if you check this
   issue on the Storefront theme.
 * Best regards,
    Marta
 *  [Marta Borówka](https://wordpress.org/support/users/martapaw/)
 * (@martapaw)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/php-warning-in-server-logs/#post-12472643)
 * [@lozula](https://wordpress.org/support/users/lozula/),
 * We can’t define where is the issue…
    It seems that the problem is related to 
   some other plugin used in your shop, maybe it’s not the EU VAT plugin.
 * Have you tried to isolate the issue? Please disable all third-party plugins in
   your WordPress and try again. Only with Flexible Checkout Fields and WooCommerce,
   and step by step turn on the other plugins to check where exactly the issue occurs.
 * Best regards,
    Marta
 *  Thread Starter [lozula](https://wordpress.org/support/users/lozula/)
 * (@lozula)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/php-warning-in-server-logs/#post-12496183)
 * Hi Marta,
 * Just to let you know I have identified the issue. There was another piece of 
   code trying to arrange the checkout fields, which was conflicting. When removing
   the code, it resolved the issue.
 * Thanks for your time!
 * Laurence

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

The topic ‘PHP warning in server logs’ is closed to new replies.

 * ![](https://ps.w.org/flexible-checkout-fields/assets/icon-256x256.gif?rev=2522628)
 * [Flexible Checkout Fields for WooCommerce - WooCommerce Checkout Manager](https://wordpress.org/plugins/flexible-checkout-fields/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/flexible-checkout-fields/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/flexible-checkout-fields/)
 * [Active Topics](https://wordpress.org/support/plugin/flexible-checkout-fields/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/flexible-checkout-fields/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/flexible-checkout-fields/reviews/)

 * 7 replies
 * 2 participants
 * Last reply from: [lozula](https://wordpress.org/support/users/lozula/)
 * Last activity: [6 years, 3 months ago](https://wordpress.org/support/topic/php-warning-in-server-logs/#post-12496183)
 * Status: resolved