class-avada-head.php Avada Theme Warnings

, , , ,

I imported a pre-built Avada website into a fresh installation of WordPress but was presented with the following warnings on the frontend when using the Avada theme.

  • Warning: Undefined array key “width” in /public_html/wp-content/themes/Avada/includes/class-avada-head.php on line 414
  • Warning: Undefined array key “height” in /public_html/wp-content/themes/Avada/includes/class-avada-head.php on line 415

I also received the following warning on the backend of WordPress.

  • Warning: Trying to access array offset on false in /home/customer/www/public_html/wp-content/themes/Avada/includes/lib/inc/redux/framework/FusionReduxCore/framework.php on line 2024

Troubleshooting the issues revealed that it may have been attributed to the SVG upload feature within the Avada theme.

I managed to clear up the issues by simply disabling and enabling the SVG upload feature. See instructions below.

 

Disable Avada SVG Upload

The instructions below will guide you in disabling the SVG upload feature within the Avada WordPress theme.

    1. Access the WordPress backend and click on Avada from the menu on the left.
    2. With the Avada vertical menu expended, select Options.
    3. In the search field enter, svg
    4. Under Performance, SVG Media Upload, set this to Disable.
    5. You may need to clear your browser and server cache.
      1. Oddly enough, you can enable the Avada SVG Upload feature (assuming you want this feature) without those warnings re-appearing.

Avada Warning class-avada-head

Enable Avada SVG Upload

The instructions below will guide you in enabling the SVG upload feature within the Avada WordPress theme.

  1. Access the WordPress backend and click on Avada from the menu on the left.
  2. With the Avada vertical menu expended, select Options.
  3. In the search field enter, svg
  4. Under Performance, SVG Media Upload, set this to Enable.
  5. You may need to clear your browser and server cache.

 

Conclusion

I hope my article on troubleshooting the Avada class-avada-head.php Warnings has helped you. I welcome your thoughts, questions or suggestions regarding this article.

You may support my work and future improvements by sending me a tip using your Brave browser or by sending me a one time donation using your credit card.

Let me know if you found any errors within my article or if I may further assist you by answering any additional questions you may have.