Skip to content
Grav 2.0 is officially stable. Read the announcement →

Community guidelines

Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.

Plugins

After update forms no longer show up on page

Started by zooitje 8 years ago · 2 replies · 1018 views
8 years ago

Hi. I have updated my GRAV installation. After some troubles with permissions it worked.

After looking around I found that the emailform of the website has disappeared. The only form related HTML that is now shown is this:

HTML
<form name=""
      action="/en/contact/_main"
      method="POST"
                  class=" "
            >

  <input type="hidden" name="__form-name__" value="" />

    <div class="buttons">

    </div>

  <input type="hidden" name="__unique_form_id__" value="218Aw4maVKrWNjihkxL6" />  <input type="hidden" name="form-nonce" value="9d2ac7ce7e7dfcf78d60a0425bfc24ae" />
</form>

while my md file has not changed:

YAML
form:
    name: my-nice-form
    action: /contact
    fields:
        -
            name: name
            id: name
            label: Name
            classes: 'form-control form-control-lg'
            placeholder: 'Enter your name'
            autocomplete: 'on'
            type: text
            validate:
                required: true
        -
            name: email
            id: email
            classes: 'form-control form-control-lg'
            label: Email
            placeholder: 'Enter your email address'
            type: email
            validate:
                rule: email
                required: true
        -
            name: message
            label: Message
            classes: 'form-control form-control-lg'
            size: long
            placeholder: 'Enter your message'
            type: textarea
            validate:
                required: true
    buttons:
        -
            type: submit
            value: Submit
            class: 'btn btn-primary btn-block'
    process:
        -
            email:
                from: '{{ config.plugins.email.from }}'
                to:
                    - '{{ config.plugins.email.from }}'
                    - '{{ form.value.email }}'
                subject: '[Feedback] {{ form.value.name|e }}'
                body: '{% include ''forms/data.html.twig'' %}'
        -
            save:
                fileprefix: feedback-
                dateformat: Ymd-His-u
                extension: txt
                body: '{% include ''forms/data.txt.twig'' %}'
        -
            message: 'Thank you for your feedback!'
        -
            display: thankyou
last edited 08/04/18 by zooitje
8 years ago

So i have found one of the problems. I was able to install the plugins using the GUI successfully after setting some permissions right on the command line using this page: https://learn.getgrav.org/troubleshooting/permissions

But for some reason my form on the contact page still does not show up. I tried creating a new form on a different page but this also does not show up on the page. (similar result as in above post). Any ideas here on how to debug/solve this?

last edited 08/04/18 by zooitje
8 years ago

found the problem. Forms no longer are displayed when another plugin is installen (I tried wit assets and with google maps plugin).

when these plugins and their dependencies are removed again using the gui, the forms work perfectly again.

this thead can be closed. But i think this should result in some kind of bug somewhere. I used the deliver skeleton that updated 4 days ago on a fresh install.

last edited 08/04/18 by zooitje

Suggested topics

Topic Participants Replies Views Activity
Plugins · by Rene, 1 week ago
2 54 1 week ago
Plugins · by Xavier, 4 weeks ago
2 61 4 weeks ago
Plugins · by Luka Prinčič, 7 years ago
3 1188 1 month ago
Plugins · by Sebastian van de Meer, 1 month ago
1 54 1 month ago
Plugins · by PIERROT Alain, 2 months ago
3 79 2 months ago