Forum Replies Created

Viewing 5 replies - 1 through 5 (of 5 total)
  • @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.

    deweil

    (@deweil)

    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.

    deweil

    (@deweil)

    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()
            {
    deweil

    (@deweil)

    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
    In reply to: [Slideshow] PHP update
    deweil

    (@deweil)

    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.
    • This reply was modified 9 years ago by deweil. Reason: edited for clariity
Viewing 5 replies - 1 through 5 (of 5 total)