• Resolved iontulburedev

    (@iontulburedev)


    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 !

    • This topic was modified 5 months, 2 weeks ago by iontulburedev.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Arnan de Gans

    (@adegans)

    What version of AdRotate Pro do you have?

    Plugin Author Arnan de Gans

    (@adegans)

    While I waited for your reply about the version I checked the code. None of the errors match up with lines of code in the current version.

    So perhaps start with updating the plugin to the latest version.
    PHP8 support was added quite a while ago, and has been updated over time.

    If you’ve found something wrong with PHP8 or 8.2 that I missed and have better errors/things to look at I’ll be happy to.

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.