我正在使用Prestashop 1.6,而且自从2天以来我一直在遇到新的错误。
我有一个自制模块,让我生成一个zip文件...
一切都工作正常,直到2天前。
当我尝试生成zip文件时,没有任何反应。
当我打开Chrome控制台时,我发现这是:
Remote Address:104.28.1.153:80
Request URL:http://xxxxxxx.tn/shop/admin1385/ajax-tab.php
Request Method:POST
Status Code:500 Internal Server Error
这是我的服务器日志
[Wed Dec 02 22:55:48 2015] [error] [client 141.101.92.219] SoftException in Application.cpp:256: File "/home/picstore/public_html/shop/admin1385/ajax-tab.php" is writeable by group, referer: http://picstore.tn/shop/admin1385/index.php?controller=AdminLogin&token=14abda336e05072c8006141dc4ec23d2&redirect=AdminDashboard
[Wed Dec 02 22:55:03 2015] [error] [client 141.101.92.219] File does not exist: /home/picstore/public_html/500.shtml, referer: http://picstore.tn/shop/admin1385/index.php?controller=AdminLogin&token=14abda336e05072c8006141dc4ec23d2&redirect=AdminDashboard
[Wed Dec 02 22:55:03 2015] [error] [client 141.101.92.219] SoftException in Application.cpp:256: File "/home/picstore/public_html/shop/admin1385/ajax-tab.php" is writeable by group, referer: http://picstore.tn/shop/admin1385/index.php?controller=AdminLogin&token=14abda336e05072c8006141dc4ec23d2&redirect=AdminDashboard
[Wed Dec 02 22:54:48 2015] [error] [client 141.101.92.219] File does not exist: /home/picstore/public_html/500.shtml, referer: http://picstore.tn/shop/admin1385/index.php?controller=AdminLogin&token=14abda336e05072c8006141dc4ec23d2&redirect=AdminDashboard
[Wed Dec 02 22:54:48 2015] [error] [client 141.101.92.219] SoftException in Application.cpp:256: File "/home/picstore/public_html/shop/admin1385/ajax-tab.php" is writeable by group, referer: http://picstore.tn/shop/admin1385/index.php?controller=AdminLogin&token=14abda336e05072c8006141dc4ec23d2&redirect=AdminDashboard
[Wed Dec 02 22:53:43 2015] [error] [client 141.101.92.219] File does not exist: /home/picstore/public_html/500.shtml, referer: http://picstore.tn/shop/admin1385/index.php?controller=AdminLogin&token=14abda336e05072c8006141dc4ec23d2&redirect=AdminDashboard
[Wed Dec 02 22:53:43 2015] [error] [client 141.101.92.219] SoftException in Application.cpp:256: File "/home/picstore/public_html/shop/admin1385/ajax-tab.php" is writeable by group, referer: http://picstore.tn/shop/admin1385/index.php?controller=AdminLogin&token=14abda336e05072c8006141dc4ec23d2&redirect=AdminDashboard
[Wed Dec 02 22:47:45 2015] [error] [client 141.101.92.219] File does not exist: /home/picstore/public_html/500.shtml, referer: http://picstore.tn/shop/admin1385/index.php?controller=AdminLogin&token=14abda336e05072c8006141dc4ec23d2&redirect=AdminDashboard
[Wed Dec 02 22:47:45 2015] [error] [client 141.101.92.219] SoftException in Application.cpp:256: File "/home/picstore/public_html/shop/admin1385/ajax-tab.php" is writeable by group, referer: http://picstore.tn/shop/admin1385/index.php?controller=AdminLogin&token=14abda336e05072c8006141dc4ec23d2&redirect=AdminDashboard
[Wed Dec 02 22:46:25 2015] [error] [client 141.101.92.210] File does not exist: /home/picstore/public_html/500.shtml, referer: https://www.picstore.tn/shop/admin1385/index.php?controller=AdminLogin&token=14abda336e05072c8006141dc4ec23d2
[Wed Dec 02 22:46:25 2015] [error] [client 141.101.92.210] SoftException in Application.cpp:256: File "/home/picstore/public_html/shop/admin1385/ajax-tab.php" is writeable by group, referer: https://www.picstore.tn/shop/admin1385/index.php?controller=AdminLogin&token=14abda336e05072c8006141dc4ec23d2
[Wed Dec 02 22:46:16 2015] [error] [client 141.101.92.210] File does not exist: /home/picstore/public_html/500.shtml, referer: https://www.picstore.tn/shop/admin1385/index.php?controller=AdminLogin&token=14abda336e05072c8006141dc4ec23d2&redirect=AdminDashboard
[Wed Dec 02 22:46:16 2015] [error] [client 141.101.92.210] SoftException in Application.cpp:256: File "/home/picstore/public_html/shop/admin1385/ajax-tab.php" is writeable by group, referer: https://www.picstore.tn/shop/admin1385/index.php?controller=AdminLogin&token=14abda336e05072c8006141dc4ec23d2&redirect=AdminDashboard
[Wed Dec 02 22:46:04 2015] [error] [client 141.101.92.219] File does not exist: /home/picstore/public_html/500.shtml, referer: https://picstore.tn/shop/admin1385/index.php?controller=AdminLogin&token=14abda336e05072c8006141dc4ec23d2&redirect=AdminDashboard
[Wed Dec 02 22:46:04 2015] [error] [client 141.101.92.219] SoftException in Application.cpp:256: File "/home/picstore/public_html/shop/admin1385/ajax-tab.php" is writeable by group, referer: https://picstore.tn/shop/admin1385/index.php?controller=AdminLogin&token=14abda336e05072c8006141dc4ec23d2&redirect=AdminDashboard
[Wed Dec 02 22:45:58 2015] [error] [client 141.101.92.219] File does not exist: /home/picstore/public_html/500.shtml, referer: http://picstore.tn/shop/admin1385/index.php?controller=AdminLogin&token=14abda336e05072c8006141dc4ec23d2&redirect=AdminDashboard
[Wed Dec 02 22:45:58 2015] [error] [client 141.101.92.219] SoftException in Application.cpp:256: File "/home/picstore/public_html/shop/admin1385/ajax-tab.php" is writeable by group, referer: http://picstore.tn/shop/admin1385/index.php?controller=AdminLogin&token=14abda336e05072c8006141dc4ec23d2&redirect=AdminDashboard
[Wed Dec 02 22:45:21 2015] [error] [client 141.101.92.219] File does not exist: /home/picstore/public_html/500.shtml, referer: http://picstore.tn/shop/admin1385/index.php?controller=AdminLogin&token=14abda336e05072c8006141dc4ec23d2&redirect=AdminDashboard
[Wed Dec 02 22:45:21 2015] [error] [client 141.101.92.219] SoftException in Application.cpp:256: File "/home/picstore/public_html/shop/admin1385/ajax-tab.php" is writeable by group, referer: http://picstore.tn/shop/admin1385/index.php?controller=AdminLogin&token=14abda336e05072c8006141dc4ec23d2&redirect=AdminDashboard
[Wed Dec 02 22:45:09 2015] [error] [client 141.101.92.210] File does not exist: /home/picstore/public_html/404.shtml, referer: https://www.picstore.tn/shop/
[Wed Dec 02 22:45:09 2015] [error] [client 141.101.92.210] File does not exist: /home/picstore/public_html/shop/10-le-poster.html, referer: https://www.picstore.tn/shop/
[Wed Dec 02 22:43:08 2015] [error] [client 141.101.92.219] File does not exist: /home/picstore/public_html/500.shtml, referer: http://picstore.tn/shop/admin1385/index.php?controller=AdminLogin&token=14abda336e05072c8006141dc4ec23d2&redirect=AdminDashboard
[Wed Dec 02 22:43:08 2015] [error] [client 141.101.92.219] SoftException in Application.cpp:256: File "/home/picstore/public_html/shop/admin1385/ajax-tab.php" is writeable by group, referer: http://picstore.tn/shop/admin1385/index.php?controller=AdminLogin&token=14abda336e05072c8006141dc4ec23d2&redirect=AdminDashboard
[Wed Dec 02 22:42:01 2015] [error] [client 141.101.92.219] File does not exist: /home/picstore/public_html/500.shtml, referer: http://picstore.tn/shop/admin1385/index.php?controller=AdminLogin&token=14abda336e05072c8006141dc4ec23d2&redirect=AdminDashboard
[Wed Dec 02 22:42:01 2015] [error] [client 141.101.92.219] SoftException in Application.cpp:256: File "/home/picstore/public_html/shop/admin1385/ajax-tab.php" is writeable by group, referer: http://picstore.tn/shop/admin1385/index.php?controller=AdminLogin&token=14abda336e05072c8006141dc4ec23d2&redirect=AdminDashboard
[Wed Dec 02 22:40:42 2015] [error] [client 141.101.92.219] File does not exist: /home/picstore/public_html/500.shtml, referer: http://picstore.tn/shop/admin1385/index.php?controller=AdminLogin&token=14abda336e05072c8006141dc4ec23d2&redirect=AdminDashboard
[Wed Dec 02 22:40:42 2015] [error] [client 141.101.92.219] SoftException in Application.cpp:256: File "/home/picstore/public_html/shop/admin1385/ajax-tab.php" is writeable by group, referer: http://picstore.tn/shop/admin1385/index.php?controller=AdminLogin&token=14abda336e05072c8006141dc4ec23d2&redirect=AdminDashboard
[Wed Dec 02 22:40:24 2015] [error] [client 141.101.92.219] File does not exist: /home/picstore/public_html/500.shtml, referer: http://picstore.tn/shop/admin1385/index.php?controller=AdminLogin&token=14abda336e05072c8006141dc4ec23d2&redirect=AdminDashboard
[Wed Dec 02 22:40:24 2015] [error] [client 141.101.92.219] SoftException in Application.cpp:256: File "/home/picstore/public_html/shop/admin1385/ajax-tab.php" is writeable by group, referer: http://picstore.tn/shop/admin1385/index.php?controller=AdminLogin&token=14abda336e05072c8006141dc4ec23d2&redirect=AdminDashboard
[Wed Dec 02 22:34:41 2015] [error] [client 141.101.92.219] File does not exist: /home/picstore/public_html/500.shtml, referer: http://picstore.tn/shop/admin1385/index.php?controller=AdminLogin&token=14abda336e05072c8006141dc4ec23d2&redirect=AdminDashboard
[Wed Dec 02 22:34:41 2015] [error] [client 141.101.92.219] SoftException in Application.cpp:256: File "/home/picstore/public_html/shop/admin1385/ajax-tab.php" is writeable by group, referer: http://picstore.tn/shop/admin1385/index.php?controller=AdminLogin&token=14abda336e05072c8006141dc4ec23d2&redirect=AdminDashboard
[Wed Dec 02 22:34:21 2015] [error] [client 141.101.92.219] File does not exist: /home/picstore/public_html/500.shtml, referer: http://picstore.tn/shop/admin1385/index.php?controller=AdminLogin&token=14abda336e05072c8006141dc4ec23d2&redirect=AdminDashboard
[Wed Dec 02 22:34:21 2015] [error] [client 141.101.92.219] SoftException in Application.cpp:256: File "/home/picstore/public_html/shop/admin1385/ajax-tab.php" is writeable by group, referer: http://picstore.tn/shop/admin1385/index.php?controller=AdminLogin&token=14abda336e05072c8006141dc4ec23d2&redirect=AdminDashboard
[Wed Dec 02 22:32:05 2015] [error] [client 141.101.92.219] File does not exist: /home/picstore/public_html/500.shtml, referer: http://picstore.tn/shop/admin1385/index.php?controller=AdminLogin&token=14abda336e05072c8006141dc4ec23d2&redirect=AdminDashboard
[Wed Dec 02 22:32:05 2015] [error] [client 141.101.92.219] SoftException in Application.cpp:256: File "/home/picstore/public_html/shop/admin1385/ajax-tab.php" is writeable by group, referer: http://picstore.tn/shop/admin1385/index.php?controller=AdminLogin&token=14abda336e05072c8006141dc4ec23d2&redirect=AdminDashboard
[Wed Dec 02 22:31:55 2015] [error] [client 141.101.92.219] File does not exist: /home/picstore/public_html/500.shtml, referer: http://picstore.tn/shop/admin1385/index.php?controller=AdminLogin&token=14abda336e05072c8006141dc4ec23d2
但文件ajax-tab.php存在。
我将复制/通过调用ajax-tab.php
的代码 <?php
class AdminPicstoreGenerateZipController extends ModuleAdminController {
public function __construct() {
parent::__construct();
}
public function initContent() {
$id = Tools::getValue('id');
$html = '';
if ($id) {
$html .= '<h1>Génération de ZIP</h1>';
$html .= '<p>génération en cour ...</p>';
$html .= '<div id="zip_link"></div>';
$html .= '<script type="text/javascript">
$.post(
"ajax-tab.php",
{
tab: \'AdminPicstoreGenerateZip\',
token: \'' . $this->token . '\',
ajax: \'1\',
action:\'GetZipLink\',
id:\'' . $id . '\',
timeout: 1000*60*30
}, function(a){
$("#zip_link").html(a);
});
</script>';
} else {
$html .= '<div class="bootstrap"><div class="alert alert-danger clearfix">ID introuvable</div></div>';
}
$this->content = $html;
return parent::initContent();
}
public function ajaxProcessGetZipLink() {
$id = Tools::getValue('id');
if($id){
$link = require _PS_ROOT_DIR_ . '/manager/scripts/process.php';
die('<a href="' . $link . '">Télécharger le zip</a>');
}else{
die('<div class="bootstrap"><div class="alert alert-danger clearfix">ID introuvable</div></div>');
}
}
}
这是ajax-tab.php的php代码
if (!defined('_PS_ADMIN_DIR_'))
define('_PS_ADMIN_DIR_', getcwd());
require(_PS_ADMIN_DIR_.'/../config/config.inc.php');
require(_PS_ADMIN_DIR_.'/functions.php');
// For retrocompatibility with "tab" parameter
if (!isset($_GET['controller']) && isset($_GET['tab']))
$_GET['controller'] = strtolower($_GET['tab']);
if (!isset($_POST['controller']) && isset($_POST['tab']))
$_POST['controller'] = strtolower($_POST['tab']);
if (!isset($_REQUEST['controller']) && isset($_REQUEST['tab']))
$_REQUEST['controller'] = strtolower($_REQUEST['tab']);
// Retrocompatibility with 1.4
$_REQUEST['ajaxMode'] = $_POST['ajaxMode'] = $_GET['ajaxMode'] = $_REQUEST['ajax'] = $_POST['ajax'] = $_GET['ajax'] = 1;
Dispatcher::getInstance()->dispatch();
该模块工作得很好。我修改了任何文件。但是自从2天以来,我的内部服务器错误500与ajax-tab.php。
你知道我该如何解决这个问题吗?
非常感谢你的帮助
最佳哈比卜