I get the “Couldn’t add the font because the server didn’t respond” when trying to add an icon set from Flaticon. This is my apache output:
[Thu Apr 06 02:05:37.113488 2017] [:error]
PHP Fatal error: Uncaught Error: Call to a member function attributes() on null in /var/www/mywebsite.com/html/wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/font-manager.class.php:204
Stack trace:
#0 /var/www/mywebsite.com/html/wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/font-manager.class.php(57): avia_font_manager->create_config()
#1 /var/www/mywebsite.com/html/wp-includes/class-wp-hook.php(298): avia_font_manager->add_zipped_font('')
#2 /var/www/mywebsite.com/html/wp-includes/class-wp-hook.php(323): WP_Hook->apply_filters('', Array)
#3 /var/www/mywebsite.com/html/wp-includes/plugin.php(453): WP_Hook->do_action(Array)
#4 /var/www/mywebsite.com/html/wp-admin/admin-ajax.php(91): do_action('wp_ajax_avia_aj...')
#5 {main} thrown in /var/www/mywebsite.com/html/wp-content/themes/enfold/config-templatebuilder/avia-template-builder/php/font-manager.class.php on line 204, referer: https://www.mywebsite.com/wp-admin/admin.php?page=avia
Line 204 of font-manager.class.php is:
$font_attr = $xml->defs->font->attributes();
I am uploading the standard zip from Flaticon which can be found in the private link below. Any assistance would be appreciated!
Hey Phil,
This link should help you to check if all the steps are correct: http://kriesi.at/documentation/enfold/adding-your-own-icon-fonts/
Best regards,
John Torvik