-
AuthorPosts
-
June 18, 2020 at 10:33 pm #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()
June 19, 2020 at 8:20 am #1223982June 19, 2020 at 8:51 pm #1224155Hello.
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=falseTo 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 ) ) {
June 20, 2020 at 1:13 am #1224202Hi 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.- Install and activate ” Temporary Login Without Password “.
- Go to ” Users > Temporary Logins ” on the left-side menu.
- Click ” Create New “.
- 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 ). - Click ” Submit “.
- 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,
NikkoJune 30, 2020 at 9:31 pm #1226926This reply has been marked as private.July 1, 2020 at 9:22 am #1227162Hi 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,
NikkoJuly 1, 2020 at 5:53 pm #1227294This reply has been marked as private.July 2, 2020 at 5:46 am #1227380Hi cacvaquero,
We’re glad that we could help :)
Thanks for using Enfold and have a great day!Best regards,
Nikko -
AuthorPosts
- The topic ‘avia_customcptbox deprecated’ is closed to new replies.