Conversation
supportHi, We just updated the plugin to the latest and suddenly all the staff is getting this error, only on the dashboard. Reports, holidays etc are working fine and showing. they just cannot see the dashboard, where they have to clock in and clock out. There has been a critical error on this website. Please check your site admin email inbox for instructions. Learn more about troubleshooting WordPress. We tried everything disabling other plugins, disabling the theme and going to default theme, increasing PHP memory, nothing works. After debugging we found these errors Warning: Undefined array key "start_date" in /var/www/vhosts/gadgetbridge.com/httpdocs/wp-content/plugins/clock-in-portal/inc/custom_function.php on line 50 Warning: Undefined array key "end_date" in /var/www/vhosts/gadgetbridge.com/httpdocs/wp-content/plugins/clock-in-portal/inc/custom_function.php on line 51 Warning: Undefined array key "start_date" in /var/www/vhosts/gadgetbridge.com/httpdocs/wp-content/plugins/clock-in-portal/inc/custom_function.php on line 57 Warning: Undefined array key "start_date" in /var/www/vhosts/gadgetbridge.com/httpdocs/wp-content/plugins/clock-in-portal/subscribers/staff-attendance.php on line 86 Warning: Undefined array key "start_date" in /var/www/vhosts/gadgetbridge.com/httpdocs/wp-content/plugins/clock-in-portal/subscribers/staff-attendance.php on line 125 Warning: Undefined array key "end_date" in /var/www/vhosts/gadgetbridge.com/httpdocs/wp-content/plugins/clock-in-portal/subscribers/staff-attendance.php on line 126 Fatal error: Uncaught TypeError: Unsupported operand types: string + int in /var/www/vhosts/gadgetbridge.com/httpdocs/wp-content/plugins/clock-in-portal/subscribers/staff-attendance.php:139 Stack trace: #0 /var/www/vhosts/gadgetbridge.com/httpdocs/wp-content/plugins/clock-in-portal/clock-in-portal.php(252): require() #1 /var/www/vhosts/gadgetbridge.com/httpdocs/wp-includes/class-wp-hook.php(307): cip_subscribers_staff_attendance_free() #2 /var/www/vhosts/gadgetbridge.com/httpdocs/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters() #3 /var/www/vhosts/gadgetbridge.com/httpdocs/wp-includes/plugin.php(476): WP_Hook->do_action() #4 /var/www/vhosts/gadgetbridge.com/httpdocs/wp-admin/admin.php(259): do_action() #5 {main} thrown in /var/www/vhosts/gadgetbridge.com/httpdocs/wp-content/plugins/clock-in-portal/subscribers/staff-attendance.php on line 139 This topic was modified 3 years, 11 months ago by m3gadeath . The page I need help with: [ log in to see the link]
Hello @m3gadeath Apologies for late reply. Do you still facing same issue.? Thanks
hi, yes we are. As soon as a user clocks in, they get this error and it does not go away till the next day. Again they press clock in then this error comes. Is your plugin compatible with PHP 8? Could that be an issue?
Hello Again I have tested on PHP8 , I did not get any error in my test environment. Kindly Try detective other plugin and then check. Thank you.
Hi, That is the first thing we did. Deactviated all other plugins too and kept this one on. yet, there was error. It went away after a week, but came back again.
Hi Apologies. I could not able to find any issue with PHP8 with my plugin. Thanks.
Hello @m3gadeath Apologies for late reply. Do you still facing same issue.? Thanks
hi, yes we are. As soon as a user clocks in, they get this error and it does not go away till the next day. Again they press clock in then this error comes. Is your plugin compatible with PHP 8? Could that be an issue?
Hello Again I have tested on PHP8 , I did not get any error in my test environment. Kindly Try detective other plugin and then check. Thank you.
Hi, That is the first thing we did. Deactviated all other plugins too and kept this one on. yet, there was error. It went away after a week, but came back again.
Hi Apologies. I could not able to find any issue with PHP8 with my plugin. Thanks.