• Hi
    When I activate this plugin on
    WordPress Version 5.1.1
    PHP Version 7.2.15
    Database Server version 5.7.25

    I am getting the following warning:

    Deprecated: Function create_function() is deprecated in /var/www/html/wp-content/plugins/widget-countdown/includes/widget.php on line 385
    
    Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/wp-content/plugins/widget-countdown/includes/widget.php:385) in /var/www/html/wp-admin/includes/misc.php on line 1198
Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author wpdevart

    (@wpdevart)

    Hi dear user.

    Remove this part of code from widget.php –

    global $pagenow;
     if( $pagenow == 'widgets.php') {
    	echo '
    	<style>
    	.pro_feature{
    	font-style:italic;
    	}
    	</style>';
     }

    This should fix the issue.

    We will fix it on future updates.

    Thanks.

    Plugin Author wpdevart

    (@wpdevart)

    Hi dear user.

    Any new about the warning?

    Thanks.

    Thread Starter Carolina Nymark

    (@poena)

    It should not be up to me to fix PHP errors.

    Plugin Author wpdevart

    (@wpdevart)

    Dear user.

    We are going to update our plugin on upcoming days, so we will fix it at once. Hope for your patience.

    Thanks.

    Plugin Author wpdevart

    (@wpdevart)

    Hi dear user.

    We changed the code and updated our plugin, now everything should work correctly.

    Thanks.

    Plugin Author wpdevart

    (@wpdevart)

    Hi dear user.

    As we didn’t hear from you, then we are going to close this topic, if we have other questions then contact us again.

    Thanks.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘PHP warning on activation’ is closed to new replies.