Full subject line: "Fatal error: Cannot re-assign $this in ... UMA-mysql.inc.php on line 673"
Hi,
I searched this forum, but didn't see a solution to this problem. One person had a similar issue with UMA-pgsql.inc.php, but there was no resolution there (http://sourceforge.net/forum/message.php?msg_id=3602469).
I am using this on a unix based system and if I install everything as it is, it does not work because uma/mysql/mepath.php has the contents:
.:../../conf:../../classes:
which will never work because conf and classes are at the same level as uma/mysql
Full subject line: "Fatal error: Cannot re-assign $this in ... UMA-mysql.inc.php on line 673"
Hi,
I searched this forum, but didn't see a solution to this problem. One person had a similar issue with UMA-pgsql.inc.php, but there was no resolution there (http://sourceforge.net/forum/message.php?msg_id=3602469).
I am using this on a unix based system and if I install everything as it is, it does not work because uma/mysql/mepath.php has the contents:
.:../../conf:../../classes:
which will never work because conf and classes are at the same level as uma/mysql
I changed these paths and got the following error when trying to access http://mysite.com/uma/mysql/
Fatal error: Cannot re-assign $this in /.../mysite/public/classes/UMA-mysql.inc.php on line 673
This is the relevant code... Why is this not working?
660 class user extends mObject {
661 function user($username = FALSE, $user_id = FALSE) {
662 if ($username || $user_id) {
663 $uma = new UMA();
664 $uma->connect();
665 if ($username) {
666 $sql = "SELECT * FROM uma_client WHERE username='$username'";
667 } elseif ($user_id) {
668 $sql = "SELECT * FROM uma_client WHERE id = '$user_id'";
669 }
670 $uma->query($sql);
671 $objectData = $uma->fetch();
672 if ($objectData->id) {
673 $this = $uma->loadObject($objectData, new user());
674 }
675 }
676 }