Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deploying static site with WPML sometimes throws exception #266

Open
ALobker opened this issue Oct 22, 2024 · 0 comments
Open

Deploying static site with WPML sometimes throws exception #266

ALobker opened this issue Oct 22, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@ALobker
Copy link

ALobker commented Oct 22, 2024

We are using WPML to translate our website into 3 different languages. When running the generation, sometimes the activity log shows an exception. This is not always the case, so we are not sure what causes it.

Simply Static version: Pro 1.6.1

Steps to manually fix it:

  • Login with ftp to server with wordpress page.
  • Go to folder /wp-content/uploads/simply-static/temp-files/
  • Start the script again from the wordpress backend
  • With ftp, go into the simply-static-1-[number] folder
  • Quickly create the language folders (/de, /es, /fr)
  • Wait for the deployment process to finish

Stack trace here:

[2024-10-22 19:33:48] Setting up
[2024-10-22 19:34:20] Fetched 288 of 288 pages/files
[2024-10-22 19:36:07] Minified all pages/files
[2024-10-22 19:36:07] Error: (1) Uncaught Exception: /home/[hidden]/domains/wp.[hidden].com/public_html/wp-content/uploads/simply-static/temp-files/simply-static-1-1729618427/es/wp-content|Could not create the destination directory. in /home/[hidden]/domains/wp.[hidden].com/public_html/wp-content/plugins/simply-static-pro/src/integrations/wpml/class-ssp-wpml-task.php:176
Stack trace:
#0 /home/[hidden]/domains/wp.[hidden].com/public_html/wp-content/plugins/simply-static-pro/src/integrations/wpml/class-ssp-wpml-task.php(65): simply_static_pro\WPML_Task->copy_langs()
#1 /home/[hidden]/domains/wp.[hidden].com/public_html/wp-content/plugins/simply-static/src/class-ss-archive-creation-job.php(154): simply_static_pro\WPML_Task->perform()
#2 /home/[hidden]/domains/wp.[hidden].com/public_html/wp-content/plugins/simply-static/vendor/a5hleyrich/wp-background-processing/classes/wp-background-process.php(531): Simply_Static\Archive_Creation_Job->task()
#3 /home/[hidden]/domains/wp.[hidden].com/public_html/wp-content/plugins/simply-static/vendor/a5hleyrich/wp-background-processing/classes/wp-background-process.php(350): WP_Background_Process->handle()
#4 /home/[hidden]/domains/wp.[hidden].com/public_html/wp-includes/class-wp-hook.php(324): WP_Background_Process->maybe_handle()
#5 /home/[hidden]/domains/wp.[hidden].com/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
#6 /home/[hidden]/domains/wp.[hidden].com/public_html/wp-includes/plugin.php(517): WP_Hook->do_action()
#7 /home/[hidden]/domains/wp.[hidden].com/public_html/wp-admin/admin-ajax.php(192): do_action()
#8 {main}
  thrown in /home/[hidden]/domains/wp.[hidden].com/public_html/wp-content/plugins/simply-static-pro/src/integrations/wpml/class-ssp-wpml-task.php on line 176
@patrickposner patrickposner self-assigned this Nov 26, 2024
@patrickposner patrickposner added the bug Something isn't working label Nov 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants