• the full error message is below

    The called constructor method for WP_Widget in GFWidget is deprecated since version 4.3.0! Use
    __construct()
    I have my site saved on my desktop. I cannot log into my WP dashboard.

    how do I fix this?

    The page I need help with: [log in to see the link]

Viewing 10 replies - 1 through 10 (of 10 total)
  • Moderator t-p

    (@t-p)

    What did you do before you got this error?

    Thread Starter triq

    (@triq)

    nothing…I failed to update the plugin I believe.
    now I cannot login to the dashboard

    Moderator t-p

    (@t-p)

    Try manually resetting your plugins (no Dashboard access required). If that resolves the issue, reactivate each one individually until you find the cause.

    If that does not resolve the issue, access your server via SFTP or FTP, or a file manager in your hosting account’s control panel, navigate to /wp-content/themes/ and rename the directory of your currently active theme. This will force the default theme to activate and hopefully rule-out a theme-specific issue (theme functions can interfere like plugins).

    Hi @triq,
    first of all check if a new versione of GFWidget is avalable; that should fix this issue.
    If not, go to your plugin editor for GFWidget (plugins, editor) and change the following:
    $this->WP_Widget(
    to
    parent::__construct(

    This issue is related to a deprecated use of PHP class constructors since v4.3.0 as well explained here: https://mainwp.com/notice-the-called-constructor-method-for-wp_widget-is-deprecated-since-version-4-3-0-use-__construct/

    Thread Starter triq

    (@triq)

    Thank you. @lucagrandicelli.
    I cannot get into the wp dashboard, so I can’t get to my plugin editor

    Go into your site via FTP or your hosting control panel’s file manager. Find the plugin’s directory and rename it temporarily by adding 1234 to the end of the name.

    That will kill that plugin without hurting anything… or at least anything else. Now you should be able to get into the dashboard and fix everything. You’ll probably be able to rename that plugin directory back once you get in (again via the file manager or FTP). You should then be able to update the plugin if an update is available.

    Thread Starter triq

    (@triq)

    You all rock!…@t-p, @lucagrandicelli, @jnashhawkins
    I did everything you all suggested and it is pretty much all taken care of..
    My site had been hacked and broke…now I just need to get the mobile compatible up and going again…
    Thanks, I am able to log in and update all.
    T

    @triq you’re welcome.

    Hi there. I’m new to this so please forgive me if this is in the wrong place.
    I need help with a theme. Since One.com did their update my website hasn’t worked properly. I have managed to get back in to the dash borad and updated everything and my page is now visible again however there is a lot of technical information behind my theme and my site is not working correctly.
    Any help would be much appreciated
    http://www.beautybykrystina.co.uk

    Hi @beautybykrystina,
    you should open a new ticket for this issue, under the “fixing WordPress” forum.

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

The topic ‘The called constructor method for WP_Widget in GFWidget deprecated’ is closed to new replies.