• Fatal error: Uncaught Error: Call to undefined method Astra_Font_Families::font_variant_labels() in /home/bmdejo/domains/teleco.co.il/public_html/wp-content/themes/astra/inc/customizer/class-astra-customizer.php:1078 Stack trace: #0 /home/bmdejo/domains/teleco.co.il/public_html/wp-includes/class-wp-hook.php(324): Astra_Customizer->enqueue_customizer_scripts(”) #1 /home/bmdejo/domains/teleco.co.il/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array) #2 /home/bmdejo/domains/teleco.co.il/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #3 /home/bmdejo/domains/teleco.co.il/public_html/wp-admin/customize.php(123): do_action(‘customize_contr…’) #4 {main} thrown in /home/bmdejo/domains/teleco.co.il/public_html/wp-content/themes/astra/inc/customizer/class-astra-customizer.php on line 1078

    How can i solve this?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Jahid

    (@jahidhasan018)

    Hi @minhazurisnat The error you’re encountering is due to a missing method font_variant_labels() in the Astra_Font_Families class. This could be caused by a few different issues, such as a theme update not being complete, a plugin conflict, or a corrupted theme file. Here are several steps you can take to resolve this:

    1. Update the Astra Theme: Ensure you have the latest version of the Astra theme. Go to your WordPress dashboard, navigate to Appearance > Themes, and check if there’s an update available for Astra. Update if necessary.
    2. Reinstall the Astra Theme: Sometimes, theme files can get corrupted. Try reinstalling the Astra theme:
      • Go to Appearance > Themes.
      • Switch to a different theme (e.g., Twenty Twenty-One).
      • Delete the Astra theme.
      • Reinstall the Astra theme.
    3. Disable All Plugins: To check if a plugin is causing the conflict:
      • Go to Plugins > Installed Plugins.
      • Deactivate all plugins.
      • Check if the error persists. If the error is resolved, reactivate your plugins one by one to identify the conflicting plugin.
    4. Check for Custom Code: If you’ve added custom code to your theme’s functions.php file or any other part of the theme, temporarily remove it to see if it resolves the issue.
    5. Check Child Theme: If you’re using a child theme, switch back to the parent Astra theme to see if the issue is within your child theme’s customizations.
    6. Debugging: Enable WordPress debugging to get more detailed error messages:
      • Open wp-config.php in the root directory of your WordPress installation.
      • Find the line that says define('WP_DEBUG', false); and change it to define('WP_DEBUG', true); define('WP_DEBUG_LOG', true); define('WP_DEBUG_DISPLAY', false);
      • Check the debug log in wp-content/debug.log for more details.
    • This reply was modified 2 months ago by Jahid.

    Hi @minhazurisnat,

    Have you tried the things suggested by @jahidhasan018, above? Thanks for such a details step, Jahid!

    Please let us know how you go.

    Kind regards,
    Herman 😊

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.