Title: [Plugin: Weekly Class Schedule] json encode error
Last modified: August 20, 2016

---

# [Plugin: Weekly Class Schedule] json encode error

 *  [joemastro](https://wordpress.org/support/users/joemastro/)
 * (@joemastro)
 * [13 years, 8 months ago](https://wordpress.org/support/topic/plugin-weekly-class-schedule-json-encode-error/)
 * Whenever I add anything to the schedule it returns this error, twice.
 * Warning: json_encode() expects exactly 1 parameter, 2 given in /home/jmastrom/
   public_html/mma/wp-content/plugins/weekly-class-schedule/models/WcsIOS.php on
   line 35
 * Any ideas? Tried disabling various plugins.
 * [http://wordpress.org/extend/plugins/weekly-class-schedule/](http://wordpress.org/extend/plugins/weekly-class-schedule/)

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

 *  Plugin Author [amitai](https://wordpress.org/support/users/ty_pwd/)
 * (@ty_pwd)
 * [13 years, 8 months ago](https://wordpress.org/support/topic/plugin-weekly-class-schedule-json-encode-error/#post-3016400)
 * This happens because your server is running PHP 5.2. In the file WcsIOS.php, 
   change line 35 from:
    `$output = json_encode( $multiDimArray, JSON_FORCE_OBJECT);`
   to `$output = json_encode( $multiDimArra );`
 * I will fix this issue on the next release.
 *  Thread Starter [joemastro](https://wordpress.org/support/users/joemastro/)
 * (@joemastro)
 * [13 years, 8 months ago](https://wordpress.org/support/topic/plugin-weekly-class-schedule-json-encode-error/#post-3016409)
 * Sweet… and with your fix, I won’t worry about the fix being overridden!
 * Best Regards, and thank you,
    Joe

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

The topic ‘[Plugin: Weekly Class Schedule] json encode error’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/weekly-class-schedule_e7e1ae.svg)
 * [Weekly Class Schedule](https://wordpress.org/plugins/weekly-class-schedule/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/weekly-class-schedule/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/weekly-class-schedule/)
 * [Active Topics](https://wordpress.org/support/plugin/weekly-class-schedule/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/weekly-class-schedule/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/weekly-class-schedule/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [joemastro](https://wordpress.org/support/users/joemastro/)
 * Last activity: [13 years, 8 months ago](https://wordpress.org/support/topic/plugin-weekly-class-schedule-json-encode-error/#post-3016409)
 * Status: not resolved