Title: PHP errors
Last modified: January 8, 2018

---

# PHP errors

 *  [kingbolo](https://wordpress.org/support/users/kingbolo/)
 * (@kingbolo)
 * [8 years, 4 months ago](https://wordpress.org/support/topic/php-errors-115/)
 * The plugin works but when checking debug.log I can see that it causes PHP errors:“
   Methods with the same name as their class will not be constructors in a future
   version of PHP; cr3ativ_carousel has a deprecated constructor”
 * The server runs PHP 7.1
 * Any chances that the plugin will be updated soon??

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [Saskia Teichmann](https://wordpress.org/support/users/jyria/)
 * (@jyria)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/php-errors-115/#post-10346180)
 * +1
 * php error in php 7.2.4
 * [31-May-2018 16:05:10 UTC] PHP Deprecated: Function create_function() is deprecated
   in /var/www/web737/htdocs/domain.de/wp-content/plugins/cr3ativ-carousel/cr3ativ-
   carousel-widget.php on line 135
    [31-May-2018 16:07:46 UTC] PHP Deprecated: Methods
   with the same name as their class will not be constructors in a future version
   of PHP; cr3ativ_carousel has a deprecated constructor in /var/www/web737/htdocs/
   domain.de/wp-content/plugins/cr3ativ-carousel/cr3ativ-carousel-widget.php on 
   line 3
 *  [Saskia Teichmann](https://wordpress.org/support/users/jyria/)
 * (@jyria)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/php-errors-115/#post-10346490)
 * Fixes for above php deprecated notifications:
 * go to file /wp-content/plugins/cr3ativ-carousel/cr3ativ-carousel-widget.php
    
   find line 135 and modify it like so:
 *     ```
       // register widget
       /* add_action('widgets_init', create_function('', 'return register_widget("cr3ativ_carousel");')); */
   
       // Init Simple Tags widget
       function fixphp72_cr3ativ_carousel_register_widget() {
         return register_widget("cr3ativ_carousel");
       }
         add_action( 'widgets_init', 'fixphp72_cr3ativ_carousel_register_widget' );
       ```
   
 * then scroll up to line 6 and modify it like so:
 *     ```
       	// constructor
       	function __construct() {
               parent::__construct(false, $name = __('Carousel Loop', 'cr3atcarousel') );
           }
       ```
   

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘PHP errors’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/cr3ativ-carousel_5b659b.svg)
 * [Cr3ativ Carousel](https://wordpress.org/plugins/cr3ativ-carousel/)
 * [Support Threads](https://wordpress.org/support/plugin/cr3ativ-carousel/)
 * [Active Topics](https://wordpress.org/support/plugin/cr3ativ-carousel/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/cr3ativ-carousel/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/cr3ativ-carousel/reviews/)

## Tags

 * [deprecated constructor](https://wordpress.org/support/topic-tag/deprecated-constructor/)
 * [PHP errors](https://wordpress.org/support/topic-tag/php-errors/)

 * 2 replies
 * 2 participants
 * Last reply from: [Saskia Teichmann](https://wordpress.org/support/users/jyria/)
 * Last activity: [7 years, 11 months ago](https://wordpress.org/support/topic/php-errors-115/#post-10346490)
 * Status: not resolved