グルーポン クローンのスクリプトをローカルにインストールしようとすると問題が発生します。Windows7で実行されているXAMPPを使用しています
Apache/2.2.17 (Win32) mod_ssl/2.2.17
OpenSSL/0.9.8o
PHP/5.3.4 mod_perl/2.0.4 Perl/v5.10.1
MySQL client version: mysqlnd 5.0.7-dev - 091210 - $Revision: 304625
これは私がindex.phpを実行しようとしているものです:
Deprecated: Assigning the return value of new by reference is deprecated in C:\xampp\php\PEAR\Config.php on line 80
Deprecated: Assigning the return value of new by reference is deprecated in C:\xampp\php\PEAR\Config.php on line 166
Deprecated: Assigning the return value of new by reference is deprecated in C:\xampp\php\PEAR\Config\Container.php on line 111
Warning: require_once(DOCUMENT_ROOT/system/plugins/common.php) [function.require-once]: failed to open stream: No such file or directory in C:\Users\xxxx\Documents\Eclipse\xxxx\system\includes\library.inc.php on line 17
Fatal error: require_once() [function.require]: Failed opening required 'DOCUMENT_ROOT/system/plugins/common.php' (include_path='.;C:\xampp\php\PEAR') in C:\Users\xxxx\Documents\Eclipse\xxxx\system\includes\library.inc.php on line 17
php ファイルは次のように始まります。
session_start();
require_once ('config.php'); // this is the one that defines DOCUMENT_ROOT
require_once ('functions.php');
require_once ('functions_theme.php');
require_once ('fns.php');
17行目は次のとおりです。
require_once (DOCUMENT_ROOT.'/system/plugins/common.php');
DOCUMENT_ROOT は、以前にロードされた config.php ファイルで次のように定義されています。
define("DOCUMENT_ROOT",$_SERVER['DOCUMENT_ROOT']);
誰かが助けてくれることを願っています。
はい、ファイルはそのディレクトリにあります(すでに確認済みです:P)。