Skip to content

Error 404 when accessing member profile settomgs from CP logs as SuperAdmin #4863

@allcreatures

Description

@allcreatures

Description of the problem
As SuperAdmin, when visiting Tools->Logs->Control Panel, and then clicking on any username link, including our own username link:

Image

We are shown a 404: Item does not exist:

Image

How To Reproduce
Steps to reproduce the behavior:

  1. Login as superadmin to the ExpressEngine dashboard
  2. Click on Developers -> Tools -> Logs in the left hand menu
  3. Under System Logs -> Logs, click on Control Panel
  4. 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
  5. Click on any username link, including your own.
  6. Sent to a 404 page as shown above.
  7. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions