Skip to content

Error: Call to undefined method Minds\Entities\User::getName()

Summary

Cannot access group with no name... maybe a banned group?

Steps to reproduce

  1. Visit https://www.minds.com/groups/profile/974541923463208963/feed

Platform information

Happened on Chromium for me

What is the current bug behavior?

500 Error

What is the expected correct behavior?

Either should be shown an error page or redirected if the group isn't there.

Relevant logs and/or screenshots

Sentry Issue: ENGINE-DX

Error: Call to undefined method Minds\Entities\User::getName()
  File "/Core/Groups/SEO.php", line 29, in Minds\Core\Groups\SEO::Minds\Core\Groups\{closure}
    if (!$group->getName()) {
  File "[internal]", line 0, in call_user_func_array
  File "/Core/SEO/Manager.php", line 69, in Minds\Core\SEO\Manager::get
    $meta = call_user_func_array(self::$routes[$route], [array_reverse($slugs)]) ?: [];
  File "/var/www/Minds/front/dist/en/index.php", line 2, in include
    $meta = Minds\Core\SEO\Manager::get();
  File "/Core/I18n/I18n.php", line 123, in Minds\Core\I18n\I18n::serveIndex
    include($file);
...
(2 additional frame(s) were not displayed)

Possible fixes

(If you can, link to the line of code that might be responsible for the problem)

Edited by Jack Ottman