Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

User without usergroup throws PHP fatal error: Call to member function getMany() on a non-object #40

Open
pepebe opened this issue May 13, 2016 · 4 comments
Labels

Comments

@pepebe
Copy link

pepebe commented May 13, 2016

I've just installed quickstart Buttons on artmetropol.tv.

Adding the default widget to the dashboard results in an error 500 for the dashboard page.

[Fri May 13 09:53:28 2016] [error] [client 217.236.176.172] PHP Fatal error: Call to a member function getMany() on a non-object in /home/www/web1/html/core/components/quickstartbuttons/model/quickstartbuttons/dashboardwidget.class.php on line 58, referer: https://example.com/manager/?a=system/dashboards

I had a quick look at the widget settings, but I can't see anything odd.

dashboardwidget.class.php also doesn't look odd.
#58 $buttons = $set->getMany('Button', $c);
#33 $set = $this->getActiveSet();

Cheers

Patrick


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

@Mark-H
Copy link
Member

Mark-H commented May 13, 2016

Interesting error, you did configure a set with buttons in the component?

@pepebe
Copy link
Author

pepebe commented May 13, 2016

No, just a virgin install and then I tried to use the default button as a test ride.

@pepebe
Copy link
Author

pepebe commented May 13, 2016

I'll try to reproduce this error on another 2.5 site and let you know what happens.

@Mark-H
Copy link
Member

Mark-H commented Jun 30, 2016

This is actually an issue where the user is not attached to a user group, and insufficient error handling in QSB to account for that.

@Mark-H Mark-H changed the title Adding qsb to 2.5.0 causes an error 500. User without usergroup throws PHP fatal error: Call to member function getMany() on a non-object Jun 30, 2016
@Mark-H Mark-H added the bug label Jun 30, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants