Error in file inclues/up-general-functions.php
-
Hi!
We were recently locked out of our Dev environment, because we have debug print to screen turned on, and set to warnings not just errors.
Line 1049 of includes/up-general-functions.php checks for the value of array element 0 of $checked variable. However, 1047 sets this variable to an int() if $options[‘disable_files’] isn’t set. This threw an error to the screen, before the headers, which stopped cookies being written, which stopped users logging in.
I fixed it by changing line 1047 to read:
$checked = isset($options['disable_milestone_categories']) ? (array)$options['disable_milestone_categories'] : [0];
I hope this helps ??
- The topic ‘Error in file inclues/up-general-functions.php’ is closed to new replies.