I have just upgraded our Moodle site from 4.0.5 to 4.3.4 and now I am getting the following error:
PHP Fatal error: Uncaught Error: Call to undefined function get_local_referer() in /home/********.org/lib/setuplib.php:575
Stack trace:
#0 /home/*******org/lib/setuplib.php(363): get_exception_info(Object(Error))
#1 [internal function]: default_exception_handler(Object(Error))
#2 {main}
thrown in /home/*******org/lib/setuplib.php on line 575
I performed the same upgrade to our test Moodle site on the same server, and that went without a hitch. I have done a lot of googling today, and I cannot find an answer anywhere that solves my problem.
Any help would be greatly appreciated. Our environment is like this:
- $ uname -a
Linux ***hostname*** 4.18.0-477.15.1.lve.2.el8.x86_64 #1 SMP Wed Aug 2 10:43:45 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux - $php -v
PHP 8.0.30 (cli) (built: Mar 14 2024 19:49:15) ( NTS )
Copyright (c) The PHP Group
Zend Engine v4.0.30, Copyright (c) Zend Technologies
with Zend OPcache v8.0.30, Copyright (c), by Zend Technologies - $mysql -V
mysql Ver 15.1 Distrib 10.6.17-MariaDB, for Linux (x86_64) using readline 5.1 - LiteSpeed webserver
(Edited by Mary Cooch to remove domain name- original submission Thursday, 30 May 2024, 2:12 PM)