Thread tagged as: Problem, Forms

Perch Forms not parsing

Hi, I have installed Perch Forms but for some reason <perch:form> shows on source. And form section on perch panel tells me: No forms have been submitted yet. Submit a new form to have it show up here.

Any idea?

——— apps.php

    $apps_list = array(


<perch:form id="contacto" action="#" method="post" app="perch_forms">
    <perch:success show-form="true">
        <div class="enviado" id="ok">¡Mensaje enviado!</div>

    <div class="element-wrapper">
            <perch:label for="input-nombre">
            <div><perch:input type="text" id="input-name" class="required" placeholder="Nombre" label="Nombre" /></div>
            <perch:error for="input-nombre" type="required">
                <p class="form-error">Por favor dinos tu nombre</p>
    <div class="element-wrapper">
            <perch:label for="input-email">
            <div><perch:input type="text" id="input-email" class="required" placeholder="E-mail" label="email" /></div>
            <perch:error for="input-email" type="required">
                <p class="form-error">Por favor dinos tu correo electrónico</p>
            <perch:label for="input-mensaje">
            <div><perch:input type="textarea" id="input-mensaje" rows="7" cols="45" class="required" label="Notas" placeholder="Notas" /></div>
        <perch:error for="input-mensaje" type="required">
            <p class="form-error">Por favor déjanos alguna nota</p>

    <div class="submit-wrapper">
        <perch:input type="submit" id="submit" value="Enviar" class="button submit-button-input" />

Debug message:

SELECT u.*, r.* FROM perch2_users u, perch2_user_roles r WHERE u.roleID=r.roleID AND u.userEnabled=1 AND u.userID=1 AND u.userHash='d5bd13c2f5cf9a2b120b8b2ca2ed059f' LIMIT 1
UPDATE perch2_users SET userHash='34a67c8c5295b801678e8e96f4741936' WHERE userID='1'
[29] SELECT p.privKey FROM perch2_user_privileges p
[21] SELECT * FROM (SELECT DISTINCT settingID, settingValue, userID FROM perch2_settings WHERE userID=1 OR userID=0 ORDER BY userID DESC) AS settings GROUP BY settingID, settingValue, userID
[nil] SELECT *, REPLACE(pagePath, '/index.php', '') as sortPath FROM perch2_pages WHERE pageNew=1 ORDER BY LENGTH(sortPath)-LENGTH(REPLACE(sortPath, '/', '')) ASC
[4] SELECT p.*, (SELECT COUNT(*) FROM perch2_pages WHERE pageParentID=p.pageID) AS subpages FROM perch2_pages p WHERE p.pageParentID IN (0) ORDER BY p.pageTreePosition ASC
[11] SELECT * FROM perch2_content_regions ORDER BY regionOrder ASC
[2] SELECT * FROM perch2_content_regions WHERE regionPage='*'
[5] SELECT DISTINCT regionTemplate FROM perch2_content_regions ORDER BY regionTemplate ASC
[nil] SELECT * FROM perch2_content_regions WHERE pageID=3 AND regionPage!='*' ORDER BY regionOrder ASC
Queries: 11
Memory: 2.4878

Diagnosis resume:

Perch: 2.8.25, PHP: 5.4.4, MySQL: 5.5.25, with PDO
Server OS: Darwin, apache2handler
Installed apps: content (2.8.25), assets (2.8.25), categories (2.8.25), perch_blog (5.0), perch_forms (1.8.3)
App runtimes: <?php $apps_list = array( 'content', 'categories', 'perch_blog', 'perch_forms', );
PERCH_PATH: /Applications/MAMP/htdocs/
PERCH_CORE: /Applications/MAMP/htdocs/
PERCH_RESFILEPATH: /Applications/MAMP/htdocs/
Image manipulation: GD
PHP limits: Max upload 32M, Max POST 32M, Memory: 64M, Total max file upload: 32M
F1: dc1fef2ad0fcd9f943c02ebb43d85dbc
Resource folder writeable: Yes
HTTP_HOST: eurovacaciones:8888
DOCUMENT_ROOT: /Applications/MAMP/htdocs/
REQUEST_URI: /perch/core/settings/diagnostics/
SCRIPT_NAME: /perch/core/settings/diagnostics/index.php


Raul Serrano

Raul Serrano 0 points

  • 5 years ago
Rachel Andrew

Rachel Andrew 394 points
Perch Support

The form code needs to go into a template, not a PHP page.

that's true... thanks Rachel.