Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #1223893

    Hello.
    Theme throws the following error.

    Notice: The called constructor method for WP-Widget in avia_customcptbox is deprecated since version 4.3.0! Use _construct()

    #1223982

    Hey cacvaquero,

    Where can we see and reproduce this problem?

    Best regards,
    Rikard

    #1224155

    Hello.
    Thanks for the response.
    The error is thrown when going to the login page of the wordpress dashboard.
    login url: https://staging.centralaz.edu/wp-login.php?saml_sso=false

    To bypass the error to be able to login, I had to set this condition in the “functions.php” file to “true” in the conditional arguments.

    if ( WP_DEBUG && apply_filters( ‘deprecated_constructor_trigger_error’, false ) ) {

    #1224202

    Hi cacvaquero,

    I checked the latest versions of Enfold and avia_customcptbox doesn’t exist anymore.
    Do you have a child theme that uses this code? if not, Please post us your login credentials (in the “private data” field), so we can take a look at your backend.

    1. Install and activate ” Temporary Login Without Password “.
    2. Go to ” Users > Temporary Logins ” on the left-side menu.
    3. Click ” Create New “.
    4. Add the email address for the account ( you can use (Email address hidden if logged out) ), as well as the ” Role ” making that the highest possible and the expiry about four days
      ( to be sure that we have enough time to debug ).
    5. Click ” Submit “.
    6. You’ll now have a temporary account. Please provide us here in the private section the URL, so we can login and help you out.

    When your issue is fixed, you can always remove the plugin!
    If you prefer to not use the plugin, you can manually create an admin user and post the login credentials in the “private data” field.

    Best regards,
    Nikko

    #1226926
    This reply has been marked as private.
    #1227162

    Hi cacvaquero,

    Thanks for giving us admin access.
    This function is not in Enfold but was defined in your child theme’s functions.php (line 326-346):

    add_action('after_setup_theme','avia_load_additional_widget');
    function avia_load_additional_widget()
    {
        if (!class_exists('avia_customcptbox'))
        {
            class avia_customcptbox extends avia_newsbox
            {
                function avia_customcptbox()
                {
                    $this->avia_term = 'news-announcements';
                    $this->avia_post_type = 'news-announcements';
                    $this->avia_new_query = ''; //set a custom query here
                    $widget_ops = array('classname' => 'newsbox', 'description' => 'A Sidebar widget to display latest News & Announcements entries in your sidebar' );
    
                    $this->WP_Widget( 'customcptbox', THEMENAME.' News & Announcements', $widget_ops );
                }
            }
    
            register_widget( 'avia_customcptbox' );
        }
    }

    I believe the developer who added this code should be able to help you with this.
    Best regards,
    Nikko

    #1227294
    This reply has been marked as private.
    #1227380

    Hi cacvaquero,

    We’re glad that we could help :)
    Thanks for using Enfold and have a great day!

    Best regards,
    Nikko

Viewing 8 posts - 1 through 8 (of 8 total)
  • The topic ‘avia_customcptbox deprecated’ is closed to new replies.