Title: version 1.3.5 syntax error
Last modified: March 9, 2018

---

# version 1.3.5 syntax error

 *  Resolved [rwrx](https://wordpress.org/support/users/rwrx/)
 * (@rwrx)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/version-1-3-5-syntax-error/)
 * error log:
    PHP Warning: in_array() expects parameter 2 to be array, string given
   in …/wordpress/public/wp-content/plugins/twitter-auto-publish/admin/publish.php
   on line 150″
 * And change this line:
    $carr1=$xyz_twap_include_categories; to old version: $
   carr1=explode(‘,’, $xyz_twap_include_categories); works, thanks.

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

 *  [anjalixyzscripts](https://wordpress.org/support/users/anjali94/)
 * (@anjali94)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/version-1-3-5-syntax-error/#post-10056646)
 * Did you deactivated and then re-activated the plugin?
    There is a UI change in
   specific category selection ,in the previous versions it was multi -select drop
   down(which stores value as string) ,now it is multi select check-boxes.Which 
   stores the categories as array,so please revert the changes you made. Otherwise
   it will return PHP Warning: explode() expects parameter 2 to be string, array
   given in../wordpress/public/wp-content/plugins/twitter-auto-publish/admin/publish.
   php . Please check the settings page of Twitter Auto Publish ,and let us know
   if any issues. Thank you.
 *  Thread Starter [rwrx](https://wordpress.org/support/users/rwrx/)
 * (@rwrx)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/version-1-3-5-syntax-error/#post-10061591)
 * OK, I know what you mean.
 * But that’s not backward compatible，even I deactivated and then re-activated 
   the plugin, the multi select check-boxes category are not selected, which means
   that categories are still stored as string. I have to re-select category check-
   boxes and update settings to make it work. As a result, users would be confused.
 * Anyway thanks for you work.
 *  [anjalixyzscripts](https://wordpress.org/support/users/anjali94/)
 * (@anjali94)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/version-1-3-5-syntax-error/#post-10063656)
 * Yes, you are right.
    That was a mistake from our side, we fixed this compatibility
   issue when you reported this,and the changes will be updated soon. Thank you 
   for your support and patience. Have a nice day .

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

The topic ‘version 1.3.5 syntax error’ is closed to new replies.

 * ![](https://ps.w.org/twitter-auto-publish/assets/icon-128x128.jpg?rev=1790484)
 * [WP Twitter Auto Publish](https://wordpress.org/plugins/twitter-auto-publish/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/twitter-auto-publish/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/twitter-auto-publish/)
 * [Active Topics](https://wordpress.org/support/plugin/twitter-auto-publish/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/twitter-auto-publish/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/twitter-auto-publish/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [anjalixyzscripts](https://wordpress.org/support/users/anjali94/)
 * Last activity: [8 years, 3 months ago](https://wordpress.org/support/topic/version-1-3-5-syntax-error/#post-10063656)
 * Status: resolved