Title: Issues on Azure
Last modified: December 23, 2016

---

# Issues on Azure

 *  [supermango](https://wordpress.org/support/users/supermango/)
 * (@supermango)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/issues-on-azure/)
 * Hello. This plugin doesn’t work on MS Azure (Windows IIS Server).
 * I found the solution, but wanted to report it here so it could be fixed officially.
 * Problem:
    **Backslashes appear in the path**
 * This can be reproduced by installing the plugin and clicking on Generate Files.
 * php_errors.log:
 * [23-Dec-2016 19:51:46 UTC] PHP Warning:
    rename(D:\local\Temp/1482522705-eU8ikL.
   tmp,D:/local/temp/simply-static-1-1482522705-msangapu\/index.html): The filename,
   directory name, or volume label syntax is incorrect. (code: 123) in D:\home\site\
   wwwroot\wp-content\plugins\simply-static\includes\class-simply-static-url-fetcher.
   php on line 105
 * [23-Dec-2016 19:51:46 UTC] PHP Warning:
    file_get_contents(D:/local/temp/simply-
   static-1-1482522705-msangapu\/index.html): failed to open stream: No such file
   or directory in D:\home\site\wwwroot\wp-content\plugins\simply-static\includes\
   class-simply-static-url-extractor.php on line 110
 * [23-Dec-2016 19:51:46 UTC] PHP Warning:
    rename(D:\local\Temp/1482522706-Zzgn00.
   tmp,D:/local/temp/simply-static-1-1482522705-msangapu\/wp-includes/js/wp-emoji-
   release.min.js): The filename, directory name, or volume label syntax is incorrect.(
   code: 123) in D:\home\site\wwwroot\wp-content\plugins\simply-static\includes\
   class-simply-static-url-fetcher.php on line 105
 * [23-Dec-2016 19:51:46 UTC] PHP Warning:
    sha1_file(D:/local/temp/simply-static-
   1-1482522705-msangapu\/wp-includes/js/wp-emoji-release.min.js): failed to open
   stream: No such file or directory in D:\home\site\wwwroot\wp-content\plugins\
   simply-static\includes\class-simply-static-archive-creator.php on line 99
 * [23-Dec-2016 19:51:46 UTC] PHP Warning:
    copy(D:/local/temp/simply-static-1-1482522705-
   msangapu\/wp-includes/js/wp-emoji-release.min.js): failed to open stream: No 
   such file or directory in D:\home\site\wwwroot\wp-content\plugins\simply-static\
   includes\class-simply-static-archive-creator.php on line 256
 * Solution:
    In filename: class-simply-static-url-fetcher.php Function: public 
   function fetch( Simply_Static_Page $static_page )
 * Below this line of code:
 * if ( $relative_filename ) {
    $static_page->file_path = $relative_filename; $file_path
   = $this->archive_dir . $relative_filename;
 * Add the lines:
    $file_path = str_replace(‘\\/’, ‘/’, $file_path); $temp_filename
   = str_replace(‘\\/’, ‘/’, $temp_filename);

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [Scott at Code of Conduct](https://wordpress.org/support/users/codeofconduct/)
 * (@codeofconduct)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/issues-on-azure/#post-8665144)
 * Hi supermango,
 * Thanks for reporting this issue! And better yet, thank you for offering a fix.
   I’ll take a look at working this into one of the next releases of Simply Static.
 * Best,
    Scott
 *  [partiallypro](https://wordpress.org/support/users/partiallypro/)
 * (@partiallypro)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/issues-on-azure/#post-8771707)
 * You’re the man. Please add this to the next release, or have an IIS toggle that
   enables this line. Good work.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Issues on Azure’ is closed to new replies.

 * ![](https://ps.w.org/simply-static/assets/icon-256x256.png?rev=2443263)
 * [Simply Static - The Static Site Generator](https://wordpress.org/plugins/simply-static/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/simply-static/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/simply-static/)
 * [Active Topics](https://wordpress.org/support/plugin/simply-static/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/simply-static/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/simply-static/reviews/)

## Tags

 * [backslashes](https://wordpress.org/support/topic-tag/backslashes/)
 * [iis](https://wordpress.org/support/topic-tag/iis/)
 * [PHP errors](https://wordpress.org/support/topic-tag/php-errors/)
 * [warnings](https://wordpress.org/support/topic-tag/warnings/)
 * [windows](https://wordpress.org/support/topic-tag/windows/)

 * 2 replies
 * 3 participants
 * Last reply from: [partiallypro](https://wordpress.org/support/users/partiallypro/)
 * Last activity: [9 years, 3 months ago](https://wordpress.org/support/topic/issues-on-azure/#post-8771707)
 * Status: not a support question