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

Warning Message Reported: Deprecated: Non-static method #8884

Open
electric-socket opened this issue Oct 3, 2020 · 1 comment
Open

Warning Message Reported: Deprecated: Non-static method #8884

electric-socket opened this issue Oct 3, 2020 · 1 comment
Labels
Area: Environment Issues & PRs related to the application environment Type: Bug Bugs within the core SuiteCRM codebase Type:Invalid Issues & PRs that are deemed as not required, unrelated or incorrect

Comments

@electric-socket
Copy link

electric-socket commented Oct 3, 2020

Issue

When using the application, in "Create Role" a warning message occurs:

( ! ) Deprecated: Non-static method ACLRole::getRoleActions() should not be called statically in C:\wamp64\www\SCR\modules\ACLRoles\EditView.php on line 80

I gather the program is using features no longer supported by PHP.

Expected Behavior

The message clearly should not be happening.

Actual Behavior

No such message.

Possible Fix

Steps to Reproduce

  1. Click on "Roles" in the main menu
  2. Click on "Create Role" in the Submenu

Context

Trying to create a role

Not sure how significant this is but it detracts from the reputation of the program; someone using it would rightfully think: if it has an obvious error - even if it is trivial, or won't affect performance or functionality - what hidden errors does it have?

Your Environment

  • SuiteCRM Version used: 7.11.15
  • Browser name and version (e.g. Chrome Version 51.0.2704.63 (64-bit)): Firefox 81.0.1 (64 Bit)
  • Environment name and version (e.g. MySQL, PHP 7): According to PHPMyAdmin, " 5.7.31 - MySQL Community Server (GPL)"
    According to WAMPServer, Apache Version: 2.4.46; PHP Version: 7.3.21
  • Operating System and version (e.g Ubuntu 16.04): Windows 10 Pro 64 Bit, 10.0.19041

Stack trace is as follows:

( ! ) Deprecated: Non-static method ACLRole::getRoleActions() should not be called statically in C:\wamp64\www\SCR\modules\ACLRoles\EditView.php on line 80

1 | 0.0027 | 409352 | {main}( ) | ...\index.php:0
2 | 1.0479 | 2081312 | SugarApplication->execute( ) | ...\index.php:52
3 | 1.1269 | 2360872 | SugarController->execute( ) | ...\SugarApplication.php:113
4 | 1.1300 | 2393816 | SugarController->processView( ) | ...\SugarController.php:375
5 | 1.1696 | 2508192 | ACLRolesViewClassic->process( ) | ...\SugarController.php:435
6 | 1.2076 | 2554728 | ACLRolesViewClassic->display( ) | ...\SugarView.php:226
7 | 1.2223 | 2558024 | ACLRolesViewClassic->includeClassicFile( ) | ...\view.classic.php:37
8 | 1.2226 | 2561024 | include_once( 'C:\wamp64\www\SCR\modules\ACLRoles\EditView.php' ) | ...\SugarView.php:839

Thank you for your attention
Paul Robinson

@pgorod
Copy link
Contributor

pgorod commented Oct 4, 2020

You just need to turn off "display_errors" in your php.ini and restart XAMPP - that's standard configuration best-practice.

It's a good idea to then keep an eye on the logs for any important messages. The ones labeled DEPRECATED are meant for developers, you can safely ignore them.

@johnM2401 johnM2401 added Area: Environment Issues & PRs related to the application environment Type:Invalid Issues & PRs that are deemed as not required, unrelated or incorrect labels Oct 19, 2020
@samus-aran samus-aran added the Type: Bug Bugs within the core SuiteCRM codebase label Sep 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: Environment Issues & PRs related to the application environment Type: Bug Bugs within the core SuiteCRM codebase Type:Invalid Issues & PRs that are deemed as not required, unrelated or incorrect
Projects
None yet
Development

No branches or pull requests

4 participants