Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #248275

    Hi,
    I followed the tutorial found over here http://kriesi.at/archives/enfold-version-2-3-say-hello-to-our-new-iconfont-uploader
    but am not able to install the uploaded font. I’m getting the error saying:

    Couldn’t add the font because the server didn’t respond.
    Please reload the page, then try again

    I tried with a 3-icon file, and with a 1-icon file.

    Any ideas how to find more details about the problem?

    cheers,
    tomek

    #248668

    Hi 3tuser!

    Unfortunately the “the server didn’t respond” error is very generic and doesn’t help much because it just tells us that the server stopped to process your request. Maybe the ziparchive class ist not installed – it’s a standard php class: http://www.php.net/manual/en/class.ziparchive.php and required for the font uploader. If it’s not installed/activated please contact the server administrator and ask him to activate/install it for you. If the ziparchive class is not the problem please provide a php error log which helps us to identify the problem.

    Cheers!
    Peter

    #248703
    This reply has been marked as private.
    #249367

    Do you have any hints how to move forward on this?

    #249631

    Hey!

    I think the simplexml-load-string function can’t access the uploaded font files and the server returns the 403 error ( http://en.wikipedia.org/wiki/HTTP_403 ) page instead: http://media.3tsoftwarelabs.com/media-for-errordocs/ . This error page obviously is no valid font file and thus the simplexml-load-string function can’t parse the content.

    Regards,
    Peter

    #249820

    Dear Peter,

    thank you for your hint. Our site not public yet (it has simple .htaccess protection). Your hint helped us to resolve the issue with font upload.

    We analysed the code in font-manager.class.php and noticed that the font’s svg file is being loaded via http and not via direct file access (Is there any reason to do so? The file was decompressed via direct file access anyway so there shouldn’t be any problem with reading those files directly on the server).

    We modified the font-manager.class.php as follows, this makes it work with our password protected site.

    //$response 	= wp_remote_get( $this->paths['tempurl'].$this->svg_file );
    //$response   	= wp_remote_fopen(trailingslashit($this->paths['tempurl']).$this->svg_file ); error_log(trailingslashit($this->paths['tempurl']).$this->svg_file, 0);
    $svgpath = $this->paths['tempdir']."/".$this->svg_file; $response = file_get_contents($svgpath);
    //if wordpress wasnt able to get the file which is unlikely try to fetch it old school
    //if(empty($response)) $response = file_get_contents(trailingslashit($this->paths['tempdir']).$this->svg_file );

    The modification was squeezed in like this because we didn’t want to introduce any changes to line numbering.

    Cheers,
    tomek

    #250061

    Hey!

    Glad you figured it out. Thank you for the hint. Noted. :)

    Regards,
    Ismael

Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘Unable to upload additional fontello font’ is closed to new replies.