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
Do you have any hints how to move forward on this?