Icon font missing + Apache server error

Posted in: Newspaper
Post count: 39

[Sat Sep 12 09:53:53.204235 2015] [:error] [pid 11570] [client 66.249.65.187:62362] PHP Fatal error: Call to undefined function get_header() in /nas/wp/www/cluster-40900/xtra/wp-content/themes/Newspaper/index.php on line 6

I just put my site live yesterday at observerxtra.com

Site worked great except for a few hiccups when I launched the CDN through wpengine.com. This morning the fonts for the icons and social media have either boxes or asian characters. The error posted above came up in the logs. I’m hoping someone has a solution for me. I’m not super technically savvy. I read about solutions regarding adding code to htaccess — this apparently is a known issue. Could someone be more specific as to what and where to put new code.

Thanks in advance
Pat

Post count: 9544

You have to add a CORS instruction at your CDN for “cross domain” loading of fonts.

so you need to add this to your htaccess setting at your CDN:

# Apache config
<FilesMatch ".(eot|ttf|otf|woff)">
    Header set Access-Control-Allow-Origin "*"
</FilesMatch>

nginx

location ~* \.(eot|otf|ttf|woff)$ {
    add_header Access-Control-Allow-Origin *;
}

See the support for your CDN on how to do this.
Alternately, you can load the fonts locally for the icons.

Hope that helped. See FAQs for your CDN as they should have help on this.

  • This reply was modified 10 years by simchris.
Post count: 109

I have the same problem missing icons link

I believe the problem is in the settings when upgrading from earlier versions. A clean install works but I cannot do undo the install unless they specify where their tables and fields landed in my DB….

I’m screwed, the only option is to give ftp access, which I am working on…

Post count: 109

I solved my problem with missing icons

https://forum.tagdiv.com/topic/missing-icons-2/#post-68771

I had anasty .htaccess file in the wp-content directory preventing loading of fonts.

Viewing 4 posts - 1 through 4 (of 4 total)
The forum ‘Newspaper’ is closed to new topics and replies.