Chrome : No data received, Safari : Can't open the page
I have a web page which allow u开发者_开发知识库sers to compose news articles. It has a rich text editor too. So someone can copy and paste text from the web. When I put some copied content from wiki to that and once I POST, it throws "No Data Received" error on Chrome. When I check this with Safari it says "Can't open the page". Firefox displays empty page.
But when I stop the execution of the mysql insert query it works fine. The issue is there is n issue with the mysql statement too. I extracted the generated sql statement and executed it separately with mysql tool. It works fine. No issue with the queries.
I am really stuck here. Could you please help me on this.
Thank you.
Prasad.
Here is the action code:
public function articlenewAction() {
$form = new Backoffice_Form_ArticleDraft();
if ($this->getRequest()->isPost()) {
$formData = $this->getRequest()->getPost();
if ($form->isValid($formData)) {
$postData = $_POST;
$newArticleID = Classes_Article::createArticle($postData);
}
}
}
Finally we could go through this. We have upgraded the php version.
Let us know if you know any other way to fix this.
Prasad.
精彩评论