All I do is save the index.php file and get the errors. I even undid the changes I made and tried to save it after the undo and still get the messages.
thank you @Teodor that did indeed fix the error that appeared in the bottom right. I figured out the other error was because this code was somehow on the index.php file itself.