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?
ໃນການຕອບກັບຫາ Rick Jerz
Re: Installation not going beyond /user/editadvanced.php?id=2
ໂດຍ Priya Reddy -
ໃນການຕອບກັບຫາ Priya Reddy
Re: Installation not going beyond /user/editadvanced.php?id=2
ໂດຍ Rick Jerz -
ໃນການຕອບກັບຫາ Rick Jerz
Re: Installation not going beyond /user/editadvanced.php?id=2
ໂດຍ Priya Reddy -
ໃນການຕອບກັບຫາ Priya Reddy
Re: Installation not going beyond /user/editadvanced.php?id=2
ໂດຍ Ken Task -
ໃນການຕອບກັບຫາ Ken Task
Re: Installation not going beyond /user/editadvanced.php?id=2
ໂດຍ 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
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
ໃນການຕອບກັບຫາ Priya Reddy
Re: Installation not going beyond /user/editadvanced.php?id=2
ໂດຍ Ken Task -
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
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
ໃນການຕອບກັບຫາ Priya Reddy
Re: Installation not going beyond /user/editadvanced.php?id=2
ໂດຍ Ken Task -
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
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
ໃນການຕອບກັບຫາ Priya Reddy
Re: Installation not going beyond /user/editadvanced.php?id=2
ໂດຍ Ken Task -
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
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
ໃນການຕອບກັບຫາ Ken Task
Re: Installation not going beyond /user/editadvanced.php?id=2
ໂດຍ Priya Reddy -