Function create_function() is deprecated when upgrade PHP version to 7.2

Omin asked 9 months ago

Hi Expert,
I will encounter the error of create_function() is deprecated on each plugins using cherry-framework package. This error message should come with PHP 7.2. Do you have any patch to resolve this issue?
 
Error message:
====================================================================================
[28-Jun-2018 06:59:11 UTC] PHP Deprecated: Function create_function() is deprecated in /home/diiaskin/public_html/wp-content/themes/francy/cherry-framework/setup.php on line 14
[28-Jun-2018 07:00:10 UTC] PHP Deprecated: Function create_function() is deprecated in /home/diiaskin/public_html/wp-content/plugins/cherry-sidebars/cherry-framework/setup.php on line 14
[28-Jun-2018 07:00:10 UTC] PHP Deprecated: Function create_function() is deprecated in /home/diiaskin/public_html/wp-content/plugins/cherry-testi/cherry-framework/setup.php on line 14
[28-Jun-2018 07:00:10 UTC] PHP Deprecated: Function create_function() is deprecated in /home/diiaskin/public_html/wp-content/plugins/power-builder/cherry-framework/setup.php on line 14
[28-Jun-2018 07:00:10 UTC] PHP Deprecated: Function create_function() is deprecated in /home/diiaskin/public_html/wp-content/plugins/power-builder/cherry-framework/setup.php on line 14
====================================================================================
 
Thanks in advance.
B.R.
Omin

8 Answers
RunePune answered 7 months ago

No answers to this? I have the same problem. 

oleg answered 6 months ago

   I have the same problem. Deprecated: Function create_function() is deprecated in /home/…/…/www/wp-content/plugins/jet-reviews/cherry-framework/setup.php on line 14

9tailed answered 6 months ago

Same here, any fix coming?

bawpcwpn answered 3 months ago

Bump on this, still an issue. 

Tim answered 3 months ago

I’m having this issue as well  
 
Cherry Framework Issue

Robson answered 2 weeks ago

I have some problem. this function will be rewiting PHP 7.2  \\\”create_function()\\\”.
Erro: PHP Deprecated: Function create_function() is deprecated in /var/www/html/wp-content/plugins/cherry-search/cherry-framework/setup.php on line 14
FUNÇÃO: 
return create_function( ”, ‘return create_function( ”, ‘ global $chery_core_version;
$path = trailingslashit( dirname( __FILE__ ) ) . \’cherry-core.php\’;
$data = get_file_data( $path, array( \’version\’ => \’Version\’ ) );
if ( isset( $data[\’version\’] ) ) { $version = $data[\’version\’]; }
$old_versions = null;
if ( null !== $chery_core_version ) { $old_versions = array_keys( $chery_core_version ); }
if ( is_array( $old_versions ) && isset( $old_versions[0] ) ) { $compare = version_compare( $old_versions[0], $version, \'<\’ );
if ( $compare ) { $chery_core_version = array(); $chery_core_version[ $version ] = $path; } } else { $chery_core_version = array(); $chery_core_version[ $version ] = $path; }’ );

Robson answered 2 weeks ago
BhumiPatel answered 1 day ago

i am also having the same issue when i update php versuion.

Your Answer

1 + 3 =