Support » Theme: Eightmedi Lite » Deprecated Functions in PHP 7.2

  • Resolved Carival

    (@carival)


    Hi there,

    There are two deprecated functions warnings on my wordpress site. These are:

    Deprecated: Function create_function() is deprecated in /home/gom60/web/gomalave.com.ve/public_html/wp-content/themes/eightmedi-lite/inc/eightmedi-functions.php on line 343

    Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/gom60/web/gomalave.com.ve/public_html/wp-content/plugins/js_composer/include/classes/core/class-vc-mapper.php on line 111

    I’m using your theme (v 2.0.0) with a child Theme, in WordPress 4.9.6.

    Please, we need a fix for these warnings.

    Thanks in advanced.

    Carlos A.

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Theme Author 8Degree Themes

    (@8degreethemes)

    Hi There,

    This issue will be solved in new version update or for now you can do as below to fix it:
    file:
    wp-content/themes/eightmedi-lite/inc/eightmedi-functions.php on line 343

    Replace:
    add_filter( 'loop_shop_per_page', create_function( '$cols', 'return 8;' ), 20 );

    with this:

    add_filter( 'loop_shop_per_page', function(){
    		$cols = 4; 
    		return $cols;
    	});

    Thanks!

Viewing 1 replies (of 1 total)
  • The topic ‘Deprecated Functions in PHP 7.2’ is closed to new replies.