• Resolved jjmullarkey

    (@jjmullarkey)


    Hello

    I’m having a problem with this plugin as the fonts just wont show up. It all worked well on the development version here
    https://mediawhore.me.uk/blog/

    However I have now moved it over to the live site and as you can see the fonts wont display.
    https://www.rosscasswell.co.uk/

    I am using the latest WP version and I originally used version 0.9.1 but also upgraded to the latest version and also had the same problem.
    These two folders are both write enabled as you suggested
    wp-content/uploads/fonts/
    wp-content/cache/anyfont

    The hosting has PHP5 and GD image installed – here is what the hosting company have said:
    To confirmed the GD is installed here is the version information
    GD Support enabled
    GD Version bundled (2.0.34 compatible)
    FreeType Support enabled
    FreeType Linkage with freetype
    FreeType Version 2.1.9
    GIF Read Support enabled
    GIF Create Support enabled
    JPG Support enabled
    PNG Support enabled
    WBMP Support enabled
    XBM Support enabled

    The fonts don’t preview in the style manager part as well as on the live page

    Any suggestions at all would be greatly appreciated?!

    PS – I really like this plugin btw

    Thanks

    https://www.ads-software.com/extend/plugins/anyfont/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi,

    Images on your live site are returning a 404 and I noticed you dont have permalinks enabled, so the problem here is most likely one of the following 2 issues…
    AnyFont was unable to edit your .htaccess file(which should cause a warning message to display) or your host does not support mod_rewrite and/or allow overrides.

    First check the .htaccess file located in the document root and make sure the following exists right at the top of the file:

    # BEGIN AnyFont
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^images/(.*)\.png$ /wp-content/plugins/anyfont/img.php [L]
    </IfModule>
    
    # END AnyFont

    If .htaccess does exist and the AnyFont section is in there, contact your host and ask them if the mod_rewrite module for PHP is installed and if “AllowOverride FileInfo” is set for your site.

    Enjoy AnyFont! ??

    – Ryan

    Thread Starter jjmullarkey

    (@jjmullarkey)

    Hi Ryan

    Thanks for the swift reply. I have managed to sort things out. Just so you know as I’m sure this may crop up again – .htaccess was fine but the server is running Zeus rather than Apache. The hosting company (namesco) were crap and told me “we do not support wordpress” when I asked what the Apache settings were as you suggested.

    The permalinks weren’t working also (they were inserting “index.php” at the start of every perm structure) so I guessed that what you said about the rewirte mod was the way to go. I found this really good post which basically gave me the zeus code which I put in a rewite.script document and uploaded to the route folder and things started working.
    https://www.adamchristie.co.uk/wordpress/seo-friendly-wordpress-urls-on-namesco-zeus-servers/

    The fonts are in a slightly different position than on the development blog – blog name is partially obscured – but I will tweak using CSS.

    Thanks for your help and great plugin.

    JJ

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: AnyFont] Can’t understand why fonts wont show’ is closed to new replies.