webstudent Posted June 20, 2021 Share Posted June 20, 2021 Hi, I get the following error and a blank page trying to print the date and time, and I can't seem to find what I did wrong: error: <br /> <b> fatal error </b>: uncaught ArgumentCountError... it seems to happen when I replace the title with the PHP script (which includes the constant) in the header. When I remove that PHP script and leave it like it was in the beginning, I get the result the in screenshot and the date and time printed look strange. Regards Yannick Link to comment Share on other sites More sharing options...
Larry Posted June 25, 2021 Share Posted June 25, 2021 Ah, your code uses `if define()` when it should be `if defined()`. That's what your error means: define() requires two arguments, the constant name and the value, but you're only providing one (because you meant to use defined()). Link to comment Share on other sites More sharing options...
Recommended Posts