No internet connection
  1. Home
  2. Support

Plugin incompatible with certain Windows servers

By System @system2018-10-20 12:44:34.563Z2018-10-20 13:08:48.867Z

Does work on AMPPS, which appears to use Unix filepaths

reported issues by several users.

Filepaths, in particular, seem to be the issue.

Plugin needs to detect Windows servers and adjust filepath building functions accordingly.

  • 3 replies
  1. Leon Stafford @leonstafford2018-10-20 13:10:06.037Z

    attaching example export log from a Windows MAMP export, showing the malformed half Windows/Unix paths, also, the log file was generated with a .bin extension, all the more reason to store it in the database, as per other issue which will do as such.

    WP-STATIC-EXPORT-LOG.txt (12.77 kB)

    1. Leon Stafford @leonstafford2018-10-20 13:11:00.833Z

      including example export log from Windows MAMP server installation:

      [06-Jul-2018 10:06:06 UTC] PHP Warning:  fopen(C:\MAMP\htdocs\wp/wp-content/uploads/WP-STATIC-EXPORT-LOG): failed to open stream: No such file or directory in C:\MAMP\htdocs\wp\wp-content\plugins\static-html-output-plugin\library\StaticHtmlOutput.php on line 695
      [06-Jul-2018 10:06:06 UTC] PHP Warning:  stream_copy_to_stream() expects parameter 1 to be resource, boolean given in C:\MAMP\htdocs\wp\wp-content\plugins\static-html-output-plugin\library\StaticHtmlOutput.php on line 698
      [06-Jul-2018 10:06:06 UTC] PHP Warning:  rewind() expects parameter 1 to be resource, boolean given in C:\MAMP\htdocs\wp\wp-content\plugins\static-html-output-plugin\library\StaticHtmlOutput.php on line 700
      [06-Jul-2018 10:06:06 UTC] PHP Warning:  stream_copy_to_stream() expects parameter 2 to be resource, boolean given in C:\MAMP\htdocs\wp\wp-content\plugins\static-html-output-plugin\library\StaticHtmlOutput.php on line 701
      [06-Jul-2018 10:06:06 UTC] PHP Warning:  fclose() expects parameter 1 to be resource, boolean given in C:\MAMP\htdocs\wp\wp-content\plugins\static-html-output-plugin\library\StaticHtmlOutput.php on line 702
      [06-Jul-2018 10:06:07 UTC] PHP Warning:  fopen(C:\MAMP\htdocs\wp/wp-content/uploads/WP-STATIC-EXPORT-LOG): failed to open stream: No such file or directory in C:\MAMP\htdocs\wp\wp-content\plugins\static-html-output-plugin\library\StaticHtmlOutput.php on line 695
      [06-Jul-2018 10:06:07 UTC] PHP Warning:  stream_copy_to_stream() expects parameter 1 to be resource, boolean given in C:\MAMP\htdocs\wp\wp-content\plugins\static-html-output-plugin\library\StaticHtmlOutput.php on line 698
      [06-Jul-2018 10:06:07 UTC] PHP Warning:  rewind() expects parameter 1 to be resource, boolean given in C:\MAMP\htdocs\wp\wp-content\plugins\static-html-output-plugin\library\StaticHtmlOutput.php on line 700
      [06-Jul-2018 10:06:07 UTC] PHP Warning:  stream_copy_to_stream() expects parameter 2 to be resource, boolean given in C:\MAMP\htdocs\wp\wp-content\plugins\static-html-output-plugin\library\StaticHtmlOutput.php on line 701
      [06-Jul-2018 10:06:07 UTC] PHP Warning:  fclose() expects parameter 1 to be resource, boolean given in C:\MAMP\htdocs\wp\wp-content\plugins\static-html-output-plugin\library\StaticHtmlOutput.php on line 702
      [06-Jul-2018 10:06:41 UTC] PHP Warning:  symlink(): Cannot create symlink, error code(1314) in C:\MAMP\htdocs\wp\wp-content\plugins\static-html-output-plugin\library\StaticHtmlOutput.php on line 620
      [06-Jul-2018 10:06:41 UTC] PHP Warning:  rename(C:\MAMP\htdocs\wp/wp-content/uploads/wp-static-html-output-1-1530871568-grace/wp-content,C:\MAMP\htdocs\wp/wp-content/uploads/wp-static-html-output-1-1530871568-grace/contents): The system cannot find the file specified. (code: 2) in C:\MAMP\htdocs\wp\wp-content\plugins\static-html-output-plugin\library\StaticHtmlOutput.php on line 577
      [06-Jul-2018 10:06:41 UTC] PHP Warning:  rename(C:\MAMP\htdocs\wp/wp-content/uploads/wp-static-html-output-1-1530871568-grace/contents///themes,C:\MAMP\htdocs\wp/wp-content/uploads/wp-static-html-output-1-1530871568-grace/contents/ui): The system cannot find the path specified. (code: 3) in C:\MAMP\htdocs\wp\wp-content\plugins\static-html-output-plugin\library\StaticHtmlOutput.php on line 581
      [06-Jul-2018 10:06:41 UTC] PHP Warning:  rename(C:\MAMP\htdocs\wp/wp-content/uploads/wp-static-html-output-1-1530871568-grace/contents/ui/twentyseventeen,C:\MAMP\htdocs\wp/wp-content/uploads/wp-static-html-output-1-1530871568-grace/contents/ui/theme): The system cannot find the path specified. (code: 3) in C:\MAMP\htdocs\wp\wp-content\plugins\static-html-output-plugin\library\StaticHtmlOutput.php on line 582
      [06-Jul-2018 10:06:41 UTC] PHP Warning:  rename(C:\MAMP\htdocs\wp/wp-content/uploads/wp-static-html-output-1-1530871568-grace/wp-includes,C:\MAMP\htdocs\wp/wp-content/uploads/wp-static-html-output-1-1530871568-grace/inc): The system cannot find the file specified. (code: 2) in C:\MAMP\htdocs\wp\wp-content\plugins\static-html-output-plugin\library\StaticHtmlOutput.php on line 586
      [06-Jul-2018 10:06:41 UTC] PHP Warning:  scandir(C:\MAMP\htdocs\wp/wp-content/uploads/wp-static-html-output-1-1530871568-grace/wp-json/,C:\MAMP\htdocs\wp/wp-content/uploads/wp-static-html-output-1-1530871568-grace/wp-json/): The system cannot find the file specified. (code: 2) in C:\MAMP\htdocs\wp\wp-content\plugins\static-html-output-plugin\library\StaticHtmlOutput\FilesHelper.php on line 17
      [06-Jul-2018 10:06:41 UTC] PHP Warning:  scandir(C:\MAMP\htdocs\wp/wp-content/uploads/wp-static-html-output-1-1530871568-grace/wp-json/): failed to open dir: No such file or directory in C:\MAMP\htdocs\wp\wp-content\plugins\static-html-output-plugin\library\StaticHtmlOutput\FilesHelper.php on line 17
      [06-Jul-2018 10:06:41 UTC] PHP Warning:  scandir(): (errno 2): No such file or directory in C:\MAMP\htdocs\wp\wp-content\plugins\static-html-output-plugin\library\StaticHtmlOutput\FilesHelper.php on line 17
      [06-Jul-2018 10:06:41 UTC] PHP Warning:  array_diff(): Argument #1 is not an array in C:\MAMP\htdocs\wp\wp-content\plugins\static-html-output-plugin\library\StaticHtmlOutput\FilesHelper.php on line 17
      [06-Jul-2018 10:06:41 UTC] PHP Warning:  Invalid argument supplied for foreach() in C:\MAMP\htdocs\wp\wp-content\plugins\static-html-output-plugin\library\StaticHtmlOutput\FilesHelper.php on line 19
      [06-Jul-2018 10:06:41 UTC] PHP Warning:  rmdir(C:\MAMP\htdocs\wp/wp-content/uploads/wp-static-html-output-1-1530871568-grace/wp-json/): No such file or directory in C:\MAMP\htdocs\wp\wp-content\plugins\static-html-output-plugin\library\StaticHtmlOutput\FilesHelper.php on line 23
      [06-Jul-2018 13:07:30 UTC] PHP Warning:  PHP Startup: Unable to load dynamic library 'php_mysql.dll' (tried: C:\MAMP\bin\php\php7.2.1\ext\php_mysql.dll (The specified module could not be found.
      ), C:\MAMP\bin\php\php7.2.1\ext\php_php_mysql.dll.dll (The specified module could not be found.
      )) in Unknown on line 0
      [06-Jul-2018 13:07:35 UTC] PHP Warning:  PHP Startup: Unable to load dynamic library 'php_mysql.dll' (tried: C:\MAMP\bin\php\php7.2.1\ext\php_mysql.dll (The specified module could not be found.
      ), C:\MAMP\bin\php\php7.2.1\ext\php_php_mysql.dll.dll (The specified module could not be found.
      )) in Unknown on line 0
      [06-Jul-2018 13:13:19 UTC] PHP Fatal error:  Maximum execution time of 30 seconds exceeded in C:\MAMP\htdocs\wp\wp-admin\includes\class-wp-filesystem-direct.php on line 76
      [06-Jul-2018 13:16:57 UTC] PHP Fatal error:  Maximum execution time of 30 seconds exceeded in C:\MAMP\htdocs\wp\wp-includes\pluggable-deprecated.php on line 18
      [06-Jul-2018 13:17:05 UTC] PHP Fatal error:  Maximum execution time of 30 seconds exceeded in C:\MAMP\htdocs\wp\wp-includes\class-wp-roles.php on line 26
      [06-Jul-2018 13:17:06 UTC] PHP Fatal error:  Maximum execution time of 30 seconds exceeded in C:\MAMP\htdocs\wp\wp-includes\class-wp-meta-query.php on line 22
      [06-Jul-2018 13:20:45 UTC] PHP Fatal error:  Maximum execution time of 30 seconds exceeded in C:\MAMP\htdocs\wp\wp-admin\includes\import.php on line 17
      [06-Jul-2018 13:27:48 UTC] PHP Warning:  symlink(): Cannot create symlink, error code(1314) in C:\MAMP\htdocs\wp\wp-content\plugins\static-html-output-plugin\library\StaticHtmlOutput.php on line 620
      [06-Jul-2018 13:27:49 UTC] PHP Warning:  rename(C:\MAMP\htdocs\wp/wp-content/uploads/wp-static-html-output-1-1530883630-grace/wp-content,C:\MAMP\htdocs\wp/wp-content/uploads/wp-static-html-output-1-1530883630-grace/contents): The system cannot find the file specified. (code: 2) in C:\MAMP\htdocs\wp\wp-content\plugins\static-html-output-plugin\library\StaticHtmlOutput.php on line 577
      [06-Jul-2018 13:27:49 UTC] PHP Warning:  rename(C:\MAMP\htdocs\wp/wp-content/uploads/wp-static-html-output-1-1530883630-grace/contents///themes,C:\MAMP\htdocs\wp/wp-content/uploads/wp-static-html-output-1-1530883630-grace/contents/ui): The system cannot find the path specified. (code: 3) in C:\MAMP\htdocs\wp\wp-content\plugins\static-html-output-plugin\library\StaticHtmlOutput.php on line 581
      [06-Jul-2018 13:27:49 UTC] PHP Warning:  rename(C:\MAMP\htdocs\wp/wp-content/uploads/wp-static-html-output-1-1530883630-grace/contents/ui/twentyseventeen,C:\MAMP\htdocs\wp/wp-content/uploads/wp-static-html-output-1-1530883630-grace/contents/ui/theme): The system cannot find the path specified. (code: 3) in C:\MAMP\htdocs\wp\wp-content\plugins\static-html-output-plugin\library\StaticHtmlOutput.php on line 582
      [06-Jul-2018 13:27:49 UTC] PHP Warning:  rename(C:\MAMP\htdocs\wp/wp-content/uploads/wp-static-html-output-1-1530883630-grace/wp-includes,C:\MAMP\htdocs\wp/wp-content/uploads/wp-static-html-output-1-1530883630-grace/inc): The system cannot find the file specified. (code: 2) in C:\MAMP\htdocs\wp\wp-content\plugins\static-html-output-plugin\library\StaticHtmlOutput.php on line 586
      [06-Jul-2018 13:27:49 UTC] PHP Warning:  scandir(C:\MAMP\htdocs\wp/wp-content/uploads/wp-static-html-output-1-1530883630-grace/wp-json/,C:\MAMP\htdocs\wp/wp-content/uploads/wp-static-html-output-1-1530883630-grace/wp-json/): The system cannot find the file specified. (code: 2) in C:\MAMP\htdocs\wp\wp-content\plugins\static-html-output-plugin\library\StaticHtmlOutput\FilesHelper.php on line 17
      [06-Jul-2018 13:27:49 UTC] PHP Warning:  scandir(C:\MAMP\htdocs\wp/wp-content/uploads/wp-static-html-output-1-1530883630-grace/wp-json/): failed to open dir: No such file or directory in C:\MAMP\htdocs\wp\wp-content\plugins\static-html-output-plugin\library\StaticHtmlOutput\FilesHelper.php on line 17
      [06-Jul-2018 13:27:49 UTC] PHP Warning:  scandir(): (errno 2): No such file or directory in C:\MAMP\htdocs\wp\wp-content\plugins\static-html-output-plugin\library\StaticHtmlOutput\FilesHelper.php on line 17
      [06-Jul-2018 13:27:49 UTC] PHP Warning:  array_diff(): Argument #1 is not an array in C:\MAMP\htdocs\wp\wp-content\plugins\static-html-output-plugin\library\StaticHtmlOutput\FilesHelper.php on line 17
      [06-Jul-2018 13:27:49 UTC] PHP Warning:  Invalid argument supplied for foreach() in C:\MAMP\htdocs\wp\wp-content\plugins\static-html-output-plugin\library\StaticHtmlOutput\FilesHelper.php on line 19
      [06-Jul-2018 13:27:49 UTC] PHP Warning:  rmdir(C:\MAMP\htdocs\wp/wp-content/uploads/wp-static-html-output-1-1530883630-grace/wp-json/): No such file or directory in C:\MAMP\htdocs\wp\wp-content\plugins\static-html-output-plugin\library\StaticHtmlOutput\FilesHelper.php on line 23
      
      1. Leon Stafford @leonstafford2018-10-20 13:11:26.683Z

        suggestion by user:

        Use local by flywheel to build your wordpress site locally on windows or mac. It's work perfectly.