Cannot use several options on dashboard in 5.4.1

Permalink 4 users found helpful
I recently upgraded to the 5.4.1 version and now i cannot use the following:
1. users & groups
2. add functionality
3. file manager
I get following errors:

1. Users & Groups
Fatal error: Cannot redeclare class UserAttributeKey in /var/www/zmtrx.com/concrete/models/user_attributes.php on line 326

2. Add Functionality
Fatal error: Cannot make static method AttributeKey::getList() non static in class CollectionAttributeKey in /var/www/zmtrx.com/concrete/models/collection_attributes.php on line 193

3. File Manager
Fatal error: Cannot make static method AttributeKey::getList() non static in class FileAttributeKey in /var/www/zmtrx.com/concrete/models/file_attributes.php on line 241


I am also getting this error when I try to post a picture:

Fatal error: Cannot make static method AttributeKey::getList() non static in class FileAttributeKey in /var/www/zmtrx.com/concrete/models/file_attributes.php on line 241

BTW: there isn't anything on line 241. the info below is from lines:67-80.


Here is the code from the .php:
}

function getAttributeKeyID() { return $this->fakID; }

function getList() {
$db = Loader::db();
$q = "select fakID from FileAttributeKeys order by fakID asc";
$r = $db->query($q);
$la = array();
while ($row = $r->fetchRow()) {
$la[] = FileAttributeKey::get($row['fakID']);
}
return $la;
}

 
zeomatrix replied on at Permalink Reply
Well... After all that copying & pasting, I discovered that the Models folder had some extra php's in there that belonged to the previous version. To fix the problem, I made a backup of the models folder and then deleted it. Then I uploaded a fresh copy of the folder from my computer. Problem fixed!
Steff replied on at Permalink Reply
Steff
Thanks for this replay. This solved my problem.

Kind regards,
Steff
Briann replied on at Permalink Reply
This REALLY should be mentioned, when upgrading tot 5.4.1. It took me a while to find the solution.

For the rest: keep up the good work!
c5mix replied on at Permalink Reply
Solved my problem too. Thanks!
vanderbale replied on at Permalink Reply
Thanks, life saver!