Can't edit admin user or add new user

Posted In Wave
  • simon-egli 2 months ago
    Fresh installation of Wave.
    If I try to rename the admin user from "Wave Admin" to "Admin" I get an "Call to a member function toJson() on null" error. Same if I try to manually add a new user. Any idea?
    

    Fresh installation of Wave. If I try to rename the admin user from "Wave Admin" to "Admin" I get an "Call to a member function toJson() on null" error. Same if I try to manually add a new user. Any idea?

  • peter-prinsloo 2 months ago
    Same issue here. I had to implement the below which worked, however I would like to understand what caused it.
    
    add code in App\User
    
    public function setSettingsAttribute($value) { $this->attributes['settings'] = $value ? $value->toJson() : null; }
    
    And in /admin/bread/users/edit (Users BREAD) Model name: App\User
    
    Reference: https://github.com/the-control-group/voyager/issues/4082

    Same issue here. I had to implement the below which worked, however I would like to understand what caused it.

    add code in App\User

    public function setSettingsAttribute($value) { $this->attributes['settings'] = $value ? $value->toJson() : null; }

    And in /admin/bread/users/edit (Users BREAD) Model name: App\User

    Reference: https://github.com/the-control-group/voyager/issues/4082

Please login or signup to leave a response.

Login

or Sign Up

Sign Up

or Login
×
tnylea
Cheers Friend!

I'm Tony, the creator of this site. I'm trying to increase my twitter following. Want to follow me?

Follow @tnylea If not, no worries :)