PHP 7.4 (anything before 8.0) has reached EOL (end of life) and will not receive security updates. I'm surprised your host allowed you to do it. See https://www.php.net/supported-versions.php .. so, you should get back on 8.x ASAP. Get yourself a decent code editor with syntax highlighting (I use VSCode with PHP extensions installed), when you paste your code in there's a clear indication that there is a syntax error. You can delete sections of the code to narrow down exactly which bit is causing the syntax error, then put the deleted bits back and fix the error. Best option is to have a local development web server so you can run the site on your own PC before putting any changed files on your main server, that's definitely something I would try to aim for, but it sounds like you're a way away from that yet .. try to find a buddy who can sit with you and work through these early pain points to get you up and running. Took me about 20 seconds to fix the ternary operator problem just from experience. Maybe send me a private message for help :)
Bookmarks