
-
AuthorPosts
-
April 7, 2014 at 4:46 pm #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 againI tried with a 3-icon file, and with a 1-icon file.
Any ideas how to find more details about the problem?
cheers,
tomekApril 8, 2014 at 7:52 am #248668Hi 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!
PeterApril 8, 2014 at 9:11 am #248703This reply has been marked as private.April 9, 2014 at 7:37 pm #249367Do you have any hints how to move forward on this?
April 10, 2014 at 7:51 am #249631Hey!
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,
PeterApril 10, 2014 at 4:07 pm #249820Dear 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,
tomekApril 11, 2014 at 3:49 am #250061 -
AuthorPosts
- The topic ‘Unable to upload additional fontello font’ is closed to new replies.