I use antibot on all my sites alongside honeypot for the added form security.

I am not attempting to set up and use the Tome static site generator module, but the generation fails with the following error in the logs:

Warning: file_put_contents(../html/antibot/index.html): Failed to open stream: No such file or directory in Drupal\tome_static\StaticGenerator->requestPath() (line 187 of /var/www/harrisgrantconsulting.com/web/modules/contrib/tome/modules/tome_static/src/StaticGenerator.php)
#0 /var/www/harrisgrantconsulting.com/web/core/includes/bootstrap.inc(346): _drupal_error_handler_real()
#1 [internal function]: _drupal_error_handler()
#2 /var/www/harrisgrantconsulting.com/web/modules/contrib/tome/modules/tome_static/src/StaticGenerator.php(187): file_put_contents()
#3 /var/www/harrisgrantconsulting.com/web/modules/contrib/tome/modules/tome_static/src/Form/StaticGeneratorForm.php(198): Drupal\tome_static\StaticGenerator->requestPath()

I can disable antibot to resolve, but I would much prefer if we were able to keep it with our deployed static sites.

Comments

W01F created an issue.

gaurav.kapoor’s picture

@W01F I don't have much understanding of the working of Tome, do we have any instructions of what has to be changed in a module's code to make it compatible?