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.

Archive

How to get active simplecontact?

Started by Muut Archive 12 years ago · 41 replies · 694 views
12 years ago

not active plugin i read im my page simplecontact: [] or simplecontact: true

12 years ago

You added to your contact page in the header?

TXT
simplecontact: []

If you not see the form you can post your page content? Thanks.

12 years ago

The problem is you need to add

TXT
simplecontact: []

in the page header and not in the page content, here use the same dash for see the code, posting in other place to see you best :)

TXT

title: "Contact"
simplecontact: []

TXT
This is a page content, before dash is a page header.

without space before the last 3 dash, but you can understrand :)

12 years ago

title: "Contact" simplecontact: []

This is a page content, before dash is a page header.

12 years ago

RuntimeException (404)

Template "contact.html.twig" is not defined ().
Open: /var/www/system/src/Grav/Common/Twig.php

PHP
// Get Twig template layout
$template = $this->template($page->template() . $ext);
try {
$output = $this->twig->render($template, $twig_vars);
} catch (\Twig_Error_Loader $e) {
throw new \RuntimeException($e->getRawMessage(), 404, $e);
}

Server/Request Data
REDIRECT_STATUS 200
HTTP_HOST localhost
HTTP_USER_AGENT Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:34.0) Gecko/20100101 Firefox/34.0
HTTP_ACCEPT text/html,application/xhtml+xml,application/xml;q=0.9,/;q=0.8
HTTP_ACCEPT_LANGUAGE fr,fr-fr;q=0.8,en-us;q=0.5,en;q=0.3
HTTP_ACCEPT_ENCODING gzip, deflate
HTTP_REFERER http://localhost/
HTTP_CONNECTION keep-alive
PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
SERVER_SIGNATURE <address>Apache/2.4.7 (Ubuntu) Server at localhost Port 80</address>
SERVER_SOFTWARE Apache/2.4.7 (Ubuntu)
SERVER_NAME localhost
SERVER_ADDR 127.0.0.1
SERVER_PORT 80
REMOTE_ADDR 127.0.0.1
DOCUMENT_ROOT /var/www/
REQUEST_SCHEME http
CONTEXT_PREFIX
CONTEXT_DOCUMENT_ROOT /var/www/
SERVER_ADMIN webmaster@localhost
SCRIPT_FILENAME /var/www/index.php
REMOTE_PORT 37722
REDIRECT_URL /Contact
GATEWAY_INTERFACE CGI/1.1
SERVER_PROTOCOL HTTP/1.1
REQUEST_METHOD GET
QUERY_STRING
REQUEST_URI /Contact
SCRIPT_NAME /index.php
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1419099901.264
REQUEST_TIME 1419099901

12 years ago

Ok the problem is the filename now :P
Use

TXT
default.md

instead

TXT
contact.md

the filename is related to theme layout, in your theme you don't have

TXT
contact.html.twig

and you get this error.

Try to change the filename and check the result :)

12 years ago

what's your prefer contact.md order default.md ?

12 years ago

I write before, the filename is related to theme layouts, change to

TXT
default.md

and check the result :)

12 years ago

ehehehe no problem sir, in the next update fix the problem with:

TXT
simplecontact: true

but with

TXT
simplecontact: []

working with old and next version without problem :)

12 years ago

Ah ok, then the captcha it's hidden, all spam bots want compile all fields, I have added one hidden field and check if compile the email it's a bot then not sended.

12 years ago

You don't need to configure anything for this :)

Suggested topics

Topic Participants Replies Views Activity
Archive · by Deleted User, 9 years ago
0 1318 9 years ago
Archive · by Muut Archive, 9 years ago
2 915 9 years ago
Archive · by Muut Archive, 9 years ago
2 4044 9 years ago
Archive · by Muut Archive, 9 years ago
1 2920 9 years ago
Archive · by Muut Archive, 9 years ago
3 1103 9 years ago