Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7974027
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T08:15:35+00:00 2026-06-04T08:15:35+00:00

I generated the module picture and now I’m trying to call the action delete

  • 0

I generated the module “picture” and now I’m trying to call the action
“delete” this way:

frontend_dev.php/picture/delete/id/1

But I get this error:

500 | Internal Server Error | sfValidatorErrorSchema

_csrf_token [Required.]

stack trace at () in SF_ROOT_DIR/lib/vendor/symfony/lib/validator/
sfValidatorSchema.class.php line 110 …

$clean  = array();

$unused = array_keys($this->fields);

$errorSchema = new sfValidatorErrorSchema($this);

// check that post_max_size has not been reached

if (isset($_SERVER['CONTENT_LENGTH']) && (int) $_SERVER['CONTENT_LENGTH'] > $this-

getBytes(ini_get(‘post_max_size’)))

at sfValidatorSchema->doClean(array(‘_csrf_token’ => null)) in
SF_ROOT_DIR/lib/vendor/symfony/lib/validator/
sfValidatorSchema.class.php line 90 … */

public function clean($values)

{

return $this->doClean($values);

}

/** at sfValidatorSchema->clean(array(‘_csrf_token’ => null)) in
SF_ROOT_DIR/lib/vendor/symfony/lib/form/sfForm.class.php line 247 …

Any idea?

Regards

Javi

sf 1.4

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T08:15:36+00:00Added an answer on June 4, 2026 at 8:15 am

    If you call delete action through “Delete” button in form or list, then you can try to update buggy function _method_javascript_function() in UrlHelper.php to this version

    function _method_javascript_function($method)
    {
        $function = "var f = document.createElement('form'); f.style.display = 'none';     this.parentNode.appendChild(f); f.method = 'post'; f.action = this.href;";
        $varFlag = false;
    
        if ('post' != strtolower($method))
        {
            $varFlag = true;
            $function .= "var m = document.createElement('input'); m.setAttribute('type', 'hidden'); ";
            $function .= sprintf("m.setAttribute('name', 'sf_method'); m.setAttribute('value', '%s'); f.appendChild(m);", strtolower($method));
        }
    
        // CSRF protection
        $form = new BaseForm();
        if ($form->isCSRFProtected())
        {
            $function .= ($varFlag ? '' : 'var ')."m = document.createElement('input'); m.setAttribute('type', 'hidden'); ";
            $function .= sprintf("m.setAttribute('name', '%s'); m.setAttribute('value', '%s'); f.appendChild(m);", $form->getCSRFFieldName(), $form->getCSRFToken());
        }
    
        $function .= "f.submit();";
    
        return $function;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

this action is generated in symfony 1.2 when you create a module: public function
in backend_dev i generated with admin generator module News: localhost/backend_dev.php/news/2/edit this is link for
I have PHP generated HTML. Firebug shows me this source: <div class=module-header><div class=module-header2><div class=module-header3><h3
I'm trying to debug a SQL statement generated with sqlite3 python module... c.execute(SELECT *
I have a python module that imports a module generated with swig. When I
I have a block generated by Finder module (simple search mechanism). The block contains
Is it possible to get a list of all generated tags for a given
Question in nutshell What is the best way to get Python and Java to
** New EDIT ** so what I'm trying to do is this. I want
In the example module below, the getters and setters are generated by adding anonymous

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.