Eroare "Function create_function() is deprecated" în WordPress
Am primit o eroare după actualizarea versiunii PHP la 7.2
Deprecated: Function create_function() is deprecated in /customers/3/6/9/vakantiewoning-in-zuid-frankrijk.be/httpd.www/wp-content/themes/Tigerdesign/inc/init.php on line 22
Warning: session_start(): Cannot start session when headers already sent in /customers/3/6/9/vakantiewoning-in-zuid-frankrijk.be/httpd.www/wp-content/plugins/unyson/framework/includes/hooks.php on line 258
Notice: woocommerce_get_page_id is deprecated since version 3.0! Use wc_get_page_id instead. in /customers/3/6/9/vakantiewoning-in-zuid-frankrijk.be/httpd.www/wp-includes/functions.php on line 3888
Notice: WC_Cart::get_cart_url is deprecated since version 2.5! Use wc_get_cart_url instead. in /customers/3/6/9/vakantiewoning-in-zuid-frankrijk.be/httpd.www/wp-includes/functions.php on line 3888

Problema se află în tema ta. Nu este compatibilă cu PHP 7.2.
În această versiune, funcția create_function
este învechită și ar trebui să folosești Funcții Anonime în loc.
De exemplu, în loc de ceva de genul:
$callback = create_function('', 'echo "'.str_replace('"', '\"', $section['desc']).'";');
Ar trebui să folosești:
$callback = function() {
echo str_replace('"', '\"', $section['desc']);
};
