Title: deweil's Replies | WordPress.org

---

# deweil

  [  ](https://wordpress.org/support/users/deweil/)

 *   [Profile](https://wordpress.org/support/users/deweil/)
 *   [Topics Started](https://wordpress.org/support/users/deweil/topics/)
 *   [Replies Created](https://wordpress.org/support/users/deweil/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/deweil/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/deweil/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/deweil/engagements/)
 *   [Favorites](https://wordpress.org/support/users/deweil/favorites/)

 Search replies:

## Forum Replies Created

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

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Slideshow] Use of deprecated PHP4 style class constructor is not supported](https://wordpress.org/support/topic/use-of-deprecated-php4-style-class-constructor-is-not-supported-2/)
 *  [deweil](https://wordpress.org/support/users/deweil/)
 * (@deweil)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/use-of-deprecated-php4-style-class-constructor-is-not-supported-2/#post-9352033)
 * [@tamarakorr](https://wordpress.org/support/users/tamarakorr/),
 *  Assuming you can edit the php files directly you can alter them to use the updated
   method. See my post above for details. Post here if you have more questions.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Slideshow] Use of deprecated PHP4 style class constructor is not supported](https://wordpress.org/support/topic/use-of-deprecated-php4-style-class-constructor-is-not-supported-2/)
 *  [deweil](https://wordpress.org/support/users/deweil/)
 * (@deweil)
 * [9 years ago](https://wordpress.org/support/topic/use-of-deprecated-php4-style-class-constructor-is-not-supported-2/#post-9042244)
 * When you said:
 * > it will break the next time there is an update, unless it’s fixed there as 
   > well
 * Did you mean next time there is an update to the plugin? If so, you are correct.
   But hopefully the author of the plugin StefanBoonstra will update that part of
   the plugin. If not, you can do it easily yourself – again.
 * Sorry for the repeated posts. It did not update the first time I submitted and
   so I reposted my response. Now I cannot delete it.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Slideshow] Use of deprecated PHP4 style class constructor is not supported](https://wordpress.org/support/topic/use-of-deprecated-php4-style-class-constructor-is-not-supported-2/)
 *  [deweil](https://wordpress.org/support/users/deweil/)
 * (@deweil)
 * [9 years ago](https://wordpress.org/support/topic/use-of-deprecated-php4-style-class-constructor-is-not-supported-2/#post-9042139)
 * This is actually an easy fix if you have access to the file in question “/wp-
   content/plugins/slideshow-jquery-image-gallery/classes/SlideshowPluginWidget.
   php”
 * Line 8 of SlideshowPluginWidget.php looks like this:
 *     ```
                function SlideshowPluginWidget()
                 {
       ```
   
 * change that to
 *     ```
                function __construct()
                 {
       ```
   
 * Mine looks like this:
 *     ```
              /**
                * Initializes the widget
                *
                * @since 1.2.0
                */
       // commented the old constructor out because it is deprecated 
       //      function SlideshowPluginWidget() 
       // add the new generic constructor name
               function __construct()
               {
       ```
   
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Slideshow] Use of deprecated PHP4 style class constructor is not supported](https://wordpress.org/support/topic/use-of-deprecated-php4-style-class-constructor-is-not-supported-2/)
 *  [deweil](https://wordpress.org/support/users/deweil/)
 * (@deweil)
 * [9 years ago](https://wordpress.org/support/topic/use-of-deprecated-php4-style-class-constructor-is-not-supported-2/#post-9042122)
 * This is because the class SlideshowPluginWidget has a deprecated constructor (
   it’s old and php does it differently now).
    This is actually an easy fix if you
   have access to the file in question “/wp-content/plugins/slideshow-jquery-image-
   gallery/classes/SlideshowPluginWidget.php”
 * Line 8 of SlideshowPluginWidget.php looks like this:
 *     ```
                function SlideshowPluginWidget()
                 {
       ```
   
 * change that to
 *     ```
                function __construct()
                 {
       ```
   
 * Mine looks like this:
 *     ```
              /**
                * Initializes the widget
                *
                * @since 1.2.0
                */
       // commented the old constructor out because it is deprecated 
       //      function SlideshowPluginWidget() 
       // add the new generic constructor name
               function __construct()
               {
       ```
   
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Slideshow] PHP update](https://wordpress.org/support/topic/php-update-3/)
 *  [deweil](https://wordpress.org/support/users/deweil/)
 * (@deweil)
 * [9 years ago](https://wordpress.org/support/topic/php-update-3/#post-9042100)
 * This is because the class SlideshowPluginWidget has a deprecated constructor (
   it’s old and php does it differently now).
    This is actually an easy fix if you
   have access to the file in question “/wp-content/plugins/slideshow-jquery-image-
   gallery/classes/SlideshowPluginWidget.php”
 * Line 8 of SlideshowPluginWidget.php looks like this:
 *     ```
                function SlideshowPluginWidget()
                 {
       ```
   
 * change that to
 *     ```
                function __construct()
                 {
       ```
   
 * Mine looks like this:
 *     ```
              /**
                * Initializes the widget
                *
                * @since 1.2.0
                */
       // commented the old constructor out because it is deprecated 
       //      function SlideshowPluginWidget() 
       // add the new generic constructor name
               function __construct()
               {
       ```
   
    -  This reply was modified 9 years ago by [deweil](https://wordpress.org/support/users/deweil/).
    -  This reply was modified 9 years ago by [deweil](https://wordpress.org/support/users/deweil/).
      Reason: edited for clariity

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