Title: PHP Error when syncing square to woo
Last modified: July 1, 2024

---

# PHP Error when syncing square to woo

 *  Resolved [ryanbaldoza](https://wordpress.org/support/users/ryanbaldoza/)
 * (@ryanbaldoza)
 * [1 year, 11 months ago](https://wordpress.org/support/topic/php-error-when-syncing-square-to-woo/)
 * Hello Im getting PHP error when syncing square to woo. Please error log screenshot
   below. Thank you
 * [https://ibb.co/thtd42x](https://ibb.co/thtd42x)

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

 *  [Daniyal Raza](https://wordpress.org/support/users/daniyalraza01/)
 * (@daniyalraza01)
 * [1 year, 11 months ago](https://wordpress.org/support/topic/php-error-when-syncing-square-to-woo/#post-17865519)
 * Hello [@ryanbaldoza](https://wordpress.org/support/users/ryanbaldoza/) ,
 * Thanks for contacting us. Hope you are doing well.
 * We have received this same concern from you on our support ticket, Our technical
   support team is in touch and providing you with the resolve. It seems like this
   appears to be site specific issue. Our technical team is communicating with you
   there and once resolved We will be posting the final resolution here as well 
   so that the other users can benefit from it, in case they encounter this same
   scenario with them. Your co-operation is highly appreciated.
 * Feel free to ask anything there.
 * Thanks & Regards,
   WP Experts Support Team.
 *  Plugin Support [M Aqib Khan](https://wordpress.org/support/users/aqibkhan9/)
 * (@aqibkhan9)
 * [1 year, 11 months ago](https://wordpress.org/support/topic/php-error-when-syncing-square-to-woo/#post-17883208)
 * Hello [@ryanbaldoza](https://wordpress.org/support/users/ryanbaldoza/)
 * Hope you are having an amazing day.
 * Our technical team analyzed and concluded this is a site specific issue as the
   same haven’t been reported earlier. The code provided by you was reviewed and
   verified by our technical team. This PHP error while syncing could be resolved
   by adding this line of code into code that you provided earlier and it does not
   affect the synchronization.
 *     ```wp-block-code
       $object_new[ $kym ]->category = new \stdClass();
       ```
   
 * Another issue mentioned by you was related to setting up variable products which
   could be easily resolved by following these steps: 
    - Use lower case letters while naming attributes/variations.
    - Don’t use special characters inside Titles/Attributes/descriptions/Variations
      such as:
      s(“Ą Ó ź ż Ą Ć Ę Ł Ń Ó Ś Ź Ż ą ć ę ł ń ó ś ź ż õ o͡o ø (){}&%$!@#
      ^*=|:?`~+/<>;”)
    - When adding variations in Square use this correct format i.e. color[red], 
      size[small]
 * We believe these measures resolve your concerns. We are posting this here for
   other users to benefit from, the same has been communicated with you over the
   support ticket. As of now we are closing this ticket here as the issues have 
   been addressed, but the support ticket is open just in case you have any additional
   concerns or you could always open a new thread any time and we are determined
   to provide you with support promptly.
 * Thanks and regards,
   Support Team – WP Experts

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

The topic ‘PHP Error when syncing square to woo’ is closed to new replies.

 * ![](https://ps.w.org/woosquare/assets/icon-128x128.gif?rev=3123976)
 * [WC Shop Sync – Square Payment Gateway and Product Synchronization for WooCommerce](https://wordpress.org/plugins/woosquare/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woosquare/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woosquare/)
 * [Active Topics](https://wordpress.org/support/plugin/woosquare/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woosquare/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woosquare/reviews/)

 * 2 replies
 * 3 participants
 * Last reply from: [M Aqib Khan](https://wordpress.org/support/users/aqibkhan9/)
 * Last activity: [1 year, 11 months ago](https://wordpress.org/support/topic/php-error-when-syncing-square-to-woo/#post-17883208)
 * Status: resolved