升级我的php版本5.3.3后,我得到内部服务器错误500,我检查了Plesk 11x Cent-os 6.5 error_log,我收到了这些错误:
[Thu Jun 05 18:29:27 2014] [error] [client 176.42.226.192]脚本标题的提前结束:index.php,referer:https://www.domain.net/admin/index.php?route=catalog/product/update&token=480c3bdd9e4848efad346ac05eb423b5&product_id=2068
[Thu Jun 05 18:33:56 2014] [warn] [client 176.42.226.192] mod_fcgid:在45秒内读取数据超时,参考:https://www.domain.net/admin/index.php?route=catalog/product/update&token=480c3bdd9e4848efad346ac05eb423b5&product_id=2068
[Thu Jun 05 18:33:56 2014] [错误] [client 176.42.226.192]脚本标题的提前结束:index.php,referer:https://www.domain.net/admin/index.php?route=catalog/product/update&token=480c3bdd9e4848efad346ac05eb423b5&product_id=2068
给出错误的函数:
public function update() {
$this->language->load('catalog/product');
$this->document->setTitle($this->language->get('heading_title'));
$this->load->model('catalog/product');
if (($this->request->server['REQUEST_METHOD'] == 'POST') && $this->validateForm()) {
var_dump($this->request);
exit();
$this->model_catalog_product->editProduct($this->request->get['product_id'], $this->request->post);
$this->openbay->productUpdateListen($this->request->get['product_id'], $this->request->post);
$this->session->data['success'] = $this->language->get('text_success');
$url = '';
if (isset($this->request->get['filter_name'])) {
$url .= '&filter_name=' . urlencode(html_entity_decode($this->request->get['filter_name'], ENT_QUOTES, 'UTF-8'));
}
if (isset($this->request->get['filter_model'])) {
$url .= '&filter_model=' . urlencode(html_entity_decode($this->request->get['filter_model'], ENT_QUOTES, 'UTF-8'));
}
if (isset($this->request->get['filter_price'])) {
$url .= '&filter_price=' . $this->request->get['filter_price'];
}
if (isset($this->request->get['filter_quantity'])) {
$url .= '&filter_quantity=' . $this->request->get['filter_quantity'];
}
if (isset($this->request->get['filter_status'])) {
$url .= '&filter_status=' . $this->request->get['filter_status'];
}
if (isset($this->request->get['sort'])) {
$url .= '&sort=' . $this->request->get['sort'];
}
if (isset($this->request->get['order'])) {
$url .= '&order=' . $this->request->get['order'];
}
if (isset($this->request->get['page'])) {
$url .= '&page=' . $this->request->get['page'];
}
var_dump($this->request);
exit();
$this->redirect($this->url->link('catalog/product', 'token=' . $this->session->data['token'] . $url, 'SSL'));
}
$this->getForm();
}
放出exit()后;
之后的命令if (($this->request->server['REQUEST_METHOD'] == 'POST') && $this->validateForm())
var_dump效果很好但是在验证条件之后,exit();并且var_dump没有执行,条件中的某处给出500错误
答案 0 :(得分:-2)
这是真的......抱歉。分析他们的功能实际上似乎是错误的。由于它是PHP的升级应该是php.ini中的一些设置。增加max_execution_time,memory_limit,output_buffering。 try:print_r(error_get_last());出口();