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:
- 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.
- 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.
- 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.
- 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.
- 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.
- 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 😊