Title: Array to string conversion
Last modified: February 29, 2020

---

# Array to string conversion

 *  [sarmatopia](https://wordpress.org/support/users/sarmatopia/)
 * (@sarmatopia)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/array-to-string-conversion-10/)
 * `PHP Notice: Array to string conversion in /path/to/wp-content/plugins/wpsc-woocommerce/
   includes/admin/print_custom_form_field.php on line 31`
 * Where line 31 is:
 * `<?php if($custom_field_types->extra_info){?><p class="help-block" style="<?php
   echo $extra_info_css?>"><?php echo $custom_field_types->extra_info;?></p><?php}?
   >`
 * And `$custom_field_types->extra_info` is:
 *     ```
       {
       	"custom_fields_extra_info_53": "Please insert your name.",
       	"custom_fields_extra_info_54": "Please insert your email.",
       	"custom_fields_extra_info_55": "Short description of the ticket.",
       	"custom_fields_extra_info_56": "Detailed description of the ticket",
       	"custom_fields_extra_info_57": "",
       	"custom_fields_extra_info_58": "Please select priority.",
       	"custom_fields_extra_info_98": "",
       	"custom_fields_extra_info_99": ""
       }
       ```
   
 * Same problem on line 84.
 * Temporarily disabling it by adding `false &&` to the conditional:
 * `<?php if(false && $custom_field_types->extra_info){?><p class="help-block" style
   ="<?php echo $extra_info_css?>"><?php echo $custom_field_types->extra_info;?>
   </p><?php}?>`

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

 *  Plugin Contributor [Nikhil G](https://wordpress.org/support/users/nsgawli/)
 * (@nsgawli)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/array-to-string-conversion-10/#post-12497363)
 * Hello [@sarmatopia](https://wordpress.org/support/users/sarmatopia/)
 * This bug has been already fixed in the latest version of the WooCommerce add-
   on. Please make sure you are using the latest version (2.0.7) of the WooCommerce
   add-on.
 *  Thread Starter [sarmatopia](https://wordpress.org/support/users/sarmatopia/)
 * (@sarmatopia)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/array-to-string-conversion-10/#post-12501560)
 * You are correct, we were not on the latest version. But wp-admin/plugins.php 
   did not have any notice of an update. How do we automatically check for updates?
 *  Plugin Contributor [Nikhil G](https://wordpress.org/support/users/nsgawli/)
 * (@nsgawli)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/array-to-string-conversion-10/#post-12501631)
 * Hello [@sarmatopia](https://wordpress.org/support/users/sarmatopia/)
 * You are facing this issue may be because of a plugin or theme, you can troubleshoot
   this yourself by disabling all plugins and activating them one by one. This way
   you will find the plugin causing the problem.
 * We have found a similar topic on wordpress.org [https://wordpress.org/support/topic/wordpress-dashboard-no-longer-showing-updates/](https://wordpress.org/support/topic/wordpress-dashboard-no-longer-showing-updates/)
 * Please note, the theme or plugin should not be changed directly on the live server,
   sometimes you may lose settings.

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

The topic ‘Array to string conversion’ is closed to new replies.

 * ![](https://ps.w.org/supportcandy/assets/icon.svg?rev=2763565)
 * [SupportCandy - Helpdesk & Customer Support Ticket System](https://wordpress.org/plugins/supportcandy/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/supportcandy/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/supportcandy/)
 * [Active Topics](https://wordpress.org/support/plugin/supportcandy/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/supportcandy/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/supportcandy/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Nikhil G](https://wordpress.org/support/users/nsgawli/)
 * Last activity: [6 years, 2 months ago](https://wordpress.org/support/topic/array-to-string-conversion-10/#post-12501631)
 * Status: not resolved