Unknown "form_start" function

Contents of question
I’m currently working on raising the symfony version of an existing web app that was created.
When I displayed the app in the browser, I got an error. I would like to know how to solve it.
Probably, it seems that the routing to the definition destination of articleAnalyticsSearch is not good.
The corresponding code has not been changed when raising symfony.

Error message

Unknown "form_start" function.

Source code

{% macro articleAnalyticsSearch(searchForm) %}
        {{ form_start(searchForm) }}
        {% set params = app.request.query.all|merge({'page': null}) %}
        {% set q = app.request.query.get("q")|default({}) %}
            <table>
//composer.json
{
    "name": "symfony/framework-standard-edition",
    "license": "MIT",
    "type": "project",
    "description": "The "Symfony Standard Edition" distribution",
    "autoload": {
        "psr-4": { "": "src/" },
        "classmap": [ "vendor/lsolesen/pel/src" , "app/AppKernel.php", "app/AppCache.php" ]
    },
    "repositories": [
        {
            "type": "pear",
            "url": "https://pear.php.net"
        }
    ],
    "require": {
        "php": ">=5.5.9",
        "symfony/symfony": "3.0.*",
        "doctrine/orm": "2.5.*",
        "doctrine/doctrine-bundle": "~1.4",
        "twig/extensions": "1.0.*",
        "symfony/swiftmailer-bundle": "2.3.*",
        "symfony/monolog-bundle": "3.0.*",
        "sensio/distribution-bundle": "5.0.*",
        "sensio/framework-extra-bundle": "3.0.*",
        "incenteev/composer-parameter-handler": "~2.0",
        "jms/security-extra-bundle": "1.6.*",
        "jms/di-extra-bundle": "1.7.*",
        "lsolesen/pel": "dev-master",
        "gedmo/doctrine-extensions": "2.3.*",
        "shark/simple_html_dom": "dev-master",
        "pear-pear/mail_mimedecode": "1.5.*",
        "rakuten-ws/rws-php-sdk": "1.*",
        "liuggio/excelbundle": "2.1.0",
        "doctrine/annotations": "^1.2",
        "symfony/intl": "3.0.*",
        "symfony/console": "3.0.*",
        "jms/aop-bundle": "1.2.*",
        "symfony/framework-bundle": "3.0.*",
        "symfony/form": "^3.0",
        "symfony/twig-bridge": "^3.0",
        "symfony/translation": "v3.0.9"
    },
    "scripts": {
        "post-install-cmd": [
            "IncenteevParameterHandlerScriptHandler::buildParameters",
            "SensioBundleDistributionBundleComposerScriptHandler::buildBootstrap",
            "SensioBundleDistributionBundleComposerScriptHandler::clearCache",
            "SensioBundleDistributionBundleComposerScriptHandler::installAssets",
          "SensioBundleDistributionBundleComposerScriptHandler::installRequirementsFile",
            "SensioBundleDistributionBundleComposerScriptHandler::prepareDeploymentTarget"
     ],
        "post-update-cmd": [
            "IncenteevParameterHandlerScriptHandler::buildParameters",
            "SensioBundleDistributionBundleComposerScriptHandler::buildBootstrap",
            "SensioBundleDistributionBundleComposerScriptHandler::clearCache",
            "SensioBundleDistributionBundleComposerScriptHandler::installAssets",
            "SensioBundleDistributionBundleComposerScriptHandler::installRequirementsFile",
            "SensioBundleDistributionBundleComposerScriptHandler::prepareDeploymentTarget"
       ]
    },
    "config": {
        "bin-dir": "bin",
        "secure-http": false,
        "platform": {
            "php": "5.6.4"
      }
    },
    "extra": {
        "symfony-app-dir": "app",
        "symfony-bin-dir": "bin",
        "symfony-var-dir": "var",
        "symfony-web-dir": "web",
        "symfony-tests-dir": "tests",
        "symfony-assets-install": "relative",
        "incenteev-parameters": {
            "file": "app/config/parameters.yml"
        },
        "branch-alias": {
            "dev-master": "3.0-dev"
        }
    },
    "require-dev": {
        "sensio/generator-bundle": "^3.0",
        "symfony/phpunit-bridge": "^3.0"
    }
}

Version
CentOS 6.7
composer 1.10
symfony 3.0.9
PHP 5.6.40

Source: Symfony Questions

Was this helpful?

0 / 0

Leave a Reply 0

Your email address will not be published. Required fields are marked *