PHP 8+ plugin breaks site
-
On PHP 7.4 i get the following errors :
Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; adrotate_widgets has a deprecated constructor in /home/user/domains/site.xyz/public_html/wp-content/plugins/adrotate-pro/adrotate-widget.php on line 20
Deprecated: Function create_function() is deprecated in /home/user/domains/site.xyz/public_html/wp-content/plugins/adrotate-pro/adrotate.php on line 59
But if i switch to PHP 8+ (8.1) i get these errors and site breaks :Deprecated: Optional parameter $group declared before required parameter $responsive is implicitly treated as a required parameter in /home/user/domains/site.xyz/public_html/wp-content/plugins/adrotate-pro/adrotate-output.php on line 540
Fatal error: Uncaught Error: Call to undefined function create_function() in /home/user/domains/site.xyz/public_html/wp-content/plugins/adrotate-pro/adrotate.php:59 Stack trace: #0 /home/user/domains/site.xyz/public_html/wp-settings.php(517): include_once() #1 /home/user/domains/site.xyz/public_html/wp-config.php(123): require_once('/home/user...') #2 /home/user/domains/site.xyz/public_html/wp-load.php(50): require_once('/home/user...') #3 /home/user/domains/site.xyz/public_html/wp-admin/admin.php(34): require_once('/home/user...') #4 /home/user/domains/site.xyz/public_html/wp-admin/index.php(10): require_once('/home/user...') #5 {main} thrown in /home/user/domains/site.xyz/public_html/wp-content/plugins/adrotate-pro/adrotate.php on line 59
This needs to be fixed. Best regards !
- You must be logged in to reply to this topic.