Support » Plugin: WC Marketplace » PHP7: DC_Widget_Quick_Info_Widget has a deprecated constructor

  • Resolved cronwerk

    (@cronwerk)


    After I upgraded my php5.6 to php7.0.17 the message in my debug.log appeared:

    PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; DC_Widget_Quick_Info_Widget has a deprecated constructor in …/wp-content/plugins/dc-woocommerce-multi-vendor/classes/widgets/class-wcmp-widget-vendor-quick-info.php on line 14

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author WC Marketplace

    (@dualcube)

    @cronwerk Apology for the inconvenience. This is a bug and we would fix it in our next update.

    Regards,
    Moumita

    You are welcome 🙂

    It’s not your bug and is due to new future PHP7.0 version. They always disallow something.
    I found one more future PHP7.0 ban:

    PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; DC_Widget_Vendor_List has a deprecated constructor in …/wp-content/plugins/dc-woocommerce-multi-vendor/classes/widgets/class-wcmp-widget-vendor-list.php on line 14

    Sorry 🙂

    Plugin Author WC Marketplace

    (@dualcube)

    @cronwerk Don’t apology please:-)

    I have forwarded this to our development team.

    And Thank you for this information. We really appreciate this.

    Regards,
    Moumita

    You are welcome 🙂
    And I am sorry again – I don’t know how to delete my message. I understood too late that the PHP Notice may be due to process of site’s moving to SSL 🙁 :
    This appeared earlier 1-2 times and now appeared while moving site to https. And after site was moved it disappeared.
    Never mind, I suppose.

    PHP Notice: Undefined index: post_type in …/wp-content/plugins/dc-woocommerce-multi-vendor/classes/class-wcmp-post-commission.php on line 700

    Good lucks!

    • This reply was modified 2 years, 1 month ago by  cronwerk.
    Plugin Author WC Marketplace

    (@dualcube)

    Previously, This is a bug as we haven’t updated the plugin according to PHP 7.
    In the latest update PHP 4 constructors are depreciated which why this issue is heppening.

    We will fix this issue in the next update.

    Regards,
    Moumita

    Thank you!

    Lucks!

    Plugin Author WC Marketplace

    (@dualcube)

    As soon as we will release the update I will let you know.

    Regards,
    Moumita

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘PHP7: DC_Widget_Quick_Info_Widget has a deprecated constructor’ is closed to new replies.