Title: Error
Last modified: May 11, 2021

---

# Error

 *  Resolved [massimosentuti](https://wordpress.org/support/users/massimosentuti/)
 * (@massimosentuti)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/error-1529/)
 * Hi Dovi
    I uninstalled and reinstalled this plugin, I deleted all the users (
   56) and entered only two, finally I deleted all the categories, now I can’t enter
   any shifts and when I enter a holiday and press the “save changes” button, it
   appears the error below. How can i permanently reset this plugin and restart ??
 * `Fatal error: Uncaught TypeError: count(): Argument #1 ($var) must be of type
   Countable|array, null given in C:\xampp\htdocs\my_site\wp-content\plugins\shift-
   schedule\libs\shift-schedule-setup.php:174 Stack trace: #0 C:\xampp\htdocs\my_site\
   wp-includes\class-wp-hook.php(294): shift_schedule_698_settings->sanitize(Array)#
   1 C:\xampp\htdocs\my_site\wp-includes\plugin.php(212): WP_Hook->apply_filters(
   Array, Array) #2 C:\xampp\htdocs\my_site\wp-includes\formatting.php(4907): apply_filters('
   sanitize_option...', Array, 'shift_schedule_...', Array) #3 C:\xampp\htdocs\my_site\
   wp-includes\option.php(369): sanitize_option('shift_schedule_...', Array) #4 
   C:\xampp\htdocs\my_site\wp-admin\options.php(314): update_option('shift_schedule_...',
   Array) #5 {main} thrown in C:\xampp\htdocs\my_site\wp-content\plugins\shift-schedule\
   libs\shift-schedule-setup.php on line 174`

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

 *  Anonymous User 17720058
 * (@anonymized-17720058)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/error-1529/#post-14425678)
 * It’s a tiny but very annoying mistake. The new version (1.36) is already available
   in which I have improved.
 *  Thread Starter [massimosentuti](https://wordpress.org/support/users/massimosentuti/)
 * (@massimosentuti)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/error-1529/#post-14425757)
 * thanks
 *  Thread Starter [massimosentuti](https://wordpress.org/support/users/massimosentuti/)
 * (@massimosentuti)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/error-1529/#post-14426376)
 * I’m sorry but now the “add new type” button does not work yet and in the “schedule
   month” the errors below appear:
 * Warning: foreach() argument must be of type array|object, null given in C:\xampp\
   htdocs\my_site\wp-content\plugins\shift-schedule\libs\class.php on line 465
 * Warning: foreach() argument must be of type array|object, null given in C:\xampp\
   htdocs\my_site\wp-content\plugins\shift-schedule\libs\class.php on line 138
 * Warning: foreach() argument must be of type array|object, null given in C:\xampp\
   htdocs\my_site\wp-content\plugins\shift-schedule\libs\class.php on line 359
 * Warning: foreach() argument must be of type array|object, null given in C:\xampp\
   htdocs\my_site\wp-content\plugins\shift-schedule\libs\class.php on line 359
 * Warning: foreach() argument must be of type array|object, null given in C:\xampp\
   htdocs\my_site\wp-content\plugins\shift-schedule\libs\class.php on line 162
 * Warning: foreach() argument must be of type array|object, null given in C:\xampp\
   htdocs\my_site\wp-content\plugins\shift-schedule\libs\class.php on line 138
 * Warning: foreach() argument must be of type array|object, null given in C:\xampp\
   htdocs\my_site\wp-content\plugins\shift-schedule\libs\class.php on line 176
 * Warning: foreach() argument must be of type array|object, null given in C:\xampp\
   htdocs\my_site\wp-content\plugins\shift-schedule\libs\class.php on line 182
 * Warning: foreach() argument must be of type array|object, null given in C:\xampp\
   htdocs\my_site\wp-content\plugins\shift-schedule\libs\class.php on line 378
 * Warning: foreach() argument must be of type array|object, null given in C:\xampp\
   htdocs\my_site\wp-content\plugins\shift-schedule\libs\class.php on line 384
 *  Anonymous User 17720058
 * (@anonymized-17720058)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/error-1529/#post-14427063)
 * I don’t succeed in reproducing the mistake. Please send me the [info@dovi42.hu](https://wordpress.org/support/topic/error-1529/info@dovi42.hu?output_format=md)
   address screen to see where you experience the above. Thanks!
 *  Anonymous User 17720058
 * (@anonymized-17720058)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/error-1529/#post-14428224)
 * I also tested on xampp server, but there is no mistake there. (Your PHP version
   >= 5.6?) A newer version (1.37), which may be a solution for error messages.
   
   If the “Add New Type” button does not work, type JavaScript error can be a mistake
   that can be found in the browser developer console.
 *  Thread Starter [massimosentuti](https://wordpress.org/support/users/massimosentuti/)
 * (@massimosentuti)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/error-1529/#post-14429274)
 * Forgive me for the delay with which I answer you, but it took time to restore
   the system with the various backups I had, as after having uninstalled and reinstalled
   the plugin several times and deleted any traces of data in the Dbase the system
   had become unstable. My version of XAMPP is 8.0.5 with wordpress 5.7.1.(shiftschedule
   1.37). I recovered the whole site and reinstalled “shift schedule”. Now it has
   no errors and the “add new shift” button works.
    Now I ask you can I add all 
   my users (about 100) through a post.sql backup (ShiftSchedule users only, it 
   would be very useful to add users by copying them from wordpress). I also noticed
   an anomaly in the operation of “month schedule”, I have no cache installed but
   sometimes (not always) after having programmed the shifts and I move forward 
   with the “next month” button and then back there are no more scheduled shifts.
   An instant commit would be recommended to avoid losing data due to browser response.
   Thanks for everything.
 *  Anonymous User 17720058
 * (@anonymized-17720058)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/error-1529/#post-14437481)
 * I apologize for the late reply, but I have good faith in exchange for your patience!
   Available new version (1.38) in which:
 * Add WordPress Users: The Schedule Users page has the option to select a group
   of WordPress users and (or all users) to add users.
 * During an upgrade, months stepping: Now indicates that it is still working in
   the background and turns off the month step buttons.
 * Please remember to [appreciate the plugin](https://wordpress.org/support/plugin/shift-schedule/reviews/)!
 *  Thread Starter [massimosentuti](https://wordpress.org/support/users/massimosentuti/)
 * (@massimosentuti)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/error-1529/#post-14442033)
 * Hi Dovi,
    I really appreciate the work you have done on adding users, however
   in the list of all users there is an anomaly in the display both of the categories
   on the right and in the space at the top and at the bottom of the screen. To 
   collaborate and share some ideas, I solved the shift management by appointing
   5 administrators to whom I have obscured all the wordpress menus except the “
   shift schedule” management through the “adminimize” plugin. Then I will try to
   block the relative category for each of them. By

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

The topic ‘Error’ is closed to new replies.

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

 * 8 replies
 * 2 participants
 * Last reply from: [massimosentuti](https://wordpress.org/support/users/massimosentuti/)
 * Last activity: [5 years, 1 month ago](https://wordpress.org/support/topic/error-1529/#post-14442033)
 * Status: resolved