• Resolved Tom Slominski

    (@tomslominski)


    Hi,

    I’m getting some issues when running this plugin on PHP 7.2.0, mainly regarding deprecated functions. Here are the stack traces:

    ( ! ) Deprecated: Function create_function() is deprecated in /app/public/wp-content/plugins/page-scroll-to-id/includes/class-malihu-pagescroll2id-widget.php on line 58
    Call Stack
    #	Time	Memory	Function	Location
    1	0.0001	403040	{main}( )	.../index.php:0
    2	0.0008	403712	require_once( '/app/public/wp-admin/admin.php' )	.../index.php:10
    3	0.0009	404192	require_once( '/app/public/wp-load.php' )	.../admin.php:31
    4	0.0009	404928	require_once( '/app/public/wp-config.php' )	.../wp-load.php:37
    5	0.0009	409040	require_once( '/app/public/wp-settings.php' )	.../wp-config.php:101
    6	0.0668	5397256	include_once( '/app/public/wp-content/plugins/page-scroll-to-id/malihu-pagescroll2id.php' )	.../wp-settings.php:305
    7	0.0671	5434920	require_once( '/app/public/wp-content/plugins/page-scroll-to-id/includes/class-malihu-pagescroll2id-widget.php' )	.../malihu-pagescroll2id.php:1046
    
    ( ! ) Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /app/public/wp-content/plugins/page-scroll-to-id/malihu-pagescroll2id.php on line 208
    Call Stack
    #	Time	Memory	Function	Location
    1	0.0001	403040	{main}( )	.../index.php:0
    2	0.0008	403712	require_once( '/app/public/wp-admin/admin.php' )	.../index.php:10
    3	1.6129	21253936	do_action( )	.../admin.php:156
    4	1.6129	21254312	WP_Hook->do_action( )	.../plugin.php:453
    5	1.6129	21254312	WP_Hook->apply_filters( )	.../class-wp-hook.php:310
    6	1.6451	21454904	malihuPageScroll2id->add_plugin_settings( )	.../class-wp-hook.php:286
    7	1.6452	21497416	each ( )	.../malihu-pagescroll2id.php:208

    Will it be possible to have these fixed in the next release, please?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author malihu

    (@malihu)

    Hi,

    The “Deprecated function” messages are simple PHP notices that appear when debug constant is set to true in wp-config.
    Please note that these notices do not affect (backend or frontend) functionality in any way.

    These are scheduled to be fixed on the next version of the plugin.

    Thread Starter Tom Slominski

    (@tomslominski)

    Hi,

    I appreciate that. That’s good to hear, thanks 🙂

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘PHP 7.2.0 compatibility’ is closed to new replies.