Trying to get property of non-object in PermissionService when trying to update roles. #383
Labels
No labels
Focus: A11y
Focus: Admin/Meta
Focus: Authentication
Focus: Back-End
Focus: Database
Focus: Design & UX
Focus: Editor - Markdown
Focus: Editor - WYSIWYG
Focus: Export System
Focus: Front-End
Focus: Translations
Focus: View Customization
Is: Docs Update
Is: Enhancement
Is: Priority
Is: Security
Is: Upstream
Status
Blocked
Status
Open to discussion
Status
Out of scope
Status
Pending Validation
Type
API Request
Type
Bug Report
Type
Feature Request
Type
Happy feedback
Type
Maintenance
Type
Question
Type
Support
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
bookstack/bookstack#383
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
For Bug Reports
Expected Behavior
While updating a role or changing the permission of the user we are getting the following error
Actual Behavior
It should update the roles or permissions properly
Please find the attached log file.
laravel.txt
Related to https://github.com/BookStackApp/BookStack/issues/374
Hi @bharadwajag, Thanks for reporting and sorry you are still having issues here.
I think this may be due to how variables types are converted between the MySQL and PHP though, unfortunately, I have not yet been able to replicate the issue.
Would you be able to confirm the operating system you are running BookStack on and, If you know, the PHP-MySQL driver in use so I can fully replicate your setup?
@ssddanbrown

As you requested,
OS: Debian Jessie 8.6
Please find the attached file for PHP-MySQL drivers info
Please let us know if you need any other info that I can.
For now I've added a kludge fix by adding the above code.
@bharadwajag Sorry for my slow response on this one, I've had limited time recently. I've updated the release branch with the fix from @AbijeetP in.
This was only apparent when not using the
mysqlnddriver. Themysqlnddriver provides data in the correct type whereas other drivers do not.@ssddanbrown Just a note for this item, by default in Ubuntu 17.04, apt will pull php-mysql instead of php-mysqlnd.
Note sure how this affects things but figured I'd make a note.
@Shackelford-Arden Thanks for letting me know.
I may be wrong but from looking at this before, I think all php-mysql extensions installed on ubuntu versions that provide php7.0 and above by default (Ubuntu 16.04+) will effectively use mysqlnd by default as the old mysql driver was removed in php7.
This can be seen by running apt-show:
Take note of the last 'Provides' line above. It's installing mysqlnd which mysqli and pd-mysql are then using.
Aha! That's good to know!
Learn something new every day 👍 I wasn't aware of the "apt show" command.
Thanks @ssddanbrown ! If anything, it might be something to note in your installation instructions. I'd help, I'm not just sure how...