soflyy / oxygen-bugs-and-features

Bug Reports & Feature Requests for Oxygen
https://oxygenbuilder.com/
314 stars 29 forks source link

user_role client control no-access, not working on PHP8 #3370

Open BertMammoet opened 1 year ago

BertMammoet commented 1 year ago

Can not replicate in sandbox, because sandbox is not running PHP 8.

[28-Jul-2023 15:07:35 UTC] PHP Warning: Attempt to read property "ID" on null in wp-content\plugins\oxygen\component-framework\admin\pages.php on line 1859 [28-Jul-2023 15:07:35 UTC] PHP Warning: Attempt to read property "ID" on null in wp-content\plugins\oxygen\component-framework\admin\admin.php on line 313 [28-Jul-2023 15:07:35 UTC] PHP Warning: Attempt to read property "post_type" on null in wp-content\plugins\oxygen\component-framework\admin\admin.php on line 314

Describe the bug Login with a user that has set no-access with oxygen client control, click on tools or profile page and with error_logging on you can see the above errors.

IF YOU CAN'T PROVIDE A SANDBOX REPRODUCTION: Steps required to reproduce the bug: Steps to reproduce the behavior:

  1. Set PHP version to PHP 8
  2. Add user with user-role Editor
  3. Go to oxygen client control and set Editor to no-access
  4. Turn on error_logging
  5. As editor user logged in, go to page Tools or Profile and see the errors

If you can't fill out the above information, you should not be filing a bug report. Instead, contact us via https://oxygenbuilder.com/support with the details you have and we'll investigate your issue further.

Kpudlo commented 1 year ago

Thank you for the information. These have been reported internally.