I have been trying to install Moodle 4.1 from scratch for my institution. My domain is hosted on godaddy.com. I have tried two methods:
1. Method 1: Installing it in a subdomain (moodle.domain.com)
2. Method 2: Installing it in a subfolder on main domain (domain.com/moodle)
I am failing in both the methods, each with its unique error.
In Method 1: Everytime the installation reaches the last stage, it gives me an error that says "Your session has most likely timed out. Please login again." Clicking on continue button does not help, as it keeps cycling back to the page where I have to enter admin password for the first time to complete setting up the moodle site. When I request for more information, it says "error/moodle/invalidsesskey" and leads me to this page: https://docs.moodle.org/20/en/error/moodle/invalidsesskey
In Method 2: The installation is able to complete properly, and I am able to login into the Moodle site. However, a pop-up with "Undefined" keeps coming up whenever I try to go to site-edit mode. And subsequently, whenever I try to click on "Add new activity or resource" for any new course, nothing happens. See attached screenshot of the "Undefined" pop-up.
Please suggest how to proceed here. Also, any suggestions on whether I should use sub-domain or sub-directory will also be helpful. In my opinion, both ought to be the same thing in Godaddy because ultimately, the sub-domain points to a sub-directory in the public_html folder of main domain.
very incidentally, I had succeeded installing Moodle 4.1 just one week ago in sub-domain. However, when I had installed a few plugins, I had been plagued with the undefined pop-ups even at that time, and had ended up re-installing moodle with a hope to fix the issue.