• Resolved massimosentuti

    (@massimosentuti)


    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)

    It’s a tiny but very annoying mistake. The new version (1.36) is already available in which I have improved.

    Thread Starter massimosentuti

    (@massimosentuti)

    thanks

    Thread Starter massimosentuti

    (@massimosentuti)

    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)

    I don’t succeed in reproducing the mistake. Please send me the info@dovi42.hu address screen to see where you experience the above. Thanks!

    Anonymous User 17720058

    (@anonymized-17720058)

    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

    (@massimosentuti)

    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)

    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!

    Thread Starter massimosentuti

    (@massimosentuti)

    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.