Cannot generate static files

Created on 20 March 2019, about 6 years ago
Updated 10 January 2024, over 1 year ago

Tome seems to be the answer to my need to put a site into mothballs. Unfortunately, when I follow directions posted at https://tome.fyi/docs/hosting/hosted-drupal-netlify/ I am unable to create static files.

When I go to /admin/config/tome/static/generate I see the following PHP error notice:

Notice: Undefined index: cache in Drupal\tome_static\Form\StaticGeneratorForm->getWarnings() (line 32 of modules/contrib/tome/modules/tome_static/src/StaticUITrait.php).

Attempting to run the file creation results in a success message saying, "Static build complete! To download the build, click here." A file is not available from the downloads page and several more error notices are shown.

🐛 Bug report
Status

Fixed

Component

Tome Static

Created by

🇺🇸United States JimSmith Oak Ridge, Tenn.

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • 🇮🇳India RavinderChopra

    Hi nikathone

    I have fixed the above issue by executing the following steps.

    For lando setup users: Please add the following code into .lando.yml file

    config:
    my.cnf: |
    max_allowed_packet=2G
    wait_timeout=600
    interactive_timeout=600

    and remove the cache and restart the lando then run lando drush tome:static

Production build 0.71.5 2024