• Resolved dutuka

    (@dutuka)


    Hello,

    please add an option to generate static files without creating “simply-static-*” directory, so that i dont need to additionally move them to the target folder. Thanks.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author patrickposner

    (@patrickposner)

    Hey @dutuka,

    I’m sorry, but that makes no sense at all.

    We need the temporary file directory (wp-content/uploads/simply-static/temp-files/ to fetch and save the files.

    If you want to move the files afterward, use “Local Directory,” which does exactly that — it moves the files from the temporary directory to the configured directory.

    Skipping this step would break all the other integrations, so even given that as an option, it would cause more harm than good for 99% of the users.

    Thread Starter dutuka

    (@dutuka)

    Thank you for the explaination, i try to use “Local Directory” and get this error:

    [2024-04-04 21:06:29] Setting up
    [2024-04-04 21:06:30] Error: (1) Uncaught UnexpectedValueException: FilesystemIterator::__construct(https://sub.domain.com/s/): Failed to open directory: not implemented in /var/www/sub.domain.com/htdocs/wp-content/plugins/simply-static/src/class-ss-plugin.php:406
    Stack trace:
    #0 /var/www/sub.domain.com/htdocs/wp-content/plugins/simply-static/src/class-ss-plugin.php(406): FilesystemIterator->__construct()
    #1 /var/www/sub.domain.com/htdocs/wp-includes/class-wp-hook.php(324): Simply_Static\Plugin->maybe_clear_directory()
    #2 /var/www/sub.domain.com/htdocs/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
    #3 /var/www/sub.domain.com/htdocs/wp-includes/plugin.php(517): WP_Hook->do_action()
    #4 /var/www/sub.domain.com/htdocs/wp-content/plugins/simply-static/src/tasks/class-ss-setup-task.php(65): do_action()
    #5 /var/www/sub.domain.com/htdocs/wp-content/plugins/simply-static/src/class-ss-archive-creation-job.php(150): Simply_Static\Setup_Task->perform()
    #6 /var/www/sub.domain.com/htdocs/wp-content/plugins/simply-static/vendor/a5hleyrich/wp-background-processing/classes/wp-background-process.php(516): Simply_Static\Archive_Creation_Job->task()
    #7 /var/www/sub.domain.com/htdocs/wp-content/plugins/simply-static/vendor/a5hleyrich/wp-background-processing/classes/wp-background-process.php(333): WP_Background_Process->handle()
    #8 /var/www/sub.domain.com/htdocs/wp-includes/class-wp-hook.php(324): WP_Background_Process->maybe_handle()
    #9 /var/www/sub.domain.com/htdocs/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
    #10 /var/www/sub.domain.com//htdocs/wp-includes/plugin.php(517): WP_Hook->do_action()
    #11 /var/www/sub.domain.com//htdocs/wp-admin/admin-ajax.php(192): do_action()
    #12 {main}
      thrown in /var/www/sub.domain.com/htdocs/wp-content/plugins/simply-static/src/class-ss-plugin.php on line 406

    I dont get this error when using “Zip Archive”, only with “Local Directory”

    How can i fix this? Thanks

    • This reply was modified 7 months, 3 weeks ago by dutuka.
    • This reply was modified 7 months, 3 weeks ago by dutuka.
    Plugin Author patrickposner

    (@patrickposner)

    Hey @dutuka,

    it doesn’t look like you added a “local path” here but an URL (https://sub.domain.com/s/).

    Click on the “Copy Home Path” button in Simply Static -> Settings -> Deploy -> Local Directory and you get the path to your WP root directory.

    Then add your desired directory after it.

    It should look more like this: /var/www/public/wp/s/ (in case of a Linux server).

    Thread Starter dutuka

    (@dutuka)

    Thank you for your help. It works now.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Generate without creating simply-static-* directory’ is closed to new replies.