Your error_log statement is incorrect and is causing the error message. You have a comma between your text and the variable that you want to write to the log, so it is treating the $updateTag
as the second parameter of the error_log command.
Try:
error_log("max updateTag: " . $updateTag, 0);
to get rid of your warning and write the contents of $updateTag
in the log