Note that there are some explanatory texts on larger screens.

plurals
  1. POi got this error 500 | Internal Server Error | Doctrine_Connection_Mysql_Exception
    text
    copied!<p>when i am update my form, i got this error 500 | Internal Server Error | Doctrine_Connection_Mysql_Exception</p> <p>executeEdit</p> <pre><code>public function executeEdit(sfWebRequest $request) { $this-&gt;form = new ContactForm(); $this-&gt;rs = Doctrine::getTable('login')-&gt; find($request-&gt;getParameter('id')); $id=$request-&gt;getParameter('id'); $unm=$this-&gt;rs['username']; $msg=$this-&gt;rs['message']; $em=$this-&gt;rs['email']; $sub=$this-&gt;rs['subject']; $this-&gt;form-&gt;setDefault('id', $id); $this-&gt;form-&gt;setDefault('username', $unm); $this-&gt;form-&gt;setDefault('message', $msg); $this-&gt;form-&gt;setDefault('email', $em); $this-&gt;form-&gt;setDefault('subject', $sub); //$this-&gt;forward404Unless($this-&gt;rs); if ($request-&gt;isMethod('post')) { $this-&gt;form-&gt;bind($request-&gt;getParameter('contact'), $request-&gt;getFiles('contact')); if ($this-&gt;form-&gt;isValid()) { $name="'".$this-&gt;form-&gt;getValue('username')."'"; $message="'".$this-&gt;form-&gt;getValue('message')."'"; $email="'".$this-&gt;form-&gt;getValue('email')."'"; $sub="'".$this-&gt;form-&gt;getValue('subject')."'"; $id=$this-&gt;form-&gt;getValue('id'); $file = $this-&gt;form-&gt;getValue('doc'); $filename = sha1($unm).'_'.sha1($file-&gt;getOriginalName()); $extension = $file-&gt;getExtension($file-&gt;getOriginalExtension()); $path=sfConfig::get('sf_upload_dir').'/'.$filename.$extension; $qs= Doctrine_Query::create() -&gt;update('login l') -&gt;set('l.username', $name) -&gt;set('l.message', $message) -&gt;set('l.email', $email) -&gt;set('l.subject', $sub) -&gt;set('l.doc', $path) -&gt;where('l.id=?',$id) -&gt;execute(); $this-&gt;redirect('user/show?id=' . $id); } } } </code></pre> <p>this is my edit action code. so whats the exaclty error. and what is my mistake and what can i do to solve this error? please help me</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload