bredares
Forum Replies Created
Viewing 2 replies - 1 through 2 (of 2 total)
-
Testing environement
- PHP: 8.3.2
- WP: 6.4.4
- WPS Hide Login: Version 1.9.16.1
- No page builder
- Lot of plugins
- Handmade theme
Getting this warning:
NOTICE: PHP message: PHP Warning: Private methods cannot be final as they are never overridden by other classes in /var/www/.../plugins/wps-hide-login/classes/plugin.php on line 6
Consequences
This generates a large number of alerts on a site with a large audience, and can ultimately lead to performance problems. What’s more, this flood of notices hinders the readability of other logs.
Example log
In the example log below, you can see that this notice is sent 19 times in 13 seconds, including several times in a single second.
[14-Jun-2024 09:15:11] WARNING: [pool www] child 647880 said into stderr: "NOTICE: PHP message: PHP Warning: Private methods cannot be final as they are never overridden by other classes in /var/www/.../plugins/wps-hide-login/classes/plugin.php on line 6"
- - 14/Jun/2024:09:14:24 +0000 "GET /index.php" 200
- - 14/Jun/2024:09:15:11 +0000 "POST /index.php" 200
- - 14/Jun/2024:09:14:38 +0000 "GET /index.php" 200
- - 14/Jun/2024:09:15:12 +0000 "GET /index.php" 200
- - 14/Jun/2024:09:15:10 +0000 "GET /index.php" 200
[14-Jun-2024 09:15:13] WARNING: [pool www] child 647553 said into stderr: "NOTICE: PHP message: PHP Warning: Private methods cannot be final as they are never overridden by other classes in /var/www/.../plugins/wps-hide-login/classes/plugin.php on line 6"
- - 14/Jun/2024:09:15:13 +0000 "GET /index.php" 301
- - 14/Jun/2024:09:15:13 +0000 "GET /index.php" 200
[14-Jun-2024 09:15:14] WARNING: [pool www] child 647746 said into stderr: "NOTICE: PHP message: PHP Warning: Private methods cannot be final as they are never overridden by other classes in /var/www/.../plugins/wps-hide-login/classes/plugin.php on line 6"
[14-Jun-2024 09:15:14] WARNING: [pool www] child 647585 said into stderr: "NOTICE: PHP message: PHP Warning: Private methods cannot be final as they are never overridden by other classes in /var/www/.../plugins/wps-hide-login/classes/plugin.php on line 6"
- - 14/Jun/2024:09:15:14 +0000 "GET /index.php" 404
- - 14/Jun/2024:09:15:14 +0000 "GET /index.php" 200
[14-Jun-2024 09:15:14] WARNING: [pool www] child 647649 said into stderr: "NOTICE: PHP message: PHP Warning: Private methods cannot be final as they are never overridden by other classes in /var/www/.../plugins/wps-hide-login/classes/plugin.php on line 6"
- - 14/Jun/2024:09:15:14 +0000 "GET /index.php" 200
[14-Jun-2024 09:15:15] WARNING: [pool www] child 647525 said into stderr: "NOTICE: PHP message: PHP Warning: Private methods cannot be final as they are never overridden by other classes in /var/www/.../plugins/wps-hide-login/classes/plugin.php on line 6"
[14-Jun-2024 09:15:15] WARNING: [pool www] child 647550 said into stderr: "NOTICE: PHP message: PHP Warning: Private methods cannot be final as they are never overridden by other classes in /var/www/.../plugins/wps-hide-login/classes/plugin.php on line 6"
- - 14/Jun/2024:09:15:15 +0000 "GET /index.php" 200
- - 14/Jun/2024:09:15:14 +0000 "GET /index.php" 200
- - 14/Jun/2024:09:15:14 +0000 "GET /index.php" 200
- - 14/Jun/2024:09:15:15 +0000 "GET /index.php" 200
- - 14/Jun/2024:09:15:15 +0000 "GET /index.php" 200
[14-Jun-2024 09:15:16] WARNING: [pool www] child 647810 said into stderr: "NOTICE: PHP message: PHP Warning: Private methods cannot be final as they are never overridden by other classes in /var/www/.../plugins/wps-hide-login/classes/plugin.php on line 6"
- - 14/Jun/2024:09:15:16 +0000 "GET /index.php" 301
- - 14/Jun/2024:09:15:16 +0000 "GET /index.php" 200
- - 14/Jun/2024:09:15:18 +0000 "GET /index.php" 200
- - 14/Jun/2024:09:15:18 +0000 "GET /index.php" 200
- - 14/Jun/2024:09:15:18 +0000 "GET /index.php" 200
[14-Jun-2024 09:15:19] WARNING: [pool www] child 647934 said into stderr: "NOTICE: PHP message: PHP Warning: Private methods cannot be final as they are never overridden by other classes in /var/www/.../plugins/wps-hide-login/classes/plugin.php on line 6"
- - 14/Jun/2024:09:15:19 +0000 "GET /index.php" 200
[14-Jun-2024 09:15:20] WARNING: [pool www] child 647959 said into stderr: "NOTICE: PHP message: PHP Warning: Private methods cannot be final as they are never overridden by other classes in /var/www/.../plugins/wps-hide-login/classes/plugin.php on line 6"
- - 14/Jun/2024:09:15:19 +0000 "GET /index.php" 200
- - 14/Jun/2024:09:15:20 +0000 "GET /index.php" 200
[14-Jun-2024 09:15:20] WARNING: [pool www] child 647635 said into stderr: "NOTICE: PHP message: PHP Warning: Private methods cannot be final as they are never overridden by other classes in /var/www/.../plugins/wps-hide-login/classes/plugin.php on line 6"
- - 14/Jun/2024:09:15:20 +0000 "GET /index.php" 200
- - 14/Jun/2024:09:15:20 +0000 "GET /index.php" 200
[14-Jun-2024 09:15:21] WARNING: [pool www] child 647451 said into stderr: "NOTICE: PHP message: PHP Warning: Private methods cannot be final as they are never overridden by other classes in /var/www/.../plugins/wps-hide-login/classes/plugin.php on line 6"
[14-Jun-2024 09:15:21] WARNING: [pool www] child 648031 said into stderr: "NOTICE: PHP message: PHP Warning: Private methods cannot be final as they are never overridden by other classes in /var/www/.../plugins/wps-hide-login/classes/plugin.php on line 6"
- - 14/Jun/2024:09:15:21 +0000 "GET /index.php" 200
[14-Jun-2024 09:15:22] WARNING: [pool www] child 647878 said into stderr: "NOTICE: PHP message: PHP Warning: Private methods cannot be final as they are never overridden by other classes in /var/www/.../plugins/wps-hide-login/classes/plugin.php on line 6"
- - 14/Jun/2024:09:15:21 +0000 "GET /index.php" 200
- - 14/Jun/2024:09:15:21 +0000 "GET /index.php" 200
[14-Jun-2024 09:15:22] WARNING: [pool www] child 647679 said into stderr: "NOTICE: PHP message: PHP Warning: Private methods cannot be final as they are never overridden by other classes in /var/www/.../plugins/wps-hide-login/classes/plugin.php on line 6"
- - 14/Jun/2024:09:15:22 +0000 "POST /index.php" 200
[14-Jun-2024 09:15:23] WARNING: [pool www] child 647530 said into stderr: "NOTICE: PHP message: PHP Warning: Private methods cannot be final as they are never overridden by other classes in /var/www/.../plugins/wps-hide-login/classes/plugin.php on line 6"
- - 14/Jun/2024:09:15:23 +0000 "POST /index.php" 200
[14-Jun-2024 09:15:23] WARNING: [pool www] child 647524 said into stderr: "NOTICE: PHP message: PHP Warning: Private methods cannot be final as they are never overridden by other classes in /var/www/.../plugins/wps-hide-login/classes/plugin.php on line 6"
- - 14/Jun/2024:09:15:23 +0000 "GET /index.php" 200
[14-Jun-2024 09:15:23] WARNING: [pool www] child 647518 said into stderr: "NOTICE: PHP message: PHP Warning: Private methods cannot be final as they are never overridden by other classes in /var/www/.../plugins/wps-hide-login/classes/plugin.php on line 6"
- - 14/Jun/2024:09:15:23 +0000 "GET /index.php" 404
- - 14/Jun/2024:09:15:23 +0000 "GET /index.php" 404
- - 14/Jun/2024:09:15:23 +0000 "GET /index.php" 200
- - 14/Jun/2024:09:15:23 +0000 "GET /index.php" 200
[14-Jun-2024 09:15:24] WARNING: [pool www] child 647727 said into stderr: "NOTICE: PHP message: PHP Warning: Private methods cannot be final as they are never overridden by other classes in /var/www/.../plugins/wps-hide-login/classes/plugin.php on line 6"Proposal
In
wps-hide-login/classes/singleton.php
file to line 37, removefinal
keyword.Thank you in advance for resolving this.
Forum: Plugins
In reply to: [WPS Hide Login] 404 redirect on multi-site subdomain installThanks to you,
great plugin,
great job,
great support … just well done!
Viewing 2 replies - 1 through 2 (of 2 total)