-
Notifications
You must be signed in to change notification settings - Fork 132
Closed
Closed
Copy link
Description
Description of the problem
As SuperAdmin, when visiting Tools->Logs->Control Panel, and then clicking on any username link, including our own username link:
We are shown a 404: Item does not exist:
How To Reproduce
Steps to reproduce the behavior:
- Login as superadmin to the ExpressEngine dashboard
- Click on Developers -> Tools -> Logs in the left hand menu
- Under System Logs -> Logs, click on Control Panel
- Page should now show a list of users that have logged into the control panel, which includes Date logged, Site: Username, IP and action taken "Logged in", "Logged out" etc. The username is a clickable link
- Click on any username link, including your own.
- Sent to a 404 page as shown above.
- Error page URL is of the form: example.com/admin.php?/cp/myaccount&id=1&S=
Error Messages
404: Item does not exist
Sorry, we could not find the item you are trying to access in the system.
[ URL: cp/myaccount&id=1 ]
Environment Details:
- Version: 7.5.12
- PHP Version 8.2
- MariaDB Version: 10.11.11
- OS: Linux Ubuntu 24.04
- Web Server: Apache 2.4
Possible Solution
Update line 27 in ee/ExpressionEngine/View/logs/cp.php
from:
<b><?=lang('username')?>:</b> <a href="<?=ee('CP/URL')->make('myaccount', array('id' => $log->member_id))?>"><?=$log->username?></a>,
to:
<b><?=lang('username')?>:</b> <a href="<?=ee('CP/URL')->make('members/profile', array('id' => $log->member_id))?>"><?=$log->username?></a>,
Additional context
Not sure if related, we have legacy_member_templates set to 'n'
$config['legacy_member_templates'] = 'n';
Side note: There are several files in ee/ still using myaccount, if this is indeed an old url, it would be worth doing a sweep through the files to update all occurances of myaccount to members/profile.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels