Installation not going beyond /user/editadvanced.php?id=2

Installation not going beyond /user/editadvanced.php?id=2

by Priya Reddy -
Number of replies: 11
Hi,
I am trying to install moodle on my mac. It is not going beyond the update profile screen which is where it ended up in the installation steps. I am giving the admin username password, first name, last name and email address but it just doesnt go beyond that screen nor does it show any errors. I see this error in the console " Uncaught SyntaxError: Unexpected token '<' " and I can see a lot of network calls are cancelled. Can someone help me with this?

Average of ratings: -
In reply to Priya Reddy

Re: Installation not going beyond /user/editadvanced.php?id=2

by Rick Jerz -
Picture of Particularly helpful Moodlers Picture of Testers
How are you trying to install? Are you using one of the Moodle packages? Or are you installing from scratch?
In reply to Rick Jerz

Re: Installation not going beyond /user/editadvanced.php?id=2

by Priya Reddy -
I am installing from scratch
In reply to Priya Reddy

Re: Installation not going beyond /user/editadvanced.php?id=2

by Rick Jerz -
Picture of Particularly helpful Moodlers Picture of Testers
Okay. So you are not the Moodle.org installer, or trying to use XAMPP, MAMP, or any other AMP environment. Right?
 
And what directions, if any, are you following for a Mac install of Moodle?
 
And is this Sonoma?
In reply to Rick Jerz

Re: Installation not going beyond /user/editadvanced.php?id=2

by Priya Reddy -
I installed using the command line and it installed succesfully. However when I go to the site it says error/generalexceptionmessage
In reply to Priya Reddy

Re: Installation not going beyond /user/editadvanced.php?id=2

by Rick Jerz -
Picture of Particularly helpful Moodlers Picture of Testers
Have you installed a database on your Mac? How about PHP? What versions?
In reply to Priya Reddy

Re: Installation not going beyond /user/editadvanced.php?id=2

by Ken Task -
Picture of Particularly helpful Moodlers
In config-dist.php file of code (I think in Section 7 of that file), there are lines you can add to config.php of the site for debugging.

Add those lines.   Then try to access the site again.

Come back here and share the stack trace (techie stuff) what that said.

'SoS', Ken

In reply to Ken Task

Re: Installation not going beyond /user/editadvanced.php?id=2

by Priya Reddy -
Thanks for your response. I copied over the debug lines from the config-dist.php to config.php but it still throws the generalexceptionmessage. The below stack trace I got from the PHP error logs. I redacted the folder names in the paths

PHP Fatal error: Uncaught Error: Call to undefined function clean_param() in /Users/***/Sites/***/moodle/lib/weblib.php:232
Stack trace:
#0 /Users/***/Sites/***/moodle/lib/setuplib.php(575): get_local_referer(false)
#1 /Users/***/Sites/***/moodle/lib/setuplib.php(363): get_exception_info(Object(ParseError))
#2 [internal function]: default_exception_handler(Object(ParseError))
#3 {main}
thrown in /Users/***/Sites/***/moodle/lib/weblib.php on line 232
In reply to Priya Reddy

Re: Installation not going beyond /user/editadvanced.php?id=2

by Ken Task -
Picture of Particularly helpful Moodlers
Moodle version?

https://moodledev.io/general/releases
check requirements for the version you are attempting to install.

Also assuming: apache web server?  and MySQL DB?

Line 232 * below:

 * Returns the cleaned local URL of the HTTP_REFERER less the URL query string $
 *
 * @param bool $stripquery if true, also removes the query part of the url.
 * @return string The resulting referer or empty string.
 */
function get_local_referer($stripquery = true) {
    if (isset($_SERVER['HTTP_REFERER'])) {
*        $referer = clean_param($_SERVER['HTTP_REFERER'], PARAM_LOCALURL);
        if ($stripquery) {
            return strip_querystring($referer);
        } else {
            return $referer;
        }
    } else {
        return '';
    }

So you installed via command line ... what did you give install for
wwwroot - that's a URL:  http://localhost http://IPaddressIPv4 or ?

Assuming you don't have a certificate for this install.

Also, would you mind sharing what directions you are following?

'SoS', Ken

In reply to Priya Reddy

Re: Installation not going beyond /user/editadvanced.php?id=2

by Ken Task -
Picture of Particularly helpful Moodlers
Follow up ... I see a 'Sites' directory in paths.
Are we trying to use the Mac builtin web sharing for apache?

Is the end goal in this effort to let others access the moodle from your LAN or the globe?
Or is this a tinker site?

If tinker site ... use MAMP.
https://download.moodle.org/macosx/

You might be better off using a Virtualization ... run Linux in that Virt ... no issues - cept networking.

My 2 cents!
'SoS', Ken

Average of ratings: Useful (1)
In reply to Priya Reddy

Re: Installation not going beyond /user/editadvanced.php?id=2

by Ken Task -
Picture of Particularly helpful Moodlers
You could also try using Terminal from the location of your Moodle code:

cd /path/to/moodle/code/

php admin/cli/install.php [ENTER]

That, if it finds the php-cli installed, will prompt for the same things web based install did only when setting up admin user info and password, nothing special ... plain ole text.

'SoS', Ken
In reply to Ken Task

Re: Installation not going beyond /user/editadvanced.php?id=2

by Priya Reddy -
I installed using the command line and it installed succesfully. However when I go to the site it says error/generalexceptionmessage