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

  • Resolved 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/ on line 343

    Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/gom60/web/ 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


    Hi There,

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

    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;


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