Title: Bugfix for php 7.2
Last modified: November 8, 2019

---

# Bugfix for php 7.2

 *  [Michael Ritsch](https://wordpress.org/support/users/michaelritsch/)
 * (@michaelritsch)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/bugfix-for-php-7-2/)
 * Hi, the plugin crashes with php in version 7.2.19 because “create_function()”
   is deprecated. I replaced following lines of code to solve the problem:
 * soundcloud-is-gold/soundcloud-is-gold-widget.php
 * **replace this:**
 * `add_action( 'widgets_init', create_function( '', 'register_widget( "soundcloud_is_gold_widget");'));`
 * **with this:**
 *     ```
       add_action ( 'widgets_init', 'register_soundcloud_is_gold_widget' );
   
       function register_soundcloud_is_gold_widget() {
       	return register_widget('soundcloud_is_gold_widget');
       }
       ```
   
 * Can you please make an official update for that? Is there offizial github?

The topic ‘Bugfix for php 7.2’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/soundcloud-is-gold_e3f2f4.svg)
 * [SoundCloud Is Gold](https://wordpress.org/plugins/soundcloud-is-gold/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/soundcloud-is-gold/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/soundcloud-is-gold/)
 * [Active Topics](https://wordpress.org/support/plugin/soundcloud-is-gold/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/soundcloud-is-gold/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/soundcloud-is-gold/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [Michael Ritsch](https://wordpress.org/support/users/michaelritsch/)
 * Last activity: [6 years, 7 months ago](https://wordpress.org/support/topic/bugfix-for-php-7-2/)
 * Status: not resolved